Economics

Inflation by Category

US consumer prices for 25 categories (core, services, food, groceries, restaurants, energy, gasoline, electricity, shelter, rent, new and used vehicles, car insurance, airline fares, apparel, medical care and more), monthly from 2000, with 12-month and 1-month changes (official US government data).

All filters are optional. The answer is {as_of, categories, total, limit, offset, sort, order, rows, about}.

get/inflation-categories

Request

  • Base URL: https://api.dataporium.io
  • URL: https://api.dataporium.io/inflation-categories
  • Auth: API key in query parameter apikey

Query parameters

categorystring

Category keys, comma-separated, e.g. core, food, food_at_home, energy, gasoline, shelter, rent, used_cars_trucks

groupstring

Groups, comma-separated: Broad groups, Food, Energy, Housing, Transportation, Medical care, Other

month_fromstring

First month (YYYY-MM)

month_tostring

Last month (YYYY-MM)

latestboolean

true = only the newest month

sortstring

month (default), yoy_pct, mom_pct or category

orderstring

asc or desc (default desc; asc for category)

limitinteger

Rows per page, 1 to 5000 (default 100)

offsetinteger

Rows to skip, for paging

Response

Successful response (JSON).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.