Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.secapi.ai/llms.txt

Use this file to discover all available pages before exploring further.

Migrate from sec-api.io

This guide translates common sec-api.io jobs onto Datastream without forcing you to relearn the whole product in one sitting.

What changes when you switch

One normalized object model

Datastream keeps provenance, freshness, and materialization visible instead of treating them like optional extras.

Filing types and exhibits map

Check which filing families Datastream retrieves generically, normalizes directly, or only supports inside workflow-specific parsers.

Request diagnostics

Request-Id is first-class across the REST surface so support and debugging workflows stay sane.

Shared REST and MCP surface

Hosted MCP and REST share the same underlying workflows rather than diverging into two products.

Compact extraction mode

Section extraction can return machine-first payloads when you want token efficiency instead of rendered prose.

Route mapping

If you depend on arbitrary historical filing URLs or HTML extractor output, keep a temporary fallback path while you finish historical filing-target support. Datastream is stronger on normalized workflows than on raw URL-style extractor parity.
  • /mapping/ticker/{ticker} -> /v1/entities/resolve?ticker={ticker}
  • /mapping/cik/{cik} -> /v1/entities/resolve?cik={cik}
  • / filing search POST body -> /v1/filings query params
  • list of filing types and exhibits -> SEC Filing Types and Exhibits
  • /extractor?url=...&item=1A&type=text -> /v1/filings/latest/sections/item_1a?...&mode=compact when latest filing mapping is sufficient
  • /xbrl-to-json -> /v1/statements/{statement_key} or /v1/facts
  • /insider-trading -> /v1/insiders
  • /compensation/{ticker} -> /v1/compensation?ticker={ticker}

Request translation examples

Ticker mapping

curl -H "x-api-key: $OMNI_DATASTREAM_API_KEY" \
  "https://api.secapi.ai/v1/entities/resolve?ticker=AAPL"
curl -H "x-api-key: $OMNI_DATASTREAM_API_KEY" \
  "https://api.secapi.ai/v1/filings?ticker=AAPL&form=10-K&limit=10"

Machine-first section extraction

curl -H "x-api-key: $OMNI_DATASTREAM_API_KEY" \
  "https://api.secapi.ai/v1/filings/latest/sections/item_1a?ticker=AAPL&form=10-K&mode=compact"

Migration notes

  • Pin omni-version in production clients before cutover
  • Keep recording Request-Id during dual-run testing so request diagnostics stay comparable
  • If you depend on arbitrary historical filing URLs for extractor-style requests, keep that path on a temporary fallback until the historical lookup backlog lands
  • If you depend on HTML extractor output, treat that as a current gap and stay on the temporary fallback path
  1. issuer resolution
  2. filing search
  3. statements and facts
  4. section extraction in compact mode
  5. compare and artifact flows once the target plan is enabled

Migrate from financialdatasets.ai

Compare the second major migration path.

Benchmark workflows

See the current latency, freshness, and workflow proof.

API Reference

Open the exact operation pages once you are ready to wire the calls.