> ## Documentation Index
> Fetch the complete documentation index at: https://docs.financialdatasets.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The Financial Datasets API is served at https://api.financialdatasets.ai. Authenticate with the `X-API-KEY` header; create keys at https://financialdatasets.ai. Agents can open and fund their own account without a dashboard: see https://docs.financialdatasets.ai/agents.md.
> Tool-using agents can call Financial Datasets without writing code through the hosted MCP server at https://mcp.financialdatasets.ai/.
> The OpenAPI spec at https://financialdatasets.ai/openapi.json is the source of truth for request and response schemas.
> The index of every docs page is at https://docs.financialdatasets.ai/llms.txt. Append .md to any docs URL to get that page as Markdown.

# Search

> Ask a question about a public company in plain English and get the answer from what it reported, with a citation.

Search answers a question about a public company from what the company has reported, and shows where the answer came from: how it pays its directors, what its clawback policy says, what it announced in its latest results release, who replaced its chief financial officer, which risks it faces, how its sales moved last quarter. You send a precise query and the companies you mean. You get back the parts of the record that answer it, word for word, each with a link that opens the source at that place.

> [!NOTE]
>
> **Alpha.** Access is by invitation; callers without access receive a `404`. The request and response shapes may change during the alpha. Contact us to request access.

## Make your first request

Search uses the same API key as every other endpoint.

```python Python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import requests

response = requests.post(
    "https://api.financialdatasets.ai/search",
    headers={"X-API-KEY": "your_api_key_here"},
    json={
        "query": "committee retainers",
        "filters": {"identifiers": {"ticker": ["CCI"]}},
    },
)

for result in response.json()["results"]:
    print(result["title"], result["url"])
    for excerpt in result["excerpts"]:
        print(excerpt["text"], excerpt["citation"]["link"])
```

```javascript JavaScript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
const response = await fetch("https://api.financialdatasets.ai/search", {
  method: "POST",
  headers: { "X-API-KEY": "your_api_key_here", "Content-Type": "application/json" },
  body: JSON.stringify({
    query: "committee retainers",
    filters: { identifiers: { ticker: ["CCI"] } },
  }),
});

const { results } = await response.json();
for (const result of results) {
  console.log(result.title, result.url);
  for (const excerpt of result.excerpts) {
    console.log(excerpt.text, excerpt.citation.link);
  }
}
```

```bash cURL theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
curl -s -X POST "https://api.financialdatasets.ai/search" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $FINANCIAL_DATASETS_API_KEY" \
  -d '{
    "query": "committee retainers",
    "filters": { "identifiers": { "ticker": ["CCI"] } }
  }'
```

