Documentation / Prices and money

Exchange rates | Salary Data API

Exchange rates
Starter and aboveA list, paged

A currency against the US dollar and the euro, by month, quarter and year: the average of each period's official daily rates.

GEThttps://api.salarydataapi.com/v1/context/exchange/jpy

Try it

Runs against the live API with your key.
curl "https://api.salarydataapi.com/v1/context/exchange/jpy" \
  -H "Authorization: Bearer YOUR_KEY"

Parameters

NameTypeWhat it is
currencystringrequired ISO 4217 currency, such as jpy
freqstringBy month, quarter or year. Default year.
monthquarteryear
fromperiodThe first period wanted (2019, 2019-Q1 or 2019-01)
toperiodThe last period wanted
pageintegerThe page, from 1. Default 1.
per_pageintegerItems a page, at most 200. Default 50.
cursorstringFrom next_cursor in the last answer; page wins when both are sent

Returns

A list in data, each item with these fields, and the paging in meta.

FieldTypeWhat it holds
periodperiodThe period
per_usdnumberUnits to one US dollar
per_eurnumberUnits to one euro

Example answer

A real answer from today's figures, the first three items, with an Analyst key.

200GET /v1/context/exchange/jpy
{
    "data": [
        {
            "period": "1960",
            "per_usd": 360.0,
            "per_eur": null
        },
        {
            "period": "1961",
            "per_usd": 360.0,
            "per_eur": null
        },
        {
            "period": "1962",
            "per_usd": 360.0,
            "per_eur": null
        }
    ],
    "meta": {
        "count": 3,
        "next_cursor": "YzM",
        "page": 1,
        "per_page": 3,
        "total": 67,
        "total_pages": 23,
        "next_page": 2,
        "prev_page": null,
        "plan": "analyst"
    }
}

Errors