Documentation / Prices and money

Adjust for prices | Salary Data API

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

Runs against the live API with your key.
curl "https://api.salarydataapi.com/v1/adjust?amount=30000" \
  -H "Authorization: Bearer YOUR_KEY"

Parameters

NameTypeWhat it is
countrycountryrequired Two-letter country code
amountnumberrequired The amount
fromperiodrequired The year (or month) of the amount
toperiodThe prices wanted; the latest when left out

Returns

One item in data, with these fields.

FieldTypeWhat it holds
amountnumberThe amount
fromperiodIts period
toperiodThe prices given
adjustednumberThe result
factornumberPrices at to over prices at from

Example answer

Run it with your key for a real answer.

Errors