Documentation / Compare
Compare two periods | Salary Data API
Compare two periodsStarter and above
A series in two periods, with the change between them as published and in today's prices.
GEThttps://api.salarydataapi.com/v1/compare/periods
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/compare/periods" \ -H "Authorization: Bearer YOUR_KEY"
Parameters
| Name | Type | What it is |
|---|---|---|
| series | id | required The series (se_...) |
| from | period | required The earlier period |
| to | period | The later period; the latest when left out |
Returns
One item in data, with these fields.
| Field | Type | What it holds |
|---|---|---|
| from | object | The earlier figure |
| to | object | The later figure |
| change | number | The difference |
| change_pct | number | In per cent |
| real_change_pct | number | In per cent, after prices |
Example answer
Run it with your key for a real answer.