# SEC EDGAR API

> Returns company filings, XBRL reported facts and frames, full-text filing search and ticker-to-CIK mappings from SEC EDGAR.

Category: Finance & Crypto. Region: US. 5 endpoints at `https://api.hoshime.com/v1/secedgar/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/secedgar
## GET /v1/secedgar/company

A company by ticker or CIK: its identifiers, industry and most recent filings.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Ticker symbol such as AAPL, a CIK such as 320193, or an sec.gov company URL. (e.g. AAPL) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `cik` (string), `entityType` (string), `exchanges` (Label[]), `exchanges[].name` (string), `fiscalYearEnd` (string), `name` (string), `recentFilings` (Filing[]), `recentFilings[].accessionNumber` (string), `recentFilings[].description` (string), `recentFilings[].filingDate` (string), `recentFilings[].form` (string), `recentFilings[].reportDate` (string), `recentFilings[].url` (string), `sic` (string), `sicDescription` (string), `stateOfIncorporation` (string), `tickers` (Label[]), `tickers[].name` (string)

```bash
curl "https://api.hoshime.com/v1/secedgar/company?id=AAPL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/secedgar/facts

Reported XBRL values of one concept for one company, 100 per page, in the SEC's order.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cik` | string | yes | CIK such as 320193, or an sec.gov company URL. (e.g. 320193) |
| `concept` | string | yes | XBRL concept name, such as Revenues or EarningsPerShareBasic. (e.g. Revenues) |
| `taxonomy` | string | no | Taxonomy of the concept: us-gaap, ifrs-full or dei. (one of us-gaap, ifrs-full, dei; default us-gaap) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `accession` (string), `end` (string), `filedAt` (string), `fiscalPeriod` (string), `fiscalYear` (integer (int64)), `form` (string), `frame` (string), `start` (string), `unit` (string), `value` (number (double))

```bash
curl "https://api.hoshime.com/v1/secedgar/facts?cik=320193&concept=Revenues" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/secedgar/search

Filings whose text matches a search, from EDGAR full-text search, 100 per page.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search terms. Quote a phrase to match it exactly. (e.g. apple) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `accessionNumber` (string), `cikIds` (string[]), `companies` (Label[]), `companies[].name` (string), `filedAt` (string), `form` (string), `periodEnding` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/secedgar/search?query=apple" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/secedgar/frames

One reported value per company for an XBRL concept in a calendar period, across all filers.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `concept` | string | yes | XBRL concept name, such as Revenues or Assets. (e.g. Revenues) |
| `period` | string | yes | Calendar period such as CY2023, a quarter such as CY2023Q4, or an instant such as CY2023Q4I. (e.g. CY2023) |
| `unit` | string | no | Unit of the value, such as USD, USD-per-shares or shares. (default USD; e.g. USD) |
| `taxonomy` | string | no | Taxonomy of the concept: us-gaap, ifrs-full or dei. (one of us-gaap, ifrs-full, dei; default us-gaap) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `accession` (string), `cik` (string), `end` (string), `entityName` (string), `location` (string), `value` (number (double))

```bash
curl "https://api.hoshime.com/v1/secedgar/frames?concept=Revenues&period=CY2023&unit=USD" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/secedgar/tickers

Every ticker symbol the SEC maps to a registrant, with its CIK and company name.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `cik` (string), `name` (string), `ticker` (string)

```bash
curl "https://api.hoshime.com/v1/secedgar/tickers" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
