Skip to main content
With an API key and any HTTPS client, you can query S&P 500 SEC filing evidence in a single request. If another LLM or agent will generate the final response, request agent_context: a ready-to-feed Markdown payload that combines evidence-use instructions with grounding evidence. The examples below use curl.

1. Set Your API Key

Set your key as an environment variable:
Every request sends this key in the X-API-Key header.

2. Request Agent Context

For agent integrations, request agent_context from the /query endpoint:
This request uses the defaults: mode: "basic", effort: "medium", evidence: true, evidence_instructions: true, evidence_format: "rendered", and summary: true. It returns top-level evidence fields and evidence_budget for direct inspection, plus agent_context.text for direct handoff to another LLM or agent.

3. Hand It to Your Agent

A successful agent_context response includes the default evidence fields plus one context object for your LLM or agent runtime:
Given the response above, pass agent_context.text as the context for the downstream model call, alongside the original user question:
Your agent should use agent_context.text as the grounded context for answer generation. It includes both the instructions for using the evidence and the evidence itself. summary.evidence_count is the number of retrieved evidence paths used as grounding for the response. It is not a count of SEC filings; one evidence path can include multiple filing statements.

4. Default Evidence Response

If you omit include.agent_context, the default response includes a request_id, rendered evidence, evidence_instructions, evidence_budget, and summary.
Evidence-use instructions are returned by default when top-level evidence is included. To omit them from the top-level response, set include.evidence_instructions to false:

5. Discover Metadata Filters

Use GET /metadata-filters to inspect the supported metadata-filter fields, operators, limits, and optional categorical values. By default, research and agentic_research attempt to infer relevant metadata filters from the natural-language query. You can also provide metadata_filters explicitly when you know exact constraints, such as sec_ticker, sec_form_type, sec_fiscal_year, or sec_item_tag. Caller-provided metadata filters are treated as constraints, and the API may add filters inferred from the query.

6. Send a Query with Metadata Filters

Use research or agentic_research when you pass metadata filters. basic mode rejects non-empty metadata filters.
Both retrieval controls are optional and must be positive when supplied. max_evidence_tokens is uncapped when omitted; the response still includes the deterministic evidence-size estimate.