# /ppp/analysis Endpoint

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

Canonical: https://currency-core.com/docs/ppp-analysis-endpoint/
Updated: 2026-11-10
Published: 2026-06-17

---
## 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`](/docs/ppp-endpoint/). For a pairwise purchasing-power conversion use [`/v1/convert?ppp=true`](/docs/convert-endpoint/). For FX-rate trends use [`/v1/history/analysis`](/docs/history-analysis-endpoint/).

## 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

| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| `countries` | string | No | none | Comma-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. |
| `from` | string | No | 10 years before `to` | Window start **year**, e.g. `2015`. Values before 1980 clamp to 1980. |
| `to` | string | No | Current year | Window end **year**, e.g. `2024`. |
| `period` | string | No | none | Shorthand for `from`, for example `10y`, `20y`, or `max`. Ignored if `from` is set. |
| `sort` | string | No | `increased` | Movers ranking: `increased` (factor rose most) or `decreased`. |
| `limit` | number | No | `10` | Movers: how many to return. Maximum `200`. |
| `stats` | boolean | No | `true` | Include `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

```json
{
  "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

| Field | Type | Description |
|---|---|---|
| `from` | number | Window start year used. |
| `to` | number | Window end year used. |
| `mode` | string | `compare` when countries were named, `movers` when ranking. |
| `sort` | string | Ranking direction, present in movers mode. |
| `stats` | boolean | Whether min/max/avg were computed. |
| `results` | array | Per-country PPP analysis, ranked and limited in movers mode. |
| `results[].country` | string | ISO alpha-3 country code. |
| `results[].startYear` | number | Year used for the window start (earliest available at or after `from`). |
| `results[].endYear` | number | Year used for the window end (latest available at or before `to`). |
| `results[].startFactor` | number | PPP factor at `startYear`; `null` when the country has no data in the window. |
| `results[].endFactor` | number | PPP factor at `endYear`; `null` when no data. |
| `results[].changePct` | number | Percent change in the PPP factor; `null` when start or end is missing. |
| `results[].projected` | boolean | `true` when the end value is an IMF projection. |
| `results[].stats` | object | `{ min, max, avg }` over the window when `stats=true`. |
| `results[].series` | object | Year to factor trend, present for named countries in compare mode. |
| `results[].note` | string | Why a value is missing, when applicable. |

## Examples

**How India's PPP changed over the last decade:**

<CodeTabs>
<Fragment slot="curl">

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

</Fragment>
<Fragment slot="js">

```js
const res = await fetch(
  "https://api.currency-core.com/v1/ppp/analysis?countries=IND&from=2015&to=2024",
  { headers: { Authorization: "Bearer cc_live_your_key" } },
);
const { results } = await res.json();
console.log(results[0].country, results[0].changePct);
```

</Fragment>
<Fragment slot="python">

```python

res = requests.get(
    "https://api.currency-core.com/v1/ppp/analysis",
    params={"countries": "IND", "from": "2015", "to": "2024"},
    headers={"Authorization": "Bearer cc_live_your_key"},
)
print(res.json()["results"][0])
```

</Fragment>
</CodeTabs>

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

```bash
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:**

```bash
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

| Status | Code | When |
|---|---|---|
| `400` | `invalid_input` | Bad `countries` (`max 90` exceeded or a code that cannot be resolved to alpha-3), bad `sort`, bad `period`, or `from` after `to`. |
| `401` | `unauthorized` | The API key is missing or invalid. |
| `403` | `forbidden` | The plan is below Growth, the key is disabled, or billing is past due. |
| `429` | `rate_limited` | The 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`.

## Limits and related

- 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:

- [`/v1/ppp`](/docs/ppp-endpoint/) for a single country and year
- [`/v1/convert`](/docs/convert-endpoint/) for PPP-adjusted amounts
- [`/v1/history/analysis`](/docs/history-analysis-endpoint/) for FX trends
- [`/v1/countries`](/docs/countries/) for country codes
- [Pricing](/pricing/) for Growth access
