To trigger the server to compress the reply you need to set the Accept-Encoding header to gzip.

If the reply of the API is above 1000 Bytes, the server will then compress the response and add the Content-Encoding header to the response.