API Reference

/ppp/analysis Endpoint

Track purchasing-power parity over time, compare countries, or rank the biggest movers, with factor change and projected-year flags.


Endpoint

GET https://api.currency-core.com/v1/ppp/analysis

Answers analytical questions over the yearly IMF purchasing-power-parity (PPP) conversion factors in one call: how a country’s PPP changed over time, which countries’ PPP rose or fell most, and side-by-side comparisons, each with a percent change and optional min/max/avg. For a single factor use /v1/ppp. For a pairwise purchasing-power conversion use /v1/convert?ppp=true. For FX-rate trends use /v1/history/analysis.

Plan requirement

/v1/ppp/analysis requires the Growth plan or higher. Free and Starter keys receive HTTP 403 forbidden. The single /v1/ppp factor lookup is available on every keyed plan; PPP analysis is not. Live keys require a paid plan.

Two modes

  • Compare: pass countries (a comma-separated list). You get one result per country, in the order requested, each with a year-by-year series when applicable.
  • Movers: omit countries. Every country in the dataset is ranked by PPP-factor change, and the top limit are returned.

Query parameters

ParameterTypeRequiredDefaultNotes
countriesstringNononeComma-separated list to compare, e.g. IND,DEU,USA. Accepts alpha-3, alpha-2, a country name, a common acronym such as UAE, or a currency code that resolves to its default country. Omit for movers. Maximum 90 countries.
fromstringNo10 years before toWindow start year, e.g. 2015. Values before 1980 clamp to 1980.
tostringNoCurrent yearWindow end year, e.g. 2024.
periodstringNononeShorthand for from, for example 10y, 20y, or max. Ignored if from is set.
sortstringNoincreasedMovers ranking: increased (factor rose most) or decreased.
limitnumberNo10Movers: how many to return. Maximum 200.
statsbooleanNotrueInclude min, max, and avg of the factor over the window. Pass false to skip.

A from or to value that cannot be parsed as a year falls back to its default rather than returning an error. A from later than to does return 400.

Metric

The PPP factor is local currency units per international dollar, the same value behind /v1/ppp and /convert?ppp=true. A rising factor means the country’s price level rose relative to the international dollar over the window; a falling factor means it fell.

  • startFactor and endFactor are the factor at the start and end of the window.
  • startYear and endYear are the actual years used (the nearest available data inside the window), so you know what it anchored to.
  • changePct is the percent change in the factor over the window.
  • projected is true when the end value is an IMF projection (forecast), not an actual observation.
  • stats is { min, max, avg } over the window’s available years when stats=true.

PPP factor versus FX

The PPP factor is a price level, not an exchange rate. Do not read a rising factor as automatic currency strength: it means domestic prices rose relative to the international dollar. A country can have a rising PPP factor while its market exchange rate moves in a different direction. Keep the two series separate when building reports.

Response

{
  "from": 2015,
  "to": 2025,
  "mode": "compare",
  "stats": true,
  "results": [
    {
      "country": "IND",
      "startYear": 2015,
      "endYear": 2025,
      "startFactor": 19.687,
      "endFactor": 20.078,
      "changePct": 1.9861,
      "projected": true,
      "stats": { "min": 19.687, "max": 20.728, "avg": 20.31 },
      "series": { "2015": 19.687, "2016": 20.08, "2024": 20.397, "2025": 20.078 }
    }
  ]
}

Response fields

FieldTypeDescription
fromnumberWindow start year used.
tonumberWindow end year used.
modestringcompare when countries were named, movers when ranking.
sortstringRanking direction, present in movers mode.
statsbooleanWhether min/max/avg were computed.
resultsarrayPer-country PPP analysis, ranked and limited in movers mode.
results[].countrystringISO alpha-3 country code.
results[].startYearnumberYear used for the window start (earliest available at or after from).
results[].endYearnumberYear used for the window end (latest available at or before to).
results[].startFactornumberPPP factor at startYear; null when the country has no data in the window.
results[].endFactornumberPPP factor at endYear; null when no data.
results[].changePctnumberPercent change in the PPP factor; null when start or end is missing.
results[].projectedbooleantrue when the end value is an IMF projection.
results[].statsobject{ min, max, avg } over the window when stats=true.
results[].seriesobjectYear to factor trend, present for named countries in compare mode.
results[].notestringWhy a value is missing, when applicable.

Examples

How India’s PPP changed over the last decade:

curl "https://api.currency-core.com/v1/ppp/analysis?countries=IND&from=2015&to=2024" \
  -H "Authorization: Bearer cc_live_your_key"

Which countries’ PPP rose most over 20 years (movers):

curl "https://api.currency-core.com/v1/ppp/analysis?period=20y&sort=increased&limit=10" \
  -H "Authorization: Bearer cc_live_your_key"

Compare India, Germany, and the US over a fixed window:

curl "https://api.currency-core.com/v1/ppp/analysis?countries=IND,DEU,USA&from=2010&to=2024" \
  -H "Authorization: Bearer cc_live_your_key"

In compare mode each result carries a series (year to factor) for charting.

Errors

StatusCodeWhen
400invalid_inputBad countries (max 90 exceeded or a code that cannot be resolved to alpha-3), bad sort, bad period, or from after to.
401unauthorizedThe API key is missing or invalid.
403forbiddenThe plan is below Growth, the key is disabled, or billing is past due.
429rate_limitedThe per-minute rate limit was exceeded. Honor Retry-After.

A named country with no data in the window is not an error. It comes back with null factors and a note.

  • Compare mode accepts up to 90 countries.
  • A per-year series is attached to at most 25 named countries.
  • limit is capped at 200 in movers mode.
  • The earliest supported year is 1980.
  • Each request consumes one monthly request and one per-minute rate-limit unit.

Related pages: