Performance
Use the performance options on this page to improve the efficiency of your integration.
HTTP Compression
The Marketo REST API supports HTTP response-body compression as defined by the HTTP 1.1 specification. Enable compression to reduce bandwidth usage and data retrieval time.
NOTE
Payloads less than 1024 bytes are not compressed and bulk APIs do not support compression.
To enable compression, include the following HTTP header in the request:
Accept-Encoding: gzip
The Marketo REST API compresses the response body and includes the following header:
Content-Encoding: gzip
The following cURL example calls the Get Leads by Filter Type endpoint to retrieve five leads:
curl -H 'Accept-Encoding: gzip' 'https://123-ABC-456.mktorest.com/rest/v1/leads.json?filterType=id&filterValues=4,5,7,12,13'
recommendation-more-help
marketo-developer-help