Documentation / Prices and money
Adjust for prices | Salary Data API
Adjust for pricesStarter and aboveMCP tool: adjust_for_prices
An amount of a country's money in one year, in the prices of another year, from its consumer price index.
GEThttps://api.salarydataapi.com/v1/adjust?amount=30000
Try it
No key in this browser yet. Get a free key: it is filled in here once made.
Runs against the live API with your key.
curl "https://api.salarydataapi.com/v1/adjust?amount=30000" \ -H "Authorization: Bearer YOUR_KEY"
Parameters
| Name | Type | What it is |
|---|---|---|
| country | country | required Two-letter country code |
| amount | number | required The amount |
| from | period | required The year (or month) of the amount |
| to | period | The prices wanted; the latest when left out |
Returns
One item in data, with these fields.
| Field | Type | What it holds |
|---|---|---|
| amount | number | The amount |
| from | period | Its period |
| to | period | The prices given |
| adjusted | number | The result |
| factor | number | Prices at to over prices at from |
Example answer
Run it with your key for a real answer.