R
Railway12mo 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
Percy12mo ago
Project ID: 5e63456e-cba1-4089-acad-8de781ee8ea6
sas70
sas7012mo ago
5e63456e-cba1-4089-acad-8de781ee8ea6
Brody
Brody12mo ago
are you using railways graphql api?
sas70
sas7012mo ago
no. I am using a railway Flask App with few routes
Brody
Brody12mo ago
then the documentation you are looking at has nothing to do with your app
Solution
Brody
Brody12mo 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
sas7012mo 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
Brody12mo 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
sas7012mo ago
Ok Got it. Thank you.
Want results from more Discord servers?
Add your server