Skip to main content

Can the API respond in formats other than JSON?

Yes, it is possible to specify in the header or query parameters. In addition to the default JSON format, CSV and XML can also be selected. You can also select a JSON file that is compressed in ZIP format.


Some models do not support formats other than JSON, such as authentication.

Specifying in the header

Specify in the Accept header.

Accept: text/csv
Accept: text/xml
Accept: application/xml
Accept: application/zip

Specifying in the query parameters

Specify in _output_format.


If you want to change the data structure of the CSV output by rewriting the headers, etc., refer to How to Implement Original Function into the Postprocess.


If you have any other questions, please contact us or check out Our Slack Community.