Compression
Since the service can return a lot of data, it quite important to setup compression.
The compressions is done providing accept-encoding (opens in a new tab) request header, being gzip and brotli (br) supported:
curl 'https://api.teslahunt.io/cars' \
--get \
--data-urlencode 'filterByFormula=AND({currency} = "EUR")' \
--header 'x-api-key: YOUR_TOKEN' \
--header 'accept-encoding: br'
You can verify the compression has been done succesfully checking content-encoding (opens in a new tab) response header:
curl -I 'https://api.teslahunt.io/cars' \
--get \
--data-urlencode 'filterByFormula=AND({currency} = "EUR")' \
--header 'x-api-key: YOUR_TOKEN' \
--header 'accept-encoding: br'
# content-encoding: br