Hi, wanna know what’s the payload if we’ve hit the request limit?
Hi,
You’ll get a HTTP error 429, Too Many Requests.
Your response will look something like this:
HTTP/1.1 429 Too Many Requests Content-Type: application/json Date: Thu, 19 Aug 2021 17:20:58 GMT Server: RapidAPI-1.2.8 X-RapidAPI-Proxy-Response: true X-RapidAPI-Region: AWS - eu-central-1 X-RapidAPI-Version: 1.2.8 X-RateLimit-requests-Limit: 5 X-RateLimit-requests-Remaining: 0 X-RateLimit-requests-Reset: 86245 Content-Length: 202 Connection: keep-alive
{“message”:“You have exceeded the DAILY quota for requests on your current plan, CUSTOM-temptest. Upgrade your plan at https://rapidapi.com/Top-Rated/api/e-mail-check-invalid-or-disposable-domain”}
So, either check for HTTP error 429, or verify that the response JSON contains the required array keys “valid” or “block” for example!
Join in the discussion - add comment below:
Hi,
You’ll get a HTTP error 429, Too Many Requests.
Your response will look something like this:
HTTP/1.1 429 Too Many Requests
Content-Type: application/json
Date: Thu, 19 Aug 2021 17:20:58 GMT
Server: RapidAPI-1.2.8
X-RapidAPI-Proxy-Response: true
X-RapidAPI-Region: AWS - eu-central-1
X-RapidAPI-Version: 1.2.8
X-RateLimit-requests-Limit: 5
X-RateLimit-requests-Remaining: 0
X-RateLimit-requests-Reset: 86245
Content-Length: 202
Connection: keep-alive
{“message”:“You have exceeded the DAILY quota for requests on your current plan, CUSTOM-temptest. Upgrade your plan at https://rapidapi.com/Top-Rated/api/e-mail-check-invalid-or-disposable-domain”}
So, either check for HTTP error 429, or verify that the response JSON contains the required array keys “valid” or “block” for example!