Public dataset · Government, society and transport
US Bureau of Labor Statistics (BLS) in BigQuery
BLS time series on consumer prices (CPI-U, chained CPI-U), unemployment from the Current Population Survey, employment, hours and earnings, and wage data, in long format with series lookup tables. 9 tables, 2.4 GiB. The dataset description says the tables are no longer updated.
The dataset holds economic statistics from the US Bureau of Labor Statistics on inflation and prices, unemployment, and pay. Data tables are in long format, one row per series_id and period: cpi_u (Consumer Price Index for All Urban Consumers), c_cpi_u (chained CPI-U), unemployment_cps (Current Population Survey), employment_hours_earnings, and wm (BLS survey code WM, modeled wage estimates). The *_series tables describe each series: title, codes for demographics or industry, seasonal adjustment and first and last period. cpsaat18 is a single CPS table of employed persons by detailed industry, sex, race and Hispanic or Latino ethnicity.
The dataset description carries a note: the tables have not been updated with the latest data even though their last-modified dates look recent, and Google has disabled the update pipeline. Check MAX(date) before you use any series for current figures.
Series IDs are BLS's own, so you can look them up on bls.gov: CUUR0000SA0 is CPI-U all items, US city average, not seasonally adjusted; LNS14000000 is the seasonally adjusted unemployment rate.
Tables and sizes
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
employment_hours_earnings | 8,164,148 | 1.3 GiB | under $0.01 | None |
unemployment_cps | 7,476,103 | 855 MiB | under $0.01 | None |
wm_series | 487,054 | 109 MiB | under $0.01 | None |
cpi_u | 939,014 | 106 MiB | under $0.01 | None |
wm | 487,054 | 67.9 MiB | under $0.01 | None |
unemployment_cps_series | 52,626 | 19.6 MiB | under $0.01 | None |
employment_hours_earnings_series | 25,285 | 4.5 MiB | under $0.01 | None |
c_cpi_u | 8,049 | 807 KiB | under $0.01 | None |
cpsaat18 | 1,272 | 189 KiB | under $0.01 | None |
Example queries
Latest CPI-U values, all items
Series CUUR0000SA0. Two columns plus the filter column of cpi_u: 27.6 MiB.
SELECT
date,
value AS cpi_u_index
FROM `bigquery-public-data.bls.cpi_u`
WHERE series_id = 'CUUR0000SA0'
ORDER BY date DESC
LIMIT 24;US unemployment rate, seasonally adjusted
Series LNS14000000 from the CPS table.
SELECT
date,
value AS unemployment_rate_pct
FROM `bigquery-public-data.bls.unemployment_cps`
WHERE series_id = 'LNS14000000'
ORDER BY date DESC
LIMIT 24;Find a series ID by title
Search the *_series lookup tables first instead of scanning the data tables.
SELECT
series_id,
series_title,
begin_year,
end_year
FROM `bigquery-public-data.bls.unemployment_cps_series`
WHERE LOWER(series_title) LIKE '%unemployment rate%'
AND seasonal = 'S'
ORDER BY series_id
LIMIT 20;Average hourly earnings with SELECT * (expensive)
All columns of employment_hours_earnings for one series: 1.26 GiB, the full table.
SELECT *
FROM `bigquery-public-data.bls.employment_hours_earnings`
WHERE series_id = 'CES0500000003';Average hourly earnings, two columns (cheap)
Same series with only date and value: 241 MiB.
SELECT
date,
value AS avg_hourly_earnings_usd
FROM `bigquery-public-data.bls.employment_hours_earnings`
WHERE series_id = 'CES0500000003'
ORDER BY date;Querying it cheaply
- No table is partitioned or clustered, so a
WHERE series_id = ...filter still reads the fullseries_idcolumn. Select onlydateandvalueto keep queries small. - The largest tables are
employment_hours_earnings(1.26 GiB) andunemployment_cps(855 MiB).series_titleinunemployment_cpsrepeats the title on every row and is the heaviest column; read titles fromunemployment_cps_seriesinstead. - Look up series IDs in the
*_seriestables (under 110 MiB each) before querying the data tables.
FAQ
Is the BLS dataset in BigQuery up to date?
No. The dataset description says the tables have not been updated with the latest data and that the update pipeline has been disabled. Use the BLS API or bls.gov for current CPI and unemployment figures.
Is the BLS dataset free to query?
Google pays for storing public datasets, so you never pay storage for them. You pay only for the bytes your queries scan, billed to your own project at the on-demand rate, and the first 1 TiB scanned each month is free. See BigQuery pricing.
How much does it cost to query BLS data in BigQuery?
The whole dataset is 2.4 GiB. Single-series queries scan between about 28 MiB and 250 MiB when you select only date and value.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
