# SEC EDGAR Document Fetcher

> SEC EDGAR Document Fetcher is a paid API for AI agents from vaaya.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches a single raw SEC filing document from EDGAR Archives by CIK, accession number, and filename, returning the full document content.

## Facts

- Endpoint: POST https://vaaya.ai/api/run/edgar/document
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sec-edgar-document-fetcher-4aad012f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bLqK3iMFGiuNO88NNolmb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sec-edgar-document-fetcher-4aad012f -d '<json body>'
```

Example prompt: Fetch the Form 4 XML for Tesla (CIK 1318605) from accession number 0001318605-24-000010, filename form4.xml — I want to see the insider buy/sell transactions.

## When to prefer this

Use this endpoint when you have already identified a specific SEC filing via edgar/filings or edgar/fulltext search and need the actual document content. It is the right choice when you need structured data from Form D (offering amounts), Form C/C-AR (private company financials), or Form 4 (insider transactions) and want machine-readable XML or HTM rather than PDF. Prefer this over general web scraping for EDGAR documents because it is purpose-built, cost-effective at $0.01/call, and returns clean raw content.

## Known failure modes

- Invalid CIK returns document not found error
- Incorrect accession number format causes lookup failure
- Filename mismatch (e.g. wrong extension or case) results in 404
- Requesting a PDF file type which is not preferred and may return binary data
- Accession number references a filing that has been removed or amended
- Rate limiting or payment failure if x402 payment not properly handled

## How this service works

Fetch one SEC filing document from EDGAR Archives by { cik, accession, filename } (from edgar/fulltext hit ids or edgar/filings). Returns the raw document — Form D XML carries offering amounts, Form C/C-AR XML carries revenue/net income of private companies, Form 4 XML carries insider buys/sells. Prefer .xml/.htm/.txt files (not PDFs).

## Output

The raw content of the requested SEC filing document — typically XML, HTM, or TXT format. For Form D XML: contains offering amounts and exemption details. For Form C/C-AR XML: contains revenue, net income, and other financials of private companies. For Form 4 XML: contains insider transaction details including shares bought/sold, prices, and dates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "$schema": "http://json-schema.org/draft-07/schema#",
     "required": [
      "cik",
      "accession",
      "filename"
     ],
     "properties": {
      "cik": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^\\d{1,10}$"
        },
        {
         "type": "integer",
         "exclusiveMinimum": 0
        }
       ]
      },
      "filename": {
       "type": "string",
       "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,200}$"
      },
      "accession": {
       "type": "string",
       "pattern": "^\\d{10}-?\\d{2}-?\\d{6}$"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sec-edgar-document-fetcher-4aad012f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vaaya.ai](https://www.zero.xyz/host/vaaya.ai/llms.txt)
