Cost of Living & CPI
BLS Consumer Price Index series (national + 4 regions), ZIP-to-metro resolution, average item prices, and domestic airfare by origin airport.
ZIP → metro CPI series
GET /v1/cpi/zip-to-metro
curl "https://api.cornerdatastore.com/v1/cpi/zip-to-metro?zip=10001" \
-H "X-Api-Key: YOUR_API_KEY"Response
{
"zip": "10001",
"county_fips": "36061",
"cbsa_code": "35620",
"cbsa_title": "New York-Newark-Jersey City, NY-NJ-PA",
"metro_series_id": "CUURS12ASA0",
"metro_name": "New York-Newark-Jersey City"
}Confirmed exact shape from source. zip required (exactly 5 chars). metro_series_id/metro_name are null (not an error) when the ZIP's metro isn't one of the ~21 BLS-tracked metro series. 404 if the ZIP isn't recognized at all.
All CPI / cost-of-living endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/cpi/series | List tracked CPI-U series (national + 4 regions) |
| GET | /v1/cpi/{series_id} | CPI-U observations for a series (?start&end&limit) |
| GET | /v1/cpi/cost-of-living-index | Regional CPI-U as % of national |
| GET | /v1/cpi/zip-to-metro | ZIP → BLS metro CPI-U series_id |
| GET | /v1/prices/average-item | List tracked APU item-price series |
| GET | /v1/prices/average-item/{series_id} | Avg US city price for an item (?start&end&limit) |
| GET | /v1/airfare/average | Avg domestic itinerary fare by origin airport |
| GET | /v1/airports/nearest | ZIP → nearest airport with fare data |