NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

GDP Data API

GET

Track annual GDP, growth rates, and per capita income for any country.

Get GDP (Gross Domestic Product) data for any country including current values and historical data going back to 1960. With changes=true it also returns the direction against the previous year, and on paid plans the prior year's GDP, the dollar and percent change, whether real growth is accelerating or slowing, and 5- and 10-year compound annual growth.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/gdp?country=US
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "US",
    "countryName": "United States",
    "currency": "USD",
    "year": 2025,
    "gdp": 30769700000000,
    "gdpFormatted": "$30.77 trillion",
    "gdpGrowth": 2.16,
    "gdpPerCapita": 90027,
    "count": 1,
    "years": [
      {
        "year": 2025,
        "gdp": 30769700000000,
        "gdpFormatted": "$30.77 trillion",
        "gdpGrowth": 2.16,
        "gdpPerCapita": 90027
      }
    ],
    "previousYear": 2024,
    "changeDirection": "up",
    "previousGdp": 29298013000000,
    "gdpChange": 1471687000000,
    "gdpChangePercent": 5.02,
    "previousGdpGrowth": 2.79,
    "growthTrend": "slowing",
    "gdpPerCapitaChangePercent": 4.48,
    "gdpCagr5y": 7.56,
    "gdpCagr10y": 5.34,
    "averageGrowth5y": 3.31
  },
  "code": 200
}

About the GDP Data API

GDP API provides comprehensive economic data from the World Bank including GDP in current USD, GDP growth rate, and GDP per capita. Query the latest data or retrieve data for a specific year for economic analysis and research. With changes=true every reading is set against the country's own stored history: whether GDP rose or fell for every plan, and on paid plans the previous year, its GDP and real growth rate, the change in dollars and percent, the per-capita change, a growth trend (accelerating, slowing or steady), the 5-year average real growth rate, and the 5- and 10-year compound annual growth rates of nominal GDP.

What people use it for

Sovereign Risk Assessment
To assess national debt sustainability, credit rating agencies compare a government's outstanding obligations against total economic output and per capita income.
Cross-Border Expansion Benchmarking
When evaluating consumer purchasing power in emerging markets, retail strategists benchmark local gross domestic product per capita against established regional markets.
Macroeconomic Dashboard Widgets
Feed annual growth rates and formatted dollar outputs directly into financial intelligence portals to track national output shifts across continents.
Academic Research Modeling
Economists track multi-decade development trajectories by pulling historical national production numbers and yearly growth percentages for statistical regression models.

Without writing code

Evlar Markets, a Windows app built on this API, shows it on its markets dashboard beside your watchlist.

Historical US GDP on DigestYourFinances charts growth year by year.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use GDP Data

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the GDP Data API.

Read the docs →
Where does the economic data come from and how fresh is it?
All GDP metrics come from the World Bank, checked daily so new official releases appear within a day. The dataset provides GDP in current USD, annual growth rates, and per capita figures.
Which countries and date ranges are supported?
You can query any recognized country using standard two-letter or three-letter ISO codes, such as US or GBR. Every plan gets the latest available reporting year; paid plans can access historical economic records back to 1960.
Is it cheap enough to retrieve GDP data for every country profile?
Yes. Each lookup uses 2 credits, which works out to about $0.0003 per call on the Starter plan, or $0.30 per 1,000 calls. The Starter plan includes 100,000 calls each month, while the Free plan provides 100 calls monthly for testing.
Can I query historical years on the Free plan?
No. Filtering by a specific year and retrieving multi-year historical arrays require a paid plan. The Free plan returns only the single latest reported GDP record for a country, and with changes=true whether GDP rose or fell. Paid plans add the previous year, its GDP and growth rate, the dollar and percent change, the growth trend, the 5-year average growth rate and the 5- and 10-year compound annual growth rates.
What happens if I do not specify a year?
When the year parameter is omitted, the API returns the most recent available GDP record for the requested country. On paid plans, supported historical years range from 1960 to the present.
Can I display this GDP data in a commercial dashboard?
Yes, commercial usage is permitted on any paid plan. You can incorporate the figures and calculations directly into your software, research platforms, or customer reports, as long as you do not resell or redistribute the raw dataset.

Ready to build with GDP Data? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs