# Federal Register API

> Returns US Federal Register documents, federal agencies, agency details and documents published by each agency.

Category: Government & Open Data. Region: US. 12 endpoints at `https://api.hoshime.com/v1/federalregister/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/federalregister
## GET /v1/federalregister/search

Documents of the Federal Register that match a text, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Text to search for, such as climate. Empty lists every document. (e.g. climate) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `abstract` (string), `agencies` (string[]), `htmlUrl` (string), `number` (string), `pdfUrl` (string), `publicationDate` (string), `title` (string), `type` (string)

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

## GET /v1/federalregister/document

One Federal Register document by its number, with its abstract, agencies and links.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `number` | string | yes | Document number, such as 2024-00001. (e.g. 2024-00001) |
| `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: `abstract` (string), `agencies` (string[]), `htmlUrl` (string), `number` (string), `pdfUrl` (string), `publicationDate` (string), `title` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/federalregister/document?number=2024-00001" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/federalregister/agencies

Every federal agency and department in the Federal Register, with its slug and parent.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `id` (string), `name` (string), `parentId` (string), `shortName` (string), `slug` (string)

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

## GET /v1/federalregister/agency

One federal agency with its description, website, parent and the agencies it oversees.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `slug` | string | yes | Agency slug, such as environmental-protection-agency. (e.g. environmental-protection-agency) |
| `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: `agencyUrl` (string), `childSlugs` (ChildSlug[]), `childSlugs[].slug` (string), `description` (string), `id` (string), `name` (string), `parentId` (string), `shortName` (string), `slug` (string)

```bash
curl "https://api.hoshime.com/v1/federalregister/agency?slug=environmental-protection-agency" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/federalregister/agencyFacets

Which agencies publish the documents that match a text, with the number of matching documents for each.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Text to search for, such as energy. (e.g. energy) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `count` (integer (int64)), `name` (string), `slug` (string)

```bash
curl "https://api.hoshime.com/v1/federalregister/agencyFacets?query=energy" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/federalregister/documentsByAgency

The documents one federal agency published, newest first, optionally filtered by a text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `slug` | string | yes | Agency slug, such as environmental-protection-agency. (e.g. environmental-protection-agency) |
| `query` | string | no | Text to search for within the agency's documents. Empty lists them all. |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `abstract` (string), `agencies` (string[]), `htmlUrl` (string), `number` (string), `pdfUrl` (string), `publicationDate` (string), `title` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/federalregister/documentsByAgency?slug=environmental-protection-agency" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/federalregister/documentsByType

The documents of one type across the Federal Register, newest first: RULE, PRORULE, NOTICE or PRESDOCU.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `type` | string | yes | RULE (final rule), PRORULE (proposed rule), NOTICE or PRESDOCU (presidential document). (one of RULE, PRORULE, NOTICE, PRESDOCU; e.g. PRORULE) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `abstract` (string), `agencies` (string[]), `htmlUrl` (string), `number` (string), `pdfUrl` (string), `publicationDate` (string), `title` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/federalregister/documentsByType?type=PRORULE" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/federalregister/documentsOn

The documents the Federal Register published on one day.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `date` | string | yes | Publication date as YYYY-MM-DD, such as 2024-01-02. (e.g. 2024-01-02) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `abstract` (string), `agencies` (string[]), `htmlUrl` (string), `number` (string), `pdfUrl` (string), `publicationDate` (string), `title` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/federalregister/documentsOn?date=2024-01-02" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/federalregister/documentsByCfr

Federal Register documents about one part of the Code of Federal Regulations, such as title 40 part 60, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `title` | integer | yes | CFR title number, such as 40 for environmental protection. (e.g. 40) |
| `part` | string | no | Part of the title, such as 60. Empty lists every part of the title. (e.g. 60) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `abstract` (string), `agencies` (string[]), `htmlUrl` (string), `number` (string), `pdfUrl` (string), `publicationDate` (string), `title` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/federalregister/documentsByCfr?title=40&part=60" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/federalregister/documentsBetween

The documents the Federal Register published between two days, inclusive, newest first, optionally of one type.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `from` | string | yes | First publication date as YYYY-MM-DD, such as 2024-01-02. (e.g. 2024-01-02) |
| `to` | string | yes | Last publication date as YYYY-MM-DD, on or after from. (e.g. 2024-01-03) |
| `type` | string | no | RULE (final rule), PRORULE (proposed rule), NOTICE or PRESDOCU (presidential document). Empty lists every type. (one of RULE, PRORULE, NOTICE, PRESDOCU) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `abstract` (string), `agencies` (string[]), `htmlUrl` (string), `number` (string), `pdfUrl` (string), `publicationDate` (string), `title` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/federalregister/documentsBetween?from=2024-01-02&to=2024-01-03" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/federalregister/publicInspection

The documents on the public inspection list now: those that will be published in the next issue. The list is empty outside the publication window.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `abstract` (string), `agencies` (string[]), `htmlUrl` (string), `number` (string), `pdfUrl` (string), `publicationDate` (string), `title` (string), `type` (string)

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

## GET /v1/federalregister/publicInspectionDocument

One document on the public inspection list by its document number, with its agencies and links.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `number` | string | yes | Document number, such as 2024-00001. (e.g. 2024-00001) |
| `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: `abstract` (string), `agencies` (string[]), `htmlUrl` (string), `number` (string), `pdfUrl` (string), `publicationDate` (string), `title` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/federalregister/publicInspectionDocument?number=2024-00001" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