Each result is one document. Each excerpt is a passage from that document, reproduced verbatim, with a link that opens the document at the passage.

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "title": "Crown Castle Inc · DEF 14A 2026",
  "url": "https://www.sec.gov/Archives/edgar/data/1051470/000105147026000039/cci-20260406.htm",
  "date": "2026-04-06",
  "excerpts": [
    {
      "text": "2025 Committee Retainers(a)\nBoard Committee | Committee Chair | Committee Member(b)\nAudit Committee | $30,000 | $15,000\nCEO Search Committee | $20,000 | $10,000\nCHC Committee | $25,000 | $12,500\nFiber Review Committee | $25,000 | $12,500 ...",
      "citation": {
        "document": "0001051470-26-000039",
        "date": "2026-04-06",
        "section": "Crown Castle Inc. > 2025 Committee Retainers(a)",
        "link": "https://www.sec.gov/Archives/edgar/data/1051470/000105147026000039/cci-20260406.htm#:~:text=Committee%20Member%28b%29,N%26G%20Committee"
      },
      "attributes": { "kind": "table" }
    }
  ]
}
```

## Write the query

`query` is the only required field, at most 300 characters. The more precise the query, the better the answer. Five rules cover most requests.

| Rule | Example |
| - | - |
| Say clearly what you want. Include every detail that changes the answer: the subject, the people, the period, the kind of thing. | `annual cash retainers paid to directors for committee service`, not `retainers`. |
| Write a description or a question; both work. A vague query fails in either form. | `How much does Crown Castle pay directors who serve on board committees?` works. `What about pay?` does not. |
| Name the fact when you want a value. Name the table or section when you want the whole of it. | `total compensation of each named executive officer for 2025` returns the rows that hold the values. `summary compensation table` returns the table. |
| Send one query per item you want. | `clawback policy` and `stock ownership guidelines` as two requests, not one. |
| Put the company in `filters.identifiers`. | `committee retainers` with `{"ticker": ["CCI"]}`. The company may also be named in the text, as in `committee retainers for CCI`. |

A year in the query text widens the search to every year on record. To search one year, send `filters.date` instead.

## Name the companies

`filters.identifiers` lists the companies to search, by `ticker` or `cik`. A CIK may be sent without leading zeros. A list runs the same query over each company in it. An identifier that matches no listed company is a `400` that names it.

Send it whenever you know the company. Without it, Search reads the documents of every company. A query that names a company Search cannot identify is a `422` with the fix in the body, never an answer drawn from other companies' documents.

## Pick the kind of document

`filters.document_type` limits the search to the kinds of document you name, as a result's `attributes.document_type` names them: `10-K` (annual report), `10-Q` (quarterly report), `8-K` (current report) and `DEF 14A` (proxy statement). An amendment is read with its kind: a `10-K/A` with the `10-K`. Send it when a passage from another kind would be wrong. Without it, Search reads the kinds the question names, and every kind when it names none.

```python Python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
response = requests.post(
    "https://api.financialdatasets.ai/search",
    headers={"X-API-KEY": "your_api_key_here"},
    json={
        "query": "quarterly revenue and net income announced in the results press release",
        "filters": {
            "identifiers": {"ticker": ["AAPL"]},
            "document_type": ["8-K"],
            "date": {"after": "2026-07-01", "before": "2026-08-31"},
        },
        "limit": 1,
    },
)
```

```javascript JavaScript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
const response = await fetch("https://api.financialdatasets.ai/search", {
  method: "POST",
  headers: { "X-API-KEY": "your_api_key_here", "Content-Type": "application/json" },
  body: JSON.stringify({
    query: "quarterly revenue and net income announced in the results press release",
    filters: {
      identifiers: { ticker: ["AAPL"] },
      document_type: ["8-K"],
      date: { after: "2026-07-01", before: "2026-08-31" },
    },
    limit: 1,
  }),
});
```

```bash cURL theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
curl -s -X POST "https://api.financialdatasets.ai/search" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $FINANCIAL_DATASETS_API_KEY" \
  -d '{
    "query": "quarterly revenue and net income announced in the results press release",
    "filters": {
      "identifiers": { "ticker": ["AAPL"] },
      "document_type": ["8-K"],
      "date": { "after": "2026-07-01", "before": "2026-08-31" }
    },
    "limit": 1
  }'
```

The result is the press release, an exhibit of the filing. Its `title` names the exhibit, and its `attributes` carry the exhibit and the codes of the events the filing reports. The excerpt is shortened.

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "title": "Apple Inc · 8-K 2026-07-30 · EX-99.1",
  "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000018/a8-kex991q3202606272026.htm",
  "date": "2026-07-30",
  "source": "sec.gov",
  "excerpts": [
    {
      "text": "Exhibit 99.1\nApple reports third quarter results\nJune quarter records for total company revenue and EPS\niPhone, Mac and Services revenue set new June quarter records\nCUPERTINO, CALIFORNIA — Apple today announced financial results for its fiscal 2026 third quarter ended June 27, 2026. The Company posted quarterly revenue of $109.4 billion, up 16 percent year over year. ...",
      "citation": {
        "document": "0000320193-26-000018-2",
        "date": "2026-07-30",
        "section": "Apple reports third quarter results > iPhone, Mac and Services revenue set new June quarter records",
        "link": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000018/a8-kex991q3202606272026.htm#:~:text=Apple%20reports%20third,meeting%20of%20shareholders."
      },
      "attributes": { "kind": "text" }
    }
  ],
  "entities": [
    { "name": "Apple Inc", "identifiers": { "cik": "0000320193", "ticker": "AAPL" } }
  ],
  "attributes": { "document_type": "8-K", "exhibit": "EX-99.1", "items": ["2.02", "9.01"] }
}
```

