?apiKey=, for tools that cannot send headers.
Path parameters
Query parameters
Comma-separated column names or column IDs. Date and entity columns are always included. Example:
$select=GDP,Inflation.Rows to return. See Filter rows.
Return up to N rows from the most recent dates. Without a date column, it returns the first N rows. You cannot combine it with
$top.Combine entity columns into one column. The result can be empty when there are too many combinations. Omit the parameter to turn it off.
Transpose the table, with dates as columns. If a transposed CSV is not available for the dataset or version, the API returns
409.$ return 400.
Response
The API returns the file directly or answers with a302 redirect to a short-lived download link. Always follow redirects (curl -L). Do not save the redirect link for later, because it expires quickly.
When the API returns the file directly, the Content-Type header matches the format:
CSV output can start with a UTF-8 byte order mark. In Python, decode it with
utf-8-sig.
With $top or $last, the Row-Count response header gives the number of matching rows before the limit, when available.
JSON format
$format=json returns an object with a schema and a data array:
Plan access to data
Your plan decides which catalog datasets you can download in full. See pricing.- If your plan does not include full download of a dataset, the API returns a preview instead of an error. A preview is a limited sample and might not include the most recent data.
- If you have used your plan’s download allowance, the response can be a file with an
errorcolumn and an upgrade message instead of data.
Filter rows
- These are the supported operators.
- Column names are case-sensitive. A name that does not exist returns
400with the list of columns. - Put string values in single quotes. For a column name with spaces, put the name in single quotes too.
- Values are compared as text. This works for entity values and
YYYY-MM-DDdates. Do not rely ongtorltfor numbers.
Examples
--data-urlencode encodes the spaces and quotes. The backslash keeps the shell from expanding $filter.