List inflation observations
curl --request GET \
--url https://api.darvas.app/v1/macro/inflation \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/inflation"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/macro/inflation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"inflation": [
{
"series": "cpi_all_sa",
"date": "2026-10-01",
"value": 331.2,
"change_1m_pct": 0.2,
"change_12m_pct": 2.9,
"first_published_value": 331.2
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Inflation
US CPI & PCE Inflation Historical Data API
Query 14 official BLS CPI and BEA PCE inflation series including headline, core, shelter, energy and services inflation with exact release dates.
List inflation observations
curl --request GET \
--url https://api.darvas.app/v1/macro/inflation \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/inflation"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/macro/inflation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"inflation": [
{
"series": "cpi_all_sa",
"date": "2026-10-01",
"value": 331.2,
"change_1m_pct": 0.2,
"change_12m_pct": 2.9,
"first_published_value": 331.2
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
One row per month of a series, with the index level and its changes. Passseries; the ids are listed by Inflation Series.
| Series | Source |
|---|---|
cpi_all_sa, cpi_all_nsa, cpi_core_sa, cpi_core_nsa | BLS, CPI-U all items and less food and energy |
cpi_food_sa, cpi_energy_sa, cpi_shelter_sa, cpi_services_less_energy_sa, cpi_core_goods_sa | BLS, CPI-U components |
cpi_apparel_sa, cpi_transportation_sa, cpi_medical_care_sa | BLS, CPI-U major groups |
pce_all_sa, pce_core_sa | BEA, PCE price index and PCE less food and energy |
change_1m_pct and change_12m_pct are percent changes from the prior month and the same month a year earlier, to one decimal. first_published_value is the first level Darvas recorded; see Market Coverage for what that means for periods before 25 November 2026.
| Coverage | Details |
|---|---|
| Series | 14 official US inflation series (12 BLS CPI-U since 1947, 2 BEA PCE since 1959) |
| Pagination | Up to 1,000 monthly rows per page in date order; follow next_page_url with cursor |
| Discovery | Series IDs and source codes live at Inflation Series |
| MCP tool | list_inflation on the data API MCP server |
Example
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
base = "https://api.darvas.app/v1/macro"
core = requests.get(f"{base}/inflation", headers=headers, params={"series": "cpi_core_sa", "start_date": "2025-01-01"}).json()
for month in core["inflation"]:
print(month["date"], month["change_12m_pct"])
Authorizations
apiKeybearerKey
Query Parameters
Response
List inflation observations: one page.
The answer of GET /macro/inflation.