Documentation / Prices and money
Exchange rates | Salary Data API
Exchange ratesStarter 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
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/context/exchange/jpy" \ -H "Authorization: Bearer YOUR_KEY"
Parameters
| Name | Type | What it is |
|---|---|---|
| currency | string | required ISO 4217 currency, such as jpy |
| freq | string | By month, quarter or year. Default year. monthquarteryear |
| from | period | The first period wanted (2019, 2019-Q1 or 2019-01) |
| to | period | The last period wanted |
| page | integer | The page, from 1. Default 1. |
| per_page | integer | Items a page, at most 200. Default 50. |
| cursor | string | From 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.
| Field | Type | What it holds |
|---|---|---|
| period | period | The period |
| per_usd | number | Units to one US dollar |
| per_eur | number | Units 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"
}
}