[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [SEC EDGAR product revenue](https://spiral.ai/integrations/opencode/sec-edgar-product-revenue)

# How to Use SEC EDGAR product revenue in opencode

Returns product revenue from the company's filed XBRL disclosures. Use it to research reported product sales, then read the filing's narrative for context.

|  |  |
| --- | --- |
| Model | SEC EDGAR product revenue |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with SEC EDGAR product revenue in opencode

- Use SEC EDGAR product revenue for Merck (MRK), focusing on Keytruda, and build a table of the returned sales disclosures in this project.
- Use SEC EDGAR product revenue for Bristol Myers Squibb (BMY), focusing on Opdivo, and build a comparison table using the reported periods returned.
- Use SEC EDGAR product revenue to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from SEC EDGAR product revenue and tell me what changed since last week.
- Check SEC EDGAR product revenue and summarize what you find in three bullet points.

## How to set up SEC EDGAR product revenue in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run SEC EDGAR product revenue**: One request; the result comes back by polling or a webhook.

```bash
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/product_revenue",
    "input": {
      "to": "<to>"
    }
  }'
```

Then paste one of the prompts above: opencode finds SEC EDGAR product revenue on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## SEC EDGAR product revenue tools and prices

- [SEC EDGAR · Product revenue](https://spiral.ai/tools/alexandria/sec-gov/filings/product_revenue) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| to |  | — | Latest filing date of the reports read. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| cik |  | — | SEC Central Index Key, with or without leading zeros. |
| from |  | — | Earliest filing date of the reports read. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| name |  | — | Filer name; the best EDGAR typeahead match is used. |
| forms |  | — | Report forms to read; all five when omitted. A 6-K counts only when EDGAR flags it as XBRL. |
| limit | 1 to 4 | 1 | Reports to read, newest first. |

## What can you do with SEC EDGAR product revenue in opencode?

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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## SEC EDGAR product revenue in other agents

- [Amp](https://spiral.ai/integrations/amp/sec-edgar-product-revenue)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/sec-edgar-product-revenue)
- [Claude](https://spiral.ai/integrations/claude-desktop/sec-edgar-product-revenue)
- [Claude Code](https://spiral.ai/integrations/claude-code/sec-edgar-product-revenue)
- [Cline](https://spiral.ai/integrations/cline/sec-edgar-product-revenue)
- [Codex](https://spiral.ai/integrations/codex/sec-edgar-product-revenue)
- [Cursor](https://spiral.ai/integrations/cursor/sec-edgar-product-revenue)
- [Devin](https://spiral.ai/integrations/devin/sec-edgar-product-revenue)
- [dots](https://spiral.ai/integrations/dots/sec-edgar-product-revenue)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/sec-edgar-product-revenue)
- [Gemini](https://spiral.ai/integrations/gemini/sec-edgar-product-revenue)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/sec-edgar-product-revenue)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/sec-edgar-product-revenue)
- [goose](https://spiral.ai/integrations/goose/sec-edgar-product-revenue)
- [Grok](https://spiral.ai/integrations/grok/sec-edgar-product-revenue)
- [Grok Build](https://spiral.ai/integrations/grok-build/sec-edgar-product-revenue)
- [Hermes](https://spiral.ai/integrations/hermes/sec-edgar-product-revenue)
- [Instinct](https://spiral.ai/integrations/instinct/sec-edgar-product-revenue)
- [Manus](https://spiral.ai/integrations/manus/sec-edgar-product-revenue)
- [Muse](https://spiral.ai/integrations/muse/sec-edgar-product-revenue)
- [Muse Code](https://spiral.ai/integrations/muse-code/sec-edgar-product-revenue)
- [n8n](https://spiral.ai/integrations/n8n/sec-edgar-product-revenue)
- [Notion](https://spiral.ai/integrations/notion/sec-edgar-product-revenue)
- [OpenClaw](https://spiral.ai/integrations/openclaw/sec-edgar-product-revenue)
- [Perplexity](https://spiral.ai/integrations/perplexity/sec-edgar-product-revenue)
- [Raycast](https://spiral.ai/integrations/raycast/sec-edgar-product-revenue)
- [VS Code](https://spiral.ai/integrations/vscode/sec-edgar-product-revenue)
- [Windsurf](https://spiral.ai/integrations/windsurf/sec-edgar-product-revenue)
- [Zapier](https://spiral.ai/integrations/zapier/sec-edgar-product-revenue)

## More opencode guides

- [SEC EDGAR ownership index status](https://spiral.ai/integrations/opencode/sec-edgar-ownership-index-status)
- [SEC EDGAR quarterly insider transactions](https://spiral.ai/integrations/opencode/sec-edgar-quarterly-insider-transactions)
- [SEC EDGAR institutional 13F holdings](https://spiral.ai/integrations/opencode/sec-edgar-institutional-13f-holdings)
- [Statistics Canada Daily article](https://spiral.ai/integrations/opencode/statistics-canada-daily-article)
- [SEC EDGAR insider filing details](https://spiral.ai/integrations/opencode/sec-edgar-insider-filing-details)
- [Statistics Canada latest releases](https://spiral.ai/integrations/opencode/statistics-canada-latest-releases)

## Questions about SEC EDGAR product revenue in opencode

**Can opencode use SEC EDGAR product revenue?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run SEC EDGAR product revenue like any built-in tool.

**How much does SEC EDGAR product revenue cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use SEC EDGAR product revenue in opencode?**

No. Spiral runs SEC EDGAR product revenue 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 product revenue in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while SEC EDGAR product revenue runs?**

SEC EDGAR product revenue runs in the background. opencode 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.

