Note that for the purpose of describing these dictionaries, the ( and ) characters indicate a choice and should be omitted in practice. For example, format: (“csv”, “excel”) indicates a choice between the strings csv and excel, so in practice this might look like format: “csv” or format: “excel”.
In contrast, the [ and ] characters indicate an array and must not be omitted.
Request Header
HTTP requests to the API require two headers be set: api-key, which should be set to the user’s API key, and content-type, which is typically “application/json”.
Example request, indicating proper HTTP headers:
Controller
Controller layout:
Example controller:
Selection
Selection layout:
Example selection:
Shape configuration
Shape configuration layout:
Example shape configuration:
User credentials
User credentials layout:
Example credentials:
Measure codes
Several of these request and response objects have a MeasureCode field. This value describes how the annual data is represented. The available options are:
L – Level values
PY – Percentage difference year over year
DY – Difference year over year
P – Percentage difference quarter over quarter
D – Difference quarter over quarter
GR – Annualized growth rate