# US Bureau of Labor Statistics API

> Returns BLS time series such as CPI, unemployment, payrolls, wages and job openings for up to 25 series and 10 years, their latest values, and a list of popular series ids.

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

Values of BLS time series, such as the Consumer Price Index or the unemployment rate, for up to 25 series ids and a span of up to 10 years, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `series` | string | yes | BLS series ids separated by commas, up to 25, such as CUUR0000SA0 (CPI-U, all items). bls/popularSeries lists common ones. (e.g. LNS14000000) |
| `startYear` | integer | no | First year, 1900 to 2100. Default: the last few years. (e.g. 2024) |
| `endYear` | integer | no | Last year. Default: the current year. Keep the span to 10 years or less. (e.g. 2025) |
| `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: `date` (string), `footnotes` (string), `latest` (boolean), `period` (string), `periodName` (string), `series` (string), `value` (number (double)), `year` (any)

```bash
curl "https://api.hoshime.com/v1/bls/series?series=LNS14000000&startYear=2024&endYear=2025" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bls/latest

Latest value of each BLS time series, such as the Consumer Price Index or the unemployment rate, for up to 25 series ids.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `series` | string | yes | BLS series ids separated by commas, up to 25, such as CUUR0000SA0 (CPI-U, all items). bls/popularSeries lists common ones. (e.g. CUUR0000SA0,LNS14000000) |
| `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: `date` (string), `footnotes` (string), `latest` (boolean), `period` (string), `periodName` (string), `series` (string), `value` (number (double)), `year` (any)

```bash
curl "https://api.hoshime.com/v1/bls/latest?series=CUUR0000SA0%2CLNS14000000" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bls/popularSeries

Common BLS series ids with their titles, units and frequency: CPI, unemployment, payrolls, wages and job openings. Pass an id to bls/series or bls/latest.

Scope: `social:read` · Units: 1 · 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: `frequency` (string), `seasonallyAdjusted` (boolean), `series` (string), `title` (string), `unit` (string)

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