API Request Quota
Documentation for the API Request Quota Currency Exchange Rate API API endpoint.
Overview
Some users like to track the amount of available API request quota they have left from within the same script or service that is consuming our exchange rate data. This endpoint makes this possible by returning a JSON formatted response that shows what your plan's quota level is and how many requests you have remaining in the current period.
Please note two important points about this endpoint:
-
There is a delay between your system sending requests and these reflecting in your official request usage count and available quota indication. This is due to various scheduled scripts having to collect your usage counts from the different parts & caching layers of our infrastructure. The delay can range from 5 minutes to 60 minutes depending on circumstances.
-
Unfortunately we have to make requests to this API endpoint count against your request usage quota. We'd prefer not to and originally this wasn't the case but users kept putting requests to this endpoint in while(1) loops and generating tens of millions of unnecessary requests. Our Pro plan does include 30k API requests per month so you'll still be able to monitor this at a reasonable frequency.
Finally, a note on the refresh_day_of_month
field. Our API request quotas get renewed on the day of the month that you started your current plan and not simply on the 1st. Accordingly, the JSON response also includes the date of each month that your account gets new request quota allocated.
Usage Guide
To use our API Request Quota endpoint simply swap in your API key and then send a GET request to the URL below.
• Substitute YOUR-API-KEY
with the API key displayed in your dashboard.
This will return a JSON array of your current API request quota status:
Error Responses
Where "error-type" can be any of the following:
- invalid-key: when your API key is not valid.
- inactive-account: if your email address wasn't confirmed.
- quota-reached: when your account has reached the the number of requests allowed by your plan.
Need Help?
If you have any questions or need further assistance, don’t hesitate to contact us. We’re here to assist you!