Shazam

FREEMIUM
Verified
(Ким) Api Dojo | Оновлено 13日前 | Music
Популярність

9.8 / 10

Затримки

1,614ms

Рівень обслуговування

99%

Health Check

N/A

Повернутися до всіх обговорень

Limit to 5000

Hi, im using the api for a website and just subscribed to the PRO-version. I'm a bit worried that someone will overuse the function though, and for what I understand there is no limit to the amount of calls that can be made, which could lead to me having to pay a alot bigger amount that Im comfortable with. 

Any ideas on what I can do? Is it possible to limit the max amount of calls somehow?

Rapid account: Apidojo
apidojo Commented 2年前

Hello,

You may wrap our endpoints in ones of yours, check the consumption on the servers and limit the usage, then call your endpoints instead. It is easy to implement with some Proxy library.

Regards

Rapid account: Alexandergustafssonflink
alexandergustafssonflink Commented 2年前

I get that I get a response header with info regarding the amount of free calls that is left. However, then the call has already been made. So if someone were to use my app to make a hell of alot of calls, this header wont help me - will it? Is there not anyway for me to block further calls once the limit has been reached?

Rapid account: Apidojo
apidojo Commented 2年前

Hello,

You are interested in the two following fields x-ratelimit-requests-limit, x-ratelimit-requests-remaining in every response header, they help to track your consumption in real time. The headers are also mentioned in the document at https://docs.rapidapi.com/docs/response-headers You should spend time and read their documentary.

Regards.

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення