What it returns
Monthly US average retail prices from the Bureau of Labor Statistics (BLS), the official figures behind grocery-price headlines: eggs, milk, ground beef, chicken, bread, coffee, bananas, tomatoes, gasoline, electricity and more, for the US city average, the four census regions and the metro areas BLS prices. Ask by plain item name; you get one row per item, area and month from 1995 on, with the change from the previous month and from a year earlier.
| field | meaning |
|---|---|
| item, itemCode | BLS item name (with its unit) and code |
| area, areaCode | US city average, region or metro area |
| month | YYYY-MM |
| price, unit, currency | Average retail price in US dollars per the unit shown |
| changeFromPreviousMonth, pctChangeFromPreviousMonth | Change from the month before |
| changeFromYearAgo, pctChangeFromYearAgo | Change from the same month a year earlier |
| seriesId | The BLS series id, for citing the source |
BLS publishes each month's prices with the CPI release, about two weeks after the month ends. Regional and metro coverage is narrower than the national one: many items are priced only for the US city average.
Common uses
- Grocery and budgeting apps showing what staples cost and how fast they are rising
- News and newsletter charts on egg, beef or coffee prices
- Restaurant and food-business cost tracking, and inflation research by item
Request
POST https://api.pushbuild.com/us-food-retail-prices/run with a JSON body. Send your key in the X-API-Key header.
| Field | Type | Description |
|---|---|---|
items | list of strings | Item names (all words must match: eggs, ground beef, coffee, whole milk, bananas, gasoline) or BLS item codes (708111). Set listItems to see every item. |
areas | list of strings | us, northeast, midwest, south, west, a metro name (Boston, Chicago, Los Angeles) or a BLS area code (S11A). Default: us. |
startMonth | string | YYYY-MM, from 1995-01. Default: two years ago. |
endMonth | string | YYYY-MM. Default: latest. |
latestOnly | boolean | One row per item and area: the newest published price. Default: false. |
includeDiscontinued | boolean | Also return series BLS stopped pricing (many regional series ended years ago). Default: false. |
listItems | boolean | Return the item catalog (code, name, unit, first and last month) instead of prices. Default: false. |
maxItems | integer | Maximum items to return (1-500). Default: 100. |
Example
curl -X POST https://api.pushbuild.com/us-food-retail-prices/run \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"items": ["eggs", "ground beef"], "areas": ["us"], "maxItems": 20}'
Response
{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}
Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.
Pricing
Pay only for results returned: $0.16 per 1,000 prices. No charge for errors or empty searches.
Related APIs
Australian Bureau of Statistics API: CPI, Jobs, GDP, Any Data API
Australian Bureau of Statistics data from the official ABS Data API: monthly CPI and trimmed mean, unemployment by state, GDP, wage price index and household spending presets, any ABS dataflow by SDMX key, and dataflow search.
Banco de Portugal API: Portugal Rates, Yields, HICP & GDP API
Banco de Portugal BPstat data from the official API: coincident indicators, HICP, GDP, house prices, confidence, Portuguese government bond yields, money-market, loan and deposit rates, banking ratios, or any BPstat dataset or series id..
Bank of Canada API: Policy Rate, CORRA, Bonds, CPI & CAD FX API
Bank of Canada statistics from its official Valet API: policy rate, CORRA, prime, T-bills, benchmark bond yields, mortgage and GIC rates, CPI and core CPI, commodity prices and daily CAD exchange rates.
Bank of England API: Bank Rate, SONIA, Gilts & Mortgages API
Bank of England statistics from its official database: Bank Rate, SONIA, gilt yields, implied inflation, mortgage rates and approvals, M4 money, lending and sterling FX.
Bank of Israel API: BOI Rate, SHIR & Shekel Exchange Rates API
Bank of Israel statistics from its official SDMX API: the BOI interest rate, SHIR overnight rate and standing facility rates, daily representative shekel exchange rates (USD, EUR, GBP, JPY, CHF, CAD, AUD), or any series of any BOI dataflow..
Bank of Japan API: Call Rate, USD/JPY, Money Stock & Tankan API
Bank of Japan statistics from its official Time-Series Data Search API: overnight call rate, basic loan rate, USD/JPY, monetary base, M2, producer prices and Tankan business conditions presets, any series by database and code, and series search..
Tell us what you need built.
Questions about this API, higher volumes, or a data source you need that we don't cover yet.
hello@pushbuild.com