## Ask about the latest year or quarter

Name the company and send no window: the company's newest report answers. The `title` and `attributes.report_period` name the period it covers.

A question about the fiscal year:

```python Python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
response = requests.post(
    "https://api.financialdatasets.ai/search",
    headers={"X-API-KEY": "your_api_key_here"},
    json={
        "query": "risk factors on supply chain concentration",
        "filters": {
            "identifiers": {"ticker": ["AAPL"]},
            "document_type": ["10-K"],
        },
        "limit": 1,
    },
)
```

```javascript JavaScript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
const response = await fetch("https://api.financialdatasets.ai/search", {
  method: "POST",
  headers: { "X-API-KEY": "your_api_key_here", "Content-Type": "application/json" },
  body: JSON.stringify({
    query: "risk factors on supply chain concentration",
    filters: {
      identifiers: { ticker: ["AAPL"] },
      document_type: ["10-K"],
    },
    limit: 1,
  }),
});
```

```bash cURL theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
curl -s -X POST "https://api.financialdatasets.ai/search" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $FINANCIAL_DATASETS_API_KEY" \
  -d '{
    "query": "risk factors on supply chain concentration",
    "filters": {
      "identifiers": { "ticker": ["AAPL"] },
      "document_type": ["10-K"]
    },
    "limit": 1
  }'
```

The excerpt is shortened.

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "title": "Apple Inc · 10-K · fiscal year ended 2026-09-26",
  "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/aapl-20260926.htm",
  "date": "2026-11-03",
  "source": "sec.gov",
  "excerpts": [
    {
      "text": "Political events, trade and other international disputes, geopolitical tensions, conflict, terrorism, natural disasters, public health issues, industrial accidents and other business interruptions can have a material adverse effect on the Company ...\nA significant majority of the Company’s manufacturing is performed in whole or in part by outsourcing partners located primarily in China mainland, India, Japan, South Korea, Taiwan and Vietnam, in addition to sourcing from partners and facilities located in the U.S.\nGlobal supply chains can be highly concentrated, ...",
      "citation": {
        "document": "0000320193-26-000026",
        "date": "2026-11-03",
        "section": "Item 1A. Risk Factors > Macroeconomic and Industry Risks",
        "link": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/aapl-20260926.htm#:~:text=interruptions.-,Political%20events%2C%20trade,time%2Dconsuming%20and%20disruptive."
      },
      "attributes": { "kind": "text" }
    }
  ],
  "entities": [
    { "name": "Apple Inc", "identifiers": { "cik": "0000320193", "ticker": "AAPL" } }
  ],
  "attributes": { "document_type": "10-K", "report_period": "2026-09-26" }
}
```

A report on one quarter also names the quarter of the company's fiscal year, in the `title` and in `attributes.fiscal_quarter`:

```python Python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
response = requests.post(
    "https://api.financialdatasets.ai/search",
    headers={"X-API-KEY": "your_api_key_here"},
    json={
        "query": "net sales by product category",
        "filters": {
            "identifiers": {"ticker": ["AAPL"]},
            "document_type": ["10-Q"],
        },
        "limit": 1,
    },
)
```

```javascript JavaScript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
const response = await fetch("https://api.financialdatasets.ai/search", {
  method: "POST",
  headers: { "X-API-KEY": "your_api_key_here", "Content-Type": "application/json" },
  body: JSON.stringify({
    query: "net sales by product category",
    filters: {
      identifiers: { ticker: ["AAPL"] },
      document_type: ["10-Q"],
    },
    limit: 1,
  }),
});
```

```bash cURL theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
curl -s -X POST "https://api.financialdatasets.ai/search" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $FINANCIAL_DATASETS_API_KEY" \
  -d '{
    "query": "net sales by product category",
    "filters": {
      "identifiers": { "ticker": ["AAPL"] },
      "document_type": ["10-Q"]
    },
    "limit": 1
  }'
