Responses
Anatomy of a Response
To understand how the data is returned, let's break down the anatomy of an example response. In this case we're we'll stick with our previous example of the products exported by Spain in 2023:
Response Format
The response will be a JSON object with the following structure:
1. Annotations
The annotations
object contains metadata about the dataset such as the source name, source description, topic, subtopic, and dataset name.
2. Pagination
The page
object contains metadata about the pagination of the data response, such as the limit, offset, and total number of records available for that set of parameters.
3. Columns
The columns
object contains the list of columns in the dataset. Please note that even though we didn't specify to include the ID columns in the request, they are still returned.
4. Data
The data
object contains the list of records in the dataset. The keys are the column names (including both drilldown and measure columns) and the values are the values for that column for the given record.