Documentation / Countries

Headline history | Salary Data API

Headline history
Starter and aboveA list, paged

A country's headline pay over every period it has, oldest first.

GEThttps://api.salarydataapi.com/v1/countries/{cc}/history

Try it

Runs against the live API with your key.
curl "https://api.salarydataapi.com/v1/countries/{cc}/history" \
  -H "Authorization: Bearer YOUR_KEY"

Parameters

NameTypeWhat it is
cccountryrequired Two-letter country code, such as jp or gb
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
valuenumberThe figure in its own currency
value_usdnumberIn US dollars at that period's rate (Pro and Analyst)
areastringThe area, or null for the whole country

Example answer

Run it with your key for a real answer.

Errors