API - Exchange rates (currency_rates)

Geolocation

Gives you the exchange rates of one currency, today or on a past day, and converts an amount when you send one.

Endpointhttps://api.opensolr.com/solr_manager/api/currency_rates
MethodGET or POST
Authemail and api_key of your account, as GET or POST parameters: Authentication.

01 · Parameters

baseRequired

The currency to convert from, an ISO 4217 code such as EUR.

toOptional

The currencies you want, such as USD,GBP. Without it: every currency known that day.

dateOptional

A past day, YYYY-MM-DD. Default today (UTC). Never a future day.

amountOptional

An amount in the base currency to convert.

02 · Example

curl -s "https://api.opensolr.com/solr_manager/api/currency_rates?email=YOUR_EMAIL&api_key=YOUR_API_KEY&base=EUR&to=USD,GBP&amount=100"

03 · Answer

{
    "status": true,
    "contract_version": 1,
    "base": "EUR",
    "date": "2026-10-11",
    "rates": {
        "USD": 1.0912,
        "GBP": 0.8441
    },
    "amount": 100,
    "converted": {
        "USD": 109.12,
        "GBP": 84.41
    }
}

One base is worth rate of each currency. A currency asked for and not known that day is listed in unknown. Values shown are an example.

04 · Errors

ERROR_INVALID_CURRENCYHTTP 200

base is not a three-letter code.

ERROR_INVALID_DATEHTTP 200

date is not a real past day.

ERROR_NO_RATESHTTP 200

No rates for that currency on that day.

ERROR_RATES_UNAVAILABLEHTTP 200

The rates could not be read. Retry later.

WRONG_API_HOSTHTTP 404

Called on opensolr.com. The answer carries the right URL.

ERROR_AUTHENTICATION_FAILEDHTTP 403

The email and API key do not match.

ERROR_RATE_LIMIT_PER_MINUTEHTTP 429

Too many calls. Wait for the Retry-After seconds.

Each call counts once toward your per-minute and per-hour limits, whatever the number of items: Rate limits. Lookups never use the AI allowance.

05 · Related

VAT rates: vat_rates.

Every error code and HTTP status of the API: API errors. Calls per minute and per hour: Rate limits.