API Rate Limits
The Site Search API is rate limited to prevent abuse.
The limits are high enough that typical use should rarely be rate limited.
JSONP and Rate Limiting
Most Site Search customers use JSONP for autocomplete and search results.
It is unlikely they will be rate limited, unless a user is abusing the service.
Rate Limiting Example
Requests that have been rate limited will respond with HTTP 429 Too Many Requests
.
HTTP 429
is a new - but very useful - status code proposed by RFC 6585.
Example - Rate limited JSON resource
curl -i -XGET 'https://search-api.swiftype.com/api/v1/public/engines/suggest.json?callback=foo&q=search&engine_key=your_engine_key'
Example Response
HTTP/1.1 429
Content-Type: application/json; charset=utf-8
Content-Length: 32
{ "error": "Rate limit exceeded." }
Rate Limit Mitigation
If your application is being affected by rate limiting, contact support@swiftype.com for assistance.
Stuck? Looking for help? Contact support or check out the Site Search community forum!