capabilities.work

Quota Guarded Rates

A 3-step recipe with ExchangeRate-API. We can help you get access.

Recipe · 3 steps

Quota Guarded Rates

Branch on remaining quota between the keyed and Open Access rate endpoints.

  1. Read the plan quota and number of requests remaining for the API key before deciding which rate endpoint to use.
  2. Fetch the latest exchange rates through the authenticated keyed endpoint because quota is still available.
  3. Fall back to the no-key Open Access endpoint for once-daily rates because the keyed quota has been exhausted.
What you'll need to have ready
  • apiKey: Your ExchangeRate-API dashboard API key.
  • baseCode: ISO 4217 three-letter base currency code (e.g. USD).
For your developer

Arazzo workflow exchangerate-api:quota-guarded-rates, 3 operations: getQuota → getLatestRates → getOpenAccessLatest. Specs on APIs.io.