# SEC Company Search (`sec.company_search`)

Find US-listed companies by ticker or name in the SEC's own list and get their CIK numbers.

- **Route:** `POST /v1/run/sec.company_search`
- **Price:** $0.001 per request ($1.00 per 1,000) · `cost_usd` on every response
- **Source:** SEC EDGAR APIs (`sec`) · failover: no
- **Measured latency:** p50 135 ms · p95 135 ms · p99 135 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `query` | string | yes |  | Ticker or part of the company name |
| `limit` | integer | no | 10 | Results to return |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `companies` | ticker, cik, name, filings_url. |
| `count` | Companies returned. |
| `total_matches` | All matches in the list. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/sec.company_search \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"nvidia"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('sec.company_search', {'query': 'nvidia'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run sec.company_search '{"query":"nvidia"}'
```

Quote first (free, validates input): `POST /v1/quote/sec.company_search` with the same body.