```

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "title": "Apple Inc · 10-Q · fiscal Q3 ended 2026-06-27",
  "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000020/aapl-20260627.htm",
  "date": "2026-07-31",
  "source": "sec.gov",
  "excerpts": [
    {
      "text": "Products and Services Performance\nThe following table shows net sales by category for the three- and nine-month periods ended June 27, 2026 and June 28, 2025 (dollars in millions):\nThree Months Ended | Nine Months Ended\nJune 27, 2026 | June 28, 2025 | Change | June 27, 2026 | June 28, 2025 | Change\niPhone | $54,252 | $44,582 | 22% | $196,515 | $160,561 | 22%\nMac | 10,352 | 8,046 | 29% | 27,137 | 24,982 | 9%\niPad | 6,191 | 6,581 | (6)% | 21,700 | 21,071 | 3%\nWearables, Home and Accessories | 7,883 | 7,404 | 6% | 27,277 | 26,673 | 2%\nServices | 30,739 | 27,423 | 12% | 91,728 | 80,408 | 14%\nTotal net sales | $109,417 | $94,036 | 16% | $364,357 | $313,695 | 16% ...",
      "citation": {
        "document": "0000320193-26-000020",
        "date": "2026-07-31",
        "section": "Part I > Item 2. Management’s Discussion and Analysis of Financial Condition and Results of Operations > Products and Services Performance",
        "link": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000020/aapl-20260627.htm#:~:text=Change-,iPhone,313%2C695"
      },
      "attributes": { "kind": "table" }
    }
  ],
  "entities": [
    { "name": "Apple Inc", "identifiers": { "cik": "0000320193", "ticker": "AAPL" } }
  ],
  "attributes": { "document_type": "10-Q", "report_period": "2026-06-27", "fiscal_quarter": "Q3" }
}
```

## Set the window

`filters.date` bounds the day a document became public: `after`, `before`, or both, as ISO days. Both bounds are inclusive.

When you send no window and the query names no year, a company you name is read over its newest report on a fiscal year or a quarter, with any amendment to it: `revenue last quarter` for `AAPL` reads Apple's latest quarter.

A quarter named with no year, such as `Q2 revenue`, reads the latest report on that quarter. The fourth quarter is reported with the full fiscal year.

For an announcement, send `filters.date` around the event: a company makes many a year, and every one stays in scope.

A window keeps every document inside it in scope. "Every document since 2024" is `{"after": "2024-01-01"}`; one year is both bounds. For a quarter of an earlier year, send a window around the day its report was filed; a quarter and a year in the query text do not narrow the search.

```python Python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
response = requests.post(
    "https://api.financialdatasets.ai/search",
    headers={"X-API-KEY": "your_api_key_here"},
    json={
        "query": "director attendance below 75% of board and committee meetings",
        "filters": {
            "identifiers": {"ticker": ["JPM", "BAC", "C", "WFC"]},
            "date": {"after": "2024-01-01"},
        },
        "limit": 25,
    },
)
```

```javascript JavaScript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
const response = await fetch("https://api.financialdatasets.ai/search", {
  method: "POST",
  headers: { "X-API-KEY": "your_api_key_here", "Content-Type": "application/json" },
  body: JSON.stringify({
    query: "director attendance below 75% of board and committee meetings",
    filters: {
      identifiers: { ticker: ["JPM", "BAC", "C", "WFC"] },
      date: { after: "2024-01-01" },
    },
    limit: 25,
  }),
});
```

```bash cURL theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
curl -s -X POST "https://api.financialdatasets.ai/search" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $FINANCIAL_DATASETS_API_KEY" \
  -d '{
    "query": "director attendance below 75% of board and committee meetings",
    "filters": {
      "identifiers": { "ticker": ["JPM", "BAC", "C", "WFC"] },
      "date": { "after": "2024-01-01" }
    },
    "limit": 25
  }'
```

