Add gzip compression to API calls