para pagina example estado codigos codes code api http rest rate-limiting

api - pagina - http/1.1 200 ok



Ejemplos de índices HTTP API que limitan encabezados de respuesta HTTP (2)

Uno de los códigos de estado HTTP adicionales ( RFC6585 ) es

¿Dónde puedo encontrar ejemplos de encabezados de respuesta HTTP de limitación de frecuencia API HTTP / REST que son útiles con este estado de respuesta HTTP?


A continuación, se incluyen algunos ejemplos de los encabezados HTTP Response Rate Limiting HTTP Response. Tomado de cuatro API REST comunes: Github, Vimeo, Twitter e Imgur:

Github Rate Limiting http://developer.github.com/v3/#rate-limiting

#=============================#=============================================# # HTTP Header # Description # #=============================#=============================================# | X-RateLimit-Limit | Request limit per hour | +-----------------------------+---------------------------------------------+ | X-RateLimit-Remaining | The number of requests left for the time | | | window | +-----------------------------+---------------------------------------------+

Límite de velocidad de Vimeo http://developer.vimeo.com/guidelines/rate-limiting

#=============================#=============================================# # HTTP Header # Description # #=============================#=============================================# | X-RateLimit-Limit | Request limit per day / per 5 minutes | +-----------------------------+---------------------------------------------+ | X-RateLimit-Remaining | The number of requests left for the time | | | window | +-----------------------------+---------------------------------------------+ | X-RateLimit-Reset | The remaining window before the rate limit | | | resets in UTC epoch seconds | +-----------------------------+---------------------------------------------+

REST de la API de Twitter Limitación de la tasa https://dev.twitter.com/docs/rate-limiting/1.1

Nota: Twitter usa encabezados con nombres similares como Vimeo, pero tiene otro guion en cada nombre.

#=============================#=============================================# # HTTP Header # Description # #=============================#=============================================# | X-Rate-Limit-Limit | The rate limit ceiling for that given | | | request | +-----------------------------+---------------------------------------------+ | X-Rate-Limit-Remaining | The number of requests left for the | | | 15 minute window | +-----------------------------+---------------------------------------------+ | X-Rate-Limit-Reset | The remaining window before the rate limit | | | resets in UTC epoch seconds | +-----------------------------+---------------------------------------------+

Límites de tasa API de Imgur http://api.imgur.com/

#=============================#=============================================# # HTTP Header # Description # #=============================#=============================================# | X-RateLimit-UserLimit | Total credits that can be allocated | +-----------------------------+---------------------------------------------+ | X-RateLimit-UserRemaining | Total credits available | +-----------------------------+---------------------------------------------+ | X-RateLimit-UserReset | Timestamp (unix epoch) for when the credits | | | will be reset | +-----------------------------+---------------------------------------------+ | X-RateLimit-ClientLimit | Total credits that can be allocated for the | | | application in a day | +-----------------------------+---------------------------------------------+ | X-RateLimit-ClientRemaining | Total credits remaining for the application | | | in a day | +-----------------------------+---------------------------------------------+


Además de los encabezados específicos de API, no olvide el humilde encabezado Retry-After estándar.