CSV Example

CSV Example

CSV Example

By default, the API endpoints return data in JSON format. Example JSON queries can be found in the API Endpoints section.

Most endpoints also support the option to return the data in CSV format. This is enabled by setting the Accept header to text/csv. This returns a URL pointing to a remote temporary file containing the result. You must then fetch this URL. Note that the temporary file expires after 24 hours.

This example performs the aggregate_site_interval_fact occupancy query with a resulting CSV file. This example call consists of Part 1 and Part 2.
Example Call (Part 1 - Data Prep)
Example Response (Part 1)
Example Call (Part 2 - Fetch CSV)
Example Response (Part 2)