# searchFilings

**Identifier:** `sec_searchFilings`

**Provider:** [SEC](https://kirha.com/providers/sec.md)

Search SEC filings using full-text search. Find company filings based on specific text queries within filing documents.

## Run it with the CLI

```bash
kirha tools run sec_searchFilings \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "sec_searchFilings",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "categories": {
      "description": "Human-readable categories of SEC forms to search (e.g., 'Annual report', 'Quarterly report'). Can be combined with formTypes.",
      "items": {
        "enum": [
          "Current event report",
          "Amended current report",
          "Quarterly report",
          "Amended quarterly report",
          "Annual report",
          "Amended annual report",
          "IPO registration",
          "Amended IPO registration",
          "Post-effective amendment",
          "Prospectus update",
          "Reg A offering circular",
          "Reg A offering statement",
          "Amended Reg A statement",
          "Reg A annual report",
          "Reg A semiannual report",
          "Crowdfunding annual report",
          "Foreign issuer report",
          "Initial 12(g) registration",
          "Amended 12(g) registration",
          "Late quarterly report notice",
          "Broker-dealer annual report"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "ciks": {
      "description": "Company CIKs to search. Compose first with getCompanyCik if you're given company names. Never put the company name as a query if you already have the CIK.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "endDate": {
      "description": "End date for search range (YYYY-MM-DD), inclusive. Defaults to today.",
      "type": "string"
    },
    "formTypes": {
      "description": "Specific SEC form types to search (e.g., '10-K', '8-K', 'S-1'). Can be combined with categories.",
      "items": {
        "enum": [
          "8-K",
          "8-K/A",
          "10-Q",
          "10-Q/A",
          "10-K",
          "10-K/A",
          "S-1",
          "S-1/A",
          "POS AM",
          "424B3",
          "253G2",
          "1-A",
          "1-A/A",
          "1-K",
          "1-SA",
          "C-AR",
          "6-K",
          "10-12G",
          "10-12G/A",
          "NT 10-Q",
          "X-17A-5",
          "20-F",
          "40-F",
          "11-K",
          "NT 10-K",
          "NT 20-F",
          "NT-NCEN",
          "S-3",
          "S-3/A",
          "S-4",
          "S-4/A",
          "S-8",
          "S-11",
          "S-11/A",
          "424B4",
          "424B5",
          "424B7",
          "424B8",
          "F-1",
          "F-3",
          "F-4",
          "F-6",
          "F-6EF",
          "D",
          "C",
          "C/A",
          "C-U",
          "N-CSR",
          "N-CSRS",
          "N-Q",
          "N-PORT",
          "N-CEN",
          "N-1A",
          "SD"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "limit": {
      "default": 10,
      "description": "Maximum number of results to return",
      "maximum": 50,
      "minimum": 1,
      "type": "number"
    },
    "query": {
      "description": "Use the query field only for general search terms. The query field must be a string containing the search expression. You can use: Keywords or phrases: wrap exact phrases in double quotes, e.g., \"climate change\". Boolean operators: AND, OR, NOT (must be uppercase). Wildcards: use an asterisk * only as a trailing wildcard, e.g., \"bio*\". Combine multiple rules as needed, e.g.: \"substantial doubt\" NOT \"opinion\" OR \"risk\" AND \"insurance\"",
      "type": "string"
    },
    "startDate": {
      "description": "Start date for search range (YYYY-MM-DD), inclusive. With a query and no dates, only the last 30 days are searched; without a query, all dates are searched.",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "filings": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "accessionNo": {
            "type": "string"
          },
          "cik": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "filedAt": {
            "type": "string"
          },
          "filingUrl": {
            "type": "string"
          },
          "formType": {
            "type": "string"
          },
          "ticker": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "accessionNo",
          "cik",
          "companyName",
          "ticker",
          "formType",
          "description",
          "filingUrl",
          "filedAt"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "totalResults": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "totalResults",
    "filings"
  ],
  "type": "object"
}
```

## Related tools

Other SEC tools that this tool refers to, or that refer to it.

- [`getCompanyCik`](https://kirha.com/providers/sec/getCompanyCik.md)

-----

[All SEC tools](https://kirha.com/providers/sec.md) · [< Back to tools list](https://kirha.com/tools.md)