R
Railway7mo ago
sas70

Rate Limiting -

Hello - I am trying to man age my APIs rate limits and was referring to the Railway Docs. However I could not find any of the 4 headers mentioned below. Am I doing something wrong?
Rate Limits
In order to protect the Railway API from spam and misusage, we have established some basic rate limits. The current limit is 1000 requests per hour to the API. To help you keep track of your usage, Railway sends a few headers with the response on each request.

Header Description
X-RateLimit-Limit The maximum number of API requests allowed per day.
X-RateLimit-Remaining The number of API requests your token can make in the current window.
X-RateLimit-Reset The time at which the current window ends and your remaining requests reset.
Retry-After The amount of time after which you can make another request. This header is only sent once you've used up all your requests in the current window.
Rate Limits
In order to protect the Railway API from spam and misusage, we have established some basic rate limits. The current limit is 1000 requests per hour to the API. To help you keep track of your usage, Railway sends a few headers with the response on each request.

Header Description
X-RateLimit-Limit The maximum number of API requests allowed per day.
X-RateLimit-Remaining The number of API requests your token can make in the current window.
X-RateLimit-Reset The time at which the current window ends and your remaining requests reset.
Retry-After The amount of time after which you can make another request. This header is only sent once you've used up all your requests in the current window.
Solution:
you'll want to look for tutorials on how to add rate limiting to a flask app, doing so also has nothing to do with railway itself
Jump to solution
9 Replies
Percy
Percy7mo ago
Project ID: 5e63456e-cba1-4089-acad-8de781ee8ea6
sas70
sas707mo ago
5e63456e-cba1-4089-acad-8de781ee8ea6
Brody
Brody7mo ago
are you using railways graphql api?
sas70
sas707mo ago
no. I am using a railway Flask App with few routes
Brody
Brody7mo ago
then the documentation you are looking at has nothing to do with your app
Solution
Brody
Brody7mo ago
you'll want to look for tutorials on how to add rate limiting to a flask app, doing so also has nothing to do with railway itself
sas70
sas707mo ago
my app is handling some CRUD transactions to Firestore DB. When I go beoynd a certain number of calls, it erros out. in this case should i use the Railway limit of 1000 calls per hour
Brody
Brody7mo ago
I'm sorry but this question has nothing to do with Railway railway does not place any rate limits on your app, like I said the documentation you're looking at is completely irrelevant
sas70
sas707mo ago
Ok Got it. Thank you.