Get started
EconomicsAPI API
Economics and trade data your AI can use.
Base URLhttps://api.economicsapi.com
curl -X GET "https://api.economicsapi.com/v1/latest?country=mexico&indicator=inflation" \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"economicsapi — source-attributed economic statistics, trade data, and market prices in one API.
Choose a dataset, discover available names, then request the latest value or history. Use common names such as inflation or unemployment. REST and MCP resolve them identically.
Quick start
Get a key, make your first call, read the response.
Authentication
Bearer API keys, where to create them, how to send them.
Integration Prompt
One prompt that makes an AI coding agent integrate the API end-to-end.
MCP Server
Connect Claude, Cursor, or any MCP client directly to the API.
Start here
- Find available indicators:
/v1/economics/available?country=mexico - Read a value:
/v1/latest?country=mexico&indicator=inflation - Read history:
/v1/history?country=mexico&indicator=inflation&from=2020
Inflation means headline CPI year-over-year. The default catalog shows common indicators with data. Use view=all when you need specialist measures such as core inflation or monthly changes.
Choose your dataset
| Dataset | Discover | Latest / history |
|---|---|---|
| Economic indicators | /v1/economics/available?country=mexico | /v1/latest / /v1/history |
| Foreign exchange | /v1/fx/available?q=USD | /v1/fx/{slug} / append /history |
| Commodities | /v1/commodities/available?q=gold | /v1/commodities/{slug} / append /history |
| Government bond yields | /v1/yields/available?q=canada | /v1/yields/{slug} / append /history |
| International trade | /v1/trade/available?country=germany | /v1/trade/summary |
Full endpoint reference
economics
GDP, prices, labour, money, government and external-sector indicators for 50 countries
- get
/v1/economics/availableAvailable economics - get
/v1/countriesCountries - get
/v1/indicatorsIndicators - get
/v1/resolveData availability - get
/v1/latestLatest indicators - get
/v1/historyIndicator history - get
/v1/searchSearch indicators - get
/v1/updatesData updates - get
/v1/newsEconomic news - get
/v1/forecastIndicator forecasts
trade
Bilateral goods trade for 41 countries, 2015 to today
- get
/v1/trade/availableAvailable trade - get
/v1/tradeTrade flows - get
/v1/trade/summaryTrade summary - get
/v1/trade/monthlyMonthly trade - get
/v1/trade/coverageTrade coverage - get
/v1/trade/productsTrade products - get
/v1/trade/products/{pid}Product details - get
/v1/trade/products/{pid}/historyProduct history - get
/v1/trade/products/{pid}/marketsProduct trading partners - get
/v1/trade/countriesTrade countries - get
/v1/trade/countries/{cid}Country details - get
/v1/trade/countries/{cid}/importsCountry imports - get
/v1/trade/countries/{cid}/exportsCountry exports - get
/v1/trade/countries/{cid}/partnersCountry partners - get
/v1/trade/countries/{cid}/productsCountry products
fx
Currency pairs: official reference exchange rates
commodities
Energy, metals, industrial materials and electricity benchmarks
yields
Government bond yields by country and maturity