Live mid-market rate between two currencies, refreshed roughly every 60 seconds. Requires an API key: pass it as Authorization: Bearer art_live_... or, for simple cross-origin GETs, as ?key= (alias ?apiKey=). CORS-enabled.
Query parameters
-
Source currency code (ISO 4217)
Minimum length is
3, maximum length is3. -
Target currency code (ISO 4217)
Minimum length is
3, maximum length is3. -
API key (alternative to the Authorization header;
apiKeyalso accepted) -
Alias for
key— the same query-string fallback under its camelCase name.
Responses
-
Current rate
-
Invalid or missing parameters
-
Authentication required — provide an API key via
Authorization: Bearer art_live_...(free keys at https://allratestoday.com/register) -
Monthly request limit exceeded (X-Monthly-Limit / X-Monthly-Used / X-Monthly-Resets headers included)
-
Upstream rate provider error
curl \
--request GET 'https://allratestoday.com/api/rate?source=USD&target=EUR' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"rate": 0.92145,
"source": "mid-market"
}
{
"error": "string",
"hint": "string"
}
{
"error": "string",
"hint": "string"
}
{
"error": "Request limit exceeded",
"used": 42,
"limit": 42,
"plan": "free",
"resets_at": "2026-05-04T09:42:00Z",
"upgrade_url": "https://allratestoday.com/pricing"
}
{
"error": "string",
"hint": "string"
}