Performance

This page contains a list of performance-related topics that you can use to increase the performance of your integration.

HTTP Compression

The Marketo REST API supports HTTP compression of response bodies using standards defined by the HTTP 1.1 specification. Enabling compression is recommended because it reduces bandwidth usage, and time spent retrieving data.

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 will compress the response body and include this header:

Content-Encoding: gzip

Here is an example using Curl to call the Get Leads by Filter Type endpoint to retrieve 5 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
bb269a6d-047a-4bf7-9acd-23ad9a63dc59