Fetch the latest CPI observations
curl --fail-with-body "https://grizzlybulls.com/api/v1/charts/series/consumer-price-index/observations?order=desc&limit=2"The public Economic Data API is keyless and supports cross-origin browser requests. Only its ten reviewed BEA/BLS series are included. Other chart pages are not automatically licensed for redistribution. There is no paid Charts subscription for purchase today.
The catalog lists all available slugs, histories, units, last source observation dates, and revision notes. Request a slug's observations with optional date filters and pagination.
curl --fail-with-body "https://grizzlybulls.com/api/v1/charts/series/consumer-price-index/observations?order=desc&limit=2"const url = "https://grizzlybulls.com/api/v1/charts/series/consumer-price-index/observations?order=desc&limit=2";
const response = await fetch(url); // Works in the browser; no API key.
if (!response.ok) throw new Error('Chart API HTTP ' + response.status);
const data = await response.json();
console.log(data.series.title, data.observations);Cross-origin `GET` requests are supported; do not put an account key in browser code.
import json
from urllib.request import urlopen
with urlopen("https://grizzlybulls.com/api/v1/charts/series/us-real-gdp/observations?order=desc&limit=2") as response:
data = json.load(response)
print(data["series"]["title"], data["observations"])Monthly and quarterly observation dates are the period measured, not necessarily the publication date. Values reflect latest-known retained history rather than a historical release vintage.
Read the generated reference for endpoints, parameters, responses and schemas, or try our open-source Charts Data Explorer. The explorer runs locally; it is not a hosted service.