The API supports response compression using either gzip or brotli.
We recommend you always use compression, as it will improve performance and reduce bandwidth usage.
To use this, set the Accept-Encoding header. For example: Accept-Encoding: gzip, br.
- The response will be compressed if the request header is set, the response is larger than 500B and the Content-Type is application/json.
- The response will include the
Content-Encodingheader to show that it is compressed and which algorithm was used.
Many tools and libraries will automatically set the Accept-Encoding header for you. But you should always check that it is set correctly.