## Read the response

One result per document, best first. Ten documents come back unless `limit` says otherwise; the most you can ask for is 100. A key that does not apply to a result is absent, never `null`.

**Example response** for `clawback policy for incentive compensation` with `filters.identifiers.ticker` of `["AAPL"]`. The excerpts are shortened.

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "search_id": "48805604-29b5-431f-ae85-7a405d576984",
  "results": [
    {
      "title": "Apple Inc · DEF 14A 2026",
      "url": "https://www.sec.gov/Archives/edgar/data/320193/000130817926000008/aapl014016-def14a.htm",
      "date": "2026-01-08",
      "source": "sec.gov",
      "excerpts": [
        {
          "text": "Recoupment of Compensation\nThe terms of all outstanding time-based and performance-based RSU awards held by our named executive officers in 2025 allow us to recoup any shares or other ...",
          "citation": {
            "document": "0001308179-26-000008",
            "date": "2026-01-08",
            "section": "Compensation > Compensation Discussion and Analysis > Governance and Other Considerations > Recoupment of Compensation",
            "link": "https://www.sec.gov/Archives/edgar/data/320193/000130817926000008/aapl014016-def14a.htm#:~:text=Governance%20and%20Other,to%20limited%20exceptions."
          },
          "attributes": { "kind": "text" }
        },
        {
          "text": "Executive Compensation Policies and Practices\nWe are committed to sound executive compensation policies and practices, as highlighted in the following table.\nProhibition on hedging, pledging, and short sales | ...",
          "citation": {
            "document": "0001308179-26-000008",
            "date": "2026-01-08",
            "section": "Compensation > Compensation Discussion and Analysis > Executive Compensation Policies and Practices",
            "link": "https://www.sec.gov/Archives/edgar/data/320193/000130817926000008/aapl014016-def14a.htm#:~:text=We%20have%20robust%20stock%20ownership%20guidelines,annual%20risk%20assessment%20of%20our%20compensation%20program."
          },
          "attributes": { "kind": "table" }
        }
      ],
      "entities": [
        { "name": "Apple Inc", "identifiers": { "cik": "0000320193", "ticker": "AAPL" } }
      ],
      "attributes": { "document_type": "DEF 14A" }
    }
  ]
}
```

| Field | Meaning |
| - | - |
| `search_id` | The id of this search. Keep it when you report a result to us. |
| `results[]` | One document each: `title`, `url`, `date`, `source`, `excerpts`, `entities`, `attributes`. |
| `excerpts[]` | The parts of the document that answer, verbatim, best first, at most 10. Each has its own `citation` and `attributes`. |
| `citation` | `document` is the document's id at its source, `date` the day it became public, `section` the location of the passage within the document, and `link` opens the document at the passage, highlighted. |
| `attributes.kind` | `text` or `table`. A table passage is the whole table, rows on lines and cells separated by `\|`. |
| `entities[]` | The companies the result is about, with their `cik` and `ticker`. |
| `attributes` | What is true of the document: `document_type` always; `exhibit` when the document is an exhibit of a filing, for example `EX-99.1`; `items`, the codes of the events the document reports, for example `["2.02", "9.01"]`, present when it reports events; `report_period`, the last day of the period the document covers, for example `2026-06-27`, present when it covers a period; `fiscal_quarter`, `Q1`, `Q2` or `Q3`, present when it covers one quarter of the company's fiscal year. |
| `warnings[]` | What a partial answer is missing, each `{type, message, hint}`. Present only when something is. `no_documents` means Search holds no document for these companies in this window; its `hint` names the dates it does hold. Widen the window or check the identifiers before you conclude. |

## Errors

| Status | When | Body |
| - | - | - |
| `400` | The body is not valid. | `error.message` names the field, for example `limit: Input should be less than or equal to 100` or `filters.document_type.0: Input should be 'DEF 14A', '8-K', '10-K' or '10-Q'`. |
| `404` | The caller does not have access during the alpha. | `{"error": "The endpoint /search does not exist."}` |
| `422` | The query names a company Search cannot identify. | `error.reason` is `ambiguous_symbol` or `unresolved_company`; `error.hint` says what to send. |
| `503` | Search is temporarily unavailable. | `error.message`. Try again shortly. |

## Next steps

> [card] [Best Practices](https://docs.financialdatasets.ai/search/best-practices.md)
>
> Write precise queries, improve one change at a time, and use the request shape for each kind of task.


## OpenAPI

````yaml POST /search
openapi: 3.0.1
info:
  title: Financial Datasets API
  description: >-
    Stock market API with real-time and historical financial data for 27,000+
    tickers over 30+ years. Financial statements, equity prices, insider trades,
    SEC filings, and more.
  version: 1.0.0
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  contact:
    name: API Support
    url: mailto:support@financialdatasets.ai
    email: support@financialdatasets.ai
  termsOfService: https://financialdatasets.ai/terms-of-use
servers:
  - url: https://api.financialdatasets.ai/
    description: Production server
security:
  - X-API-KEY: []
tags:
  - name: Financial Statements
    description: Access to income statements, balance sheets, and cash flow statements
  - name: Market Data
    description: Real-time and historical price data
  - name: Company Information
    description: Company facts like ticker, name, and description
  - name: Earnings
    description: Earnings data and related information
  - name: News
    description: Real-time and historical news articles
  - name: SEC Filings
    description: SEC filings and regulatory documents
  - name: Insider Trades
    description: Insider trading activity and transactions
  - name: Insider Sale Notices
    description: SEC Form 144 notices of proposed insider stock sales
  - name: Politician Trades
    description: Stock trades disclosed by members of Congress
  - name: Activist Ownership
    description: Activist stakes from SEC Schedule 13D filings, in real time
  - name: Beneficial Ownership
    description: >-
      Holders of more than 5% of a company's shares, from SEC Schedules 13D and
      13G
  - name: Insider Ownership
    description: Insider ownership statements from SEC Forms 3 and 5
  - name: Institutional Holdings
    description: SEC-direct 13F equity holdings of institutional investment managers
  - name: IPOs
    description: >-
      Upcoming IPOs from SEC registration statements (Form S-1), with extracted
      pre-IPO financial statements
  - name: Index Funds
    description: >-
      ETF and index-fund holdings, weights, and the funds that hold a given
      security
  - name: Financial Metrics
    description: Financial ratios, metrics, and key performance indicators
  - name: Macroeconomics
    description: Real-time and historical macroeconomic data like interest rates
  - name: KPIs
    description: Sector-specific operational KPIs extracted from earnings releases.
  - name: Agent Account
    description: Self-serve account creation and funding for AI agents.
  - name: Search
    description: Search financial documents with one question and get cited passages back
paths:
  /search:
    post:
      tags:
        - Search
      summary: Search financial documents
      description: >-
        Ask one question in plain English and get the passages of financial
        documents that answer it, each with a citation that opens the document
        at the passage. Alpha: access is by invitation.
      operationId: search
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
            example:
              query: clawback policy for incentive compensation
              filters:
                identifiers:
                  ticker:
                    - AAPL
              limit: 1
      responses:
        '200':
          description: The passages that answer, one result per document
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
              example:
                search_id: 48805604-29b5-431f-ae85-7a405d576984
                results:
                  - title: Apple Inc · DEF 14A 2026
                    url: >-
                      https://www.sec.gov/Archives/edgar/data/320193/000130817926000008/aapl014016-def14a.htm
                    date: '2026-01-08'
                    source: sec.gov
                    excerpts:
                      - text: >-
                          Governance and Other Considerations

                          Recoupment of Compensation

                          The terms of all outstanding time-based and
                          performance-based RSU awards held by our named
                          executive officers in 2025 allow us to recoup any
                          shares or other ...
                        citation:
                          document: 0001308179-26-000008
                          date: '2026-01-08'
                          section: >-
                            Compensation > Compensation Discussion and Analysis
                            > Governance and Other Considerations > Recoupment
                            of Compensation
                          link: >-
                            https://www.sec.gov/Archives/edgar/data/320193/000130817926000008/aapl014016-def14a.htm#:~:text=Governance%20and%20Other,to%20limited%20exceptions.
                        attributes:
                          kind: text
                    entities:
                      - name: Apple Inc
                        identifiers:
                          cik: '0000320193'
                          ticker: AAPL
                    attributes:
                      document_type: DEF 14A
        '400':
          description: The body is not valid. The message names the field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchErrorResponse'
              example:
                error:
                  message: 'limit: Input should be less than or equal to 100'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          $ref: '#/components/responses/PaymentRequiredError'
        '404':
          description: The caller does not have access during the alpha
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: The endpoint /search does not exist.
        '422':
          description: >-
            The question names a company the search cannot identify. Send
            filters.identifiers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchRefusalResponse'
              example:
                search_id: e38104d5-6bd7-4d82-bc4e-0a21179d1f77
                error:
                  reason: unresolved_company
                  message: A company named in the query matched no listing, or several.
                  hint: Send filters.identifiers.
        '503':
          description: Search is temporarily unavailable. Try again shortly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchErrorResponse'
              example:
                search_id: e38104d5-6bd7-4d82-bc4e-0a21179d1f77
                error:
                  message: Search is temporarily unavailable. Try again shortly.
components:
  schemas:
    SearchRequest:
      type: object
      required:
        - query
      properties:
        query:
          type: string
          minLength: 1
          maxLength: 300
          description: One question in plain English, 1 to 300 characters.
        filters:
          type: object
          description: >-
            Constraints on which documents are searched. Nothing outside a
            filter is returned.
          properties:
            identifiers:
              type: object
              description: >-
                The companies the search is about, by scheme. Results come only
                from these companies. An identifier no listed company has is a
                400.
              properties:
                ticker:
                  type: array
                  items:
                    type: string
                  description: Ticker symbols, for example ["AAPL", "MSFT"].
                cik:
                  type: array
                  items:
                    type: string
                  description: SEC Central Index Keys. Leading zeros are optional.
            date:
              type: object
              description: >-
                A window on the document's date, the day it became public. Both
                bounds are inclusive. Send either or both. A window keeps every
                document inside it in scope.
              properties:
                after:
                  type: string
                  format: date
                  description: Only documents made public on or after this day.
                before:
                  type: string
                  format: date
                  description: Only documents made public on or before this day.
            document_type:
              type: array
              items:
                type: string
                enum:
                  - DEF 14A
                  - 8-K
                  - 10-K
                  - 10-Q
              description: >-
                The kinds of document to read, as a result's
                attributes.document_type names them. An amendment reads with its
                base form. Absent, every kind the question names is read, else
                every kind.
        limit:
          type: integer
          minimum: 1
          maximum: 100
          default: 10
          description: How many results to return. A result is one document.
    SearchResponse:
      type: object
      required:
        - search_id
        - results
      properties:
        search_id:
          type: string
          format: uuid
          description: The id of this search. Keep it when you report a result.
        results:
          type: array
          description: One result per document, best first. At most `limit`.
          items:
            $ref: '#/components/schemas/SearchResult'
        warnings:
          type: array
          description: What a partial answer is missing. Absent when nothing is.
          items:
            type: object
            properties:
              type:
                type: string
                description: A code you can branch on.
              message:
                type: string
                description: What is missing.
              hint:
                type: string
                description: What to send instead.
    SearchErrorResponse:
      type: object
      properties:
        search_id:
          type: string
          format: uuid
          description: >-
            The id of this search. Absent when the request was refused before a
            search began.
        error:
          type: object
          properties:
            message:
              type: string
              description: What is wrong. A 400 names the field.
    SearchRefusalResponse:
      type: object
      required:
        - search_id
        - error
      properties:
        search_id:
          type: string
          format: uuid
        error:
          type: object
          required:
            - reason
            - message
            - hint
          properties:
            reason:
              type: string
              enum:
                - ambiguous_symbol
                - unresolved_company
              description: Why the search was refused. A code you can branch on.
            message:
              type: string
              description: What the question left unclear.
            hint:
              type: string
              description: What to send so the search can run.
    SearchResult:
      type: object
      description: One document, with the passages in it that answer the question.
      required:
        - title
        - url
        - date
        - source
        - excerpts
        - entities
        - attributes
      properties:
        title:
          type: string
          description: >-
            The company and the document, for example "Apple Inc · DEF 14A
            2026". A document on a period names it: "Apple Inc · 10-Q · fiscal
            Q3 ended 2026-06-27". An exhibit names its filing and itself: "Apple
            Inc · 8-K 2026-07-30 · EX-99.1".
        url:
          type: string
          description: The document itself.
        date:
          type: string
          format: date
          description: The day the document became public.
        source:
          type: string
          description: The site the document came from. Today always "sec.gov".
        excerpts:
          type: array
          description: The passages of this document that answer, best first. At most 10.
          items:
            $ref: '#/components/schemas/SearchExcerpt'
        entities:
          type: array
          description: The companies the result is about.
          items:
            $ref: '#/components/schemas/SearchEntity'
        attributes:
          type: object
          description: What is true of the document.
          properties:
            document_type:
              type: string
              description: >-
                The kind of document, one of the values filters.document_type
                takes.
            exhibit:
              type: string
              description: >-
                The exhibit this document is, for example "EX-99.1". Absent when
                the document is the filing itself.
            items:
              type: array
              items:
                type: string
              description: >-
                The codes of the events the document reports, for example
                ["2.02", "9.01"]. Present when it reports events.
            report_period:
              type: string
              format: date
              description: >-
                The last day of the period the document covers, for example
                "2026-06-27". Present when it covers a period.
            fiscal_quarter:
              type: string
              enum:
                - Q1
                - Q2
                - Q3
              description: >-
                The quarter of the company's fiscal year the document covers.
                Present when it covers one quarter.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: A short error message.
        message:
          type: string
          description: A more detailed error message.
    SearchExcerpt:
      type: object
      description: >-
        One passage of the document that answers the question, with its own
        citation.
      required:
        - text
      properties:
        text:
          type: string
          description: The passage, verbatim from the document.
        citation:
          $ref: '#/components/schemas/SearchCitation'
        attributes:
          type: object
          description: What is true of this passage.
          properties:
            kind:
              type: string
              enum:
                - text
                - table
              description: Whether the passage is running text or a table.
            part:
              type: string
              description: >-
                The part of a table this passage covers, for example "1 of 2".
                Absent for text and for a table returned whole.
    SearchEntity:
      type: object
      description: A company the result is about.
      required:
        - name
        - identifiers
      properties:
        name:
          type: string
          description: The company's name.
        identifiers:
          type: object
          description: >-
            The company's identifiers by scheme. The same schemes
            filters.identifiers accepts.
          properties:
            cik:
              type: string
              description: The SEC Central Index Key, zero-padded to 10 digits.
            ticker:
              type: string
              description: The ticker symbol.
    SearchCitation:
      type: object
      description: Where a passage was read, and the link that opens the document there.
      required:
        - document
        - date
      properties:
        document:
          type: string
          description: >-
            The document's id at its source: the accession number for an SEC
            filing.
        date:
          type: string
          format: date
          description: The day the document became public.
        section:
          type: string
          description: >-
            The headings above the passage, outermost first. Absent when the
            passage sits under no heading.
        link:
          type: string
          description: >-
            Opens the document at the passage, highlighted, or the document
            itself when a highlighted link is not available.
  responses:
    UnauthorizedError:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Unauthorized
            message: Invalid API key provided
    PaymentRequiredError:
      description: The request requires a paid subscription
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Payment Required
            message: >-
              This endpoint requires a paid subscription. Please upgrade your
              plan.
  securitySchemes:
    X-API-KEY:
      type: apiKey
      name: X-API-KEY
      description: API key for authentication.
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.