Hostex implements rate limiting to maintain the stability and reliability of the API services. Partners are expected to respect these limits to prevent service disruptions. Exceeding these limits will result in the temporary suspension of service until the rate limit period resets.
Note: Excessive rate limit breaches may lead to extended blocks, rejection of legitimate requests, or an IP ban.
Strategies for Rate Limit Compliance
To ensure compliance with Hostex rate limits, consider the following strategies:
- Include both
User-Agent
andHostex-Access-Token
headers in your requests. - Set
User-Agent
to your Application's name to bypass the bot detection mechanisms. - Introduce a delay of one second after every 60 requests to evenly distribute calls.
- Employ exponential backoff when encountering rate limit errors.
- Always include your Access Token in request headers to establish your identity as a trusted Software Partner and avoid lower unidentified user rate limits.
Caution: A
420 User Account Issue
error indicates a problem with the user account, not the rate limit. Do not resend the request; instead, advise the account holder to contact Customer Support.
Host-level Rate Limits
Receiving a 429 Too Many Requests
error means you've exceeded the rate limit for your Host Account. The table below outlines the limits:
Request Granularity | Specific Account Limit | Account to Endpoint Limit |
---|---|---|
1 minute | 1,200 requests | 600 requests |
5 minutes | 12,000 requests | 6,000 requests |
1 hour | 20,000 requests | 10,000 requests |
1 day | 100,000 requests | 50,000 requests |
Host-level rate limit errors (429
) do not appear in the Host Portal.
API-level Rate Limits
Most endpoints support sufficient request volumes for typical usage. However, certain endpoints have lower thresholds, which can be surpassed more easily:
Endpoint | Request Limit | Notes |
---|---|---|
POST /v3/availabilities | 120/min per host | Exceeding limit results in errors for up to a minute. |
POST /v3/listings/* | 120/min per host | Exceeding limit results in errors for up to a minute. |
POST /v3/reservations | 60/min per host | Exceeding limit results in errors for up to a minute. |
POST /v3/conversations/* | 5/5 sec per host; 1,000/hr per host | Note applicable. |