BLS provider extension for OpenBB Platform.
Actively maintained. Last release 2 months ago, commits in 12 of the last 26 weeks. A safe choice.
pip install openbb-blsBLS Provider Extension for the OpenBB Platform
openbb-bls integrates the U.S. Bureau of Labor Statistics into the OpenBB
Platform. It combines three data paths:
- BLS Public Data API v2 — point-in-time time series by series ID (the only endpoint that can use an API key).
- Published release files — News Release tables, supplemental XLSX files,
and the news-release chart packages, parsed directly from
bls.gov. - A bundled series catalog — a local, partitioned cache of ~1.1M BLS series (14 survey families) so the catalog search works offline with no API calls.
A bundled OpenBB Workspace dashboard (apps.json) ships five apps: a BLS home
app plus dedicated Employment Situation, CPI, PPI, and Productivity apps.
Installation
From PyPI:
pip install openbb-bls
For local development from a clone of the OpenBB monorepo, run from this folder:
pip install -e .
Authentication
No key is required. Every News-Release table, supplemental table, and chart endpoint is parsed from published files and works with no credentials.
An (optional) BLS registration key only affects the series endpoint, where
it raises the per-request limits — 50 symbols / 20-year window / 500 requests
per day (registered) vs. 25 / 10 years / 25 per day (unregistered). Get one at
https://data.bls.gov/registrationEngine/ and set it as bls_api_key:
from openbb import obb
obb.user.credentials.bls_api_key = "YOUR_KEY"
Coverage
Python commands are obb.bls.<group>.<command>(...); the equivalent REST route
is GET /api/v1/bls/<group>/<command>. Every group also exposes a documents
command listing the release PDFs/files for that program.
Consumer Price Index — bls.cpi
| Command | Description |
|---|---|
t1_expenditure_category … t7_12m_analysis | News Release tables 1–7 (expenditure category, detailed, special aggregates, selected areas, chained vs. CPI-U, 1-month and 12-month analyses) |