# Purchasing Power API

> Purchasing Power calculates the inflation-adjusted value of money between any two time periods. Find out what $100 from 1990 is worth today, or calculate real returns on investments accounting for inflation.

**Endpoint:** `GET https://api.apiverve.com/v1/purchasingpower`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/purchasingpower

## Overview

Purchasing Power uses official CPI data from the Bureau of Labor Statistics to calculate accurate inflation adjustments. Historical data is available back to 1913, enabling long-term purchasing power comparisons.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/purchasingpower?amount=100&from=1990&to=2024" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `amount` | number | Yes | The dollar amount to convert (0 to 1,000,000,000,000). range 0-1000000000000 |
| `from` | string | Yes | Starting period: a year (YYYY, priced at January of that year) or a month (YYYY-MM). Data available from 1913-01. length 4-7 |
| `to` | string | No | Ending period: a year (YYYY, priced at January) or a month (YYYY-MM). Omit for the latest published month. length 4-7 |

## Response fields

- `originalAmount` — number · The dollar amount you provided, before any inflation adjustment
- `originalPeriod` — string · The starting period the original amount is valued in, normalized to YYYY-MM
- `adjustedAmount` — number · The dollar amount with the same purchasing power as the original amount, expressed in the ending period
- `adjustedPeriod` — string · The ending period the adjusted amount is valued in, normalized to YYYY-MM
- `cumulativeInflation` — number · The total percentage change in prices between the starting and ending periods · (premium)
- `multiplier` — number · The factor by which prices changed between the two periods; multiplying the original amount by this yields the adjusted amount · (premium)
- `explanation` — string · A human-readable sentence summarizing the conversion
- `fromCPI` — number · The Consumer Price Index value for the starting period · (premium)
- `toCPI` — number · The Consumer Price Index value for the ending period · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "originalAmount": 100,
    "originalPeriod": "1990-01",
    "adjustedAmount": 242.31,
    "adjustedPeriod": "2024-01",
    "cumulativeInflation": 142.31,
    "multiplier": 2.423,
    "explanation": "$100 in 1990-01 has the same purchasing power as $242.31 in 2024-01",
    "fromCPI": 127.4,
    "toCPI": 308.417
  }
}
```

## Use cases

- **Salary Comparison** — Compare salaries across different years in real purchasing power terms
- **Investment Returns** — Calculate real (inflation-adjusted) returns on investments
- **Historical Analysis** — Understand the true value of historical prices and costs
- **Contract Adjustments** — Calculate inflation adjustments for long-term contracts

## SDKs

- **npm** — `npm install @apiverve/purchasingpower` (https://www.npmjs.com/package/@apiverve/purchasingpower)
- **NuGet** — `dotnet add package APIVerve.API.PurchasingPower` (https://www.nuget.org/packages/APIVerve.API.PurchasingPower)
- **Source** — https://github.com/apiverve/purchasingpower-api

## More

- Full reference: https://docs.apiverve.com/ref/purchasingpower
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
