Skip to main content
Use Basic Auth. This endpoint also accepts ?apiKey=, for tools that cannot send headers.

Path parameters

integer
required
Dataset ID.

Query parameters

string
default:"csv"
csv, json, xlsx, or tsv.
string
Comma-separated column names or column IDs. Date and entity columns are always included. Example: $select=GDP,Inflation.
string
Rows to return. See Filter rows.
integer
Return up to the first N rows, after filtering.
integer
Skip N rows. Use it with $top to paginate. You cannot combine it with versionId.
integer
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.
boolean
Combine entity columns into one column. The result can be empty when there are too many combinations. Omit the parameter to turn it off.
boolean
Include column IDs in the output.
boolean
With $select, drop rows where the selected value columns are all empty.
boolean
Transpose the table, with dates as columns. If a transposed CSV is not available for the dataset or version, the API returns 409.
string
Download a specific stored version of the data.
Other parameters that start with $ return 400.

Response

The API returns the file directly or answers with a 302 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 error column and an upgrade message instead of data.
In automated jobs, check the content of the file, not only the status code.

Filter rows

  • These are the supported operators.
  • Column names are case-sensitive. A name that does not exist returns 400 with 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-DD dates. Do not rely on gt or lt for numbers.

Examples

Filter rows. --data-urlencode encodes the spaces and quotes. The backslash keeps the shell from expanding $filter.
Select columns:
Get the second page of 100 rows:

Error responses