How to Use SEC EDGAR filing sections in VS Code
Returns named sections of a 10-K or 10-Q as plain text. Use it to read risk factors or management's discussion without searching through the entire report.
Prompts to try with SEC EDGAR filing sections in VS Code
Copy an example into VS Code, or ask in your own words.
Use SEC EDGAR filing sections to retrieve Apple's latest 10-K risk factors and add a readable section view to this project.
Use SEC EDGAR filing sections to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from SEC EDGAR filing sections and tell me what changed since last week.
Check SEC EDGAR filing sections and summarize what you find in three bullet points.
Pull the newest data from SEC EDGAR filing sections and give me the result as a table.
How to set up SEC EDGAR filing sections in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run SEC EDGAR filing sections
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "sec-gov/filings/sections", "input": { "cik": 1 } }'
Then paste one of the prompts above: VS Code finds SEC EDGAR filing sections on Spiral, shows the price and runs it.
SEC EDGAR filing sections providers and prices
Spiral runs SEC EDGAR filing sections through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Cik | a number | SEC Central Index Key, with or without leading zeros. | |
| Form | 10-K or 10-Q | 10-K | form |
| Max chars | 100 to 2000000 | 60000 | Per-section text cap. |
Every API field of SEC EDGAR · Sections is on its tool page: open its card above.
What can you do with SEC EDGAR filing sections in VS Code?
Build research views for reported product sales, filing passages, or ownership-index publication checks. Coding agents can turn SEC EDGAR results into tables and comparison views in your project.
Prepare a pharmaceutical earnings brief
Retrieve Merck's reported product revenue, find relevant disclosures, and read management's discussion. Build a brief that separates sales figures from management's explanation.
Research licensing disclosures
Search Bristol Myers Squibb filings for licensing language, retrieve available product revenue, and read the report sections explaining the business. Assemble evidence for a licensing review.
Compare reported product performance
Collect available product revenue for Merck and Bristol Myers Squibb. Use filing search and report sections to investigate the disclosures behind differences in reported performance.
Check a product-sales claim
Test a claim about a public company's product sales against reported revenue and the filing's wording. Give an editor the supporting disclosures and any unresolved differences.
More on SEC EDGAR filing sections and VS Code
Overview
SEC EDGAR filing sections in other agents
Questions about SEC EDGAR filing sections in VS Code
Can VS Code use SEC EDGAR filing sections?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run SEC EDGAR filing sections like any built-in tool.
How much does SEC EDGAR filing sections cost in VS Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need an Alexandria account to use SEC EDGAR filing sections in VS Code?
No. Spiral runs SEC EDGAR filing sections on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up SEC EDGAR filing sections in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while SEC EDGAR filing sections runs?
SEC EDGAR filing sections runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
Does EDGAR include every filing submitted to the SEC?
Some filings are submitted on paper and are unavailable through EDGAR. Electronic results therefore do not represent every document submitted to the SEC.
When are daily filing indexes published?
The SEC starts updating daily indexes at about 10 p.m. Eastern each filing day. Publication usually takes a few hours, so 10 p.m. is the start of processing.
How far back does EDGAR full-text search reach?
Full-text search covers electronic filings submitted since 2001. That is the search coverage boundary, rather than a guarantee that every extraction reaches the same historical depth.
Does a correction replace the original filing?
Usually both remain available. The SEC says an original filing with an error and its corrective amendment typically stay on EDGAR, preserving the disclosure history.
Can I reuse public EDGAR filing content?
Yes. The SEC explicitly permits access to and reuse of EDGAR public filing content.
Start using SEC EDGAR filing sections in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


