php - Query free API, IP blocking -


i using api free. using php script using fopen download json api. when make many requests(eg. 2 requests every minute) api blocking php server ip. there way solve , possibility make more requests (i don't want ddos attack)? there better solution use of many php servers different ip's?

this quite abstract question don't know actual api talking about.

but, usually, if api implement rate limit, shows kind of header in it's answer:

  • x-rate-limit-limit: the rate limit ceiling given request
  • x-rate-limit-remaining: the number of requests left 15 minute window
  • x-rate-limit-reset: the remaining window before rate limit resets in utc epoch seconds

please check docs (this 1 twitter, https://dev.twitter.com/rest/public/rate-limiting).


Comments