•   over 8 years ago

Rate Limiting

After making a request how often should we poll the request/{request_id} endpoint to see if a driver has accepted or if there was an issue with the request? My concern is that hitting this endpoint to many times would cause the app to hit a rate limit.

  • 2 comments

  •   •   over 8 years ago

    To avoid this polling, Uber API has introduced Webhooks.
    https://developer.uber.com/v1/webhooks/

  • Manager   •   over 8 years ago

    To keep your application as up to date as possible, you should poll the /v1/requests/{request_id} endpoint every 3 seconds.

    Rate limiting is done on a "per user" basis, which by default, is 1000 requests per hour. This means that for each Bearer token, you can make 1k requests per hour. Unless your users are taking very long trips, you shouldn't run into any issues.

Comments are closed.