Documentation / Pay breakdowns
Pay by sex | Salary Data API
Pay by sexStarter and aboveA list, paged
Women's and men's pay in a country, side by side, for everyone or one occupation.
GEThttps://api.salarydataapi.com/v1/pay/by-sex
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/pay/by-sex" \ -H "Authorization: Bearer YOUR_KEY"
Parameters
| Name | Type | What it is |
|---|---|---|
| country | country | required Two-letter country code |
| series | string | The figure wanted, as pay.<statistic>.<period>: pay.median.monthly, pay.mean.yearly, pay.median.hourly, pay.p90.yearly.... Default pay.median.monthly. |
| occupation | id | An occupation (oc_...) or its slug |
| 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 |
| female | number | Women |
| male | number | Men |
| all | number | Everyone |
| currency | string | Currency |
| occupation | id | The occupation, or null |
Example answer
Run it with your key for a real answer.