List the series of inflation observations
curl --request GET \
--url https://api.darvas.app/v1/macro/inflation/series \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/inflation/series"
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/series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"resource": "inflation",
"series": []
}{
"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
CPI & PCE Inflation Series IDs Reference API
List all 14 BLS CPI and BEA PCE inflation series identifiers, seasonal adjustment flags and agency sources supported by the Inflation Data API.
List the series of inflation observations
curl --request GET \
--url https://api.darvas.app/v1/macro/inflation/series \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/inflation/series"
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/series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"resource": "inflation",
"series": []
}{
"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
The ids to pass asseries, and where each comes from, such as BLS CUSR0000SA0 or BEA NIPA DPCERG.
| Coverage | Details |
|---|---|
| Series | All 14 BLS CPI and BEA PCE series IDs accepted by CPI & PCE Inflation |
| Fields | Series ID, title, units, seasonal adjustment, first available date and BLS or BEA code |
| Credits | One credit per call that returns data, however many rows it lists |
| MCP tool | list_inflation_series on the data API MCP server |
Example
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/macro/inflation/series"
Authorizations
apiKeybearerKey
Response
List the series of inflation observations: one page.