Usage

Authentication

To make use of the exchangerates.co.ke API you need to get an API key. Sign up for one for free. After confirming your email address your API key will be sent directly to your email address. Always append your key to your requests. E.g https://exchangerates.co.ke/api/latest/key/uZUiIfbAJXe6hcI4lBMz

Rate Limiting

API access is rate limited, by default each API key gets 1000 requests a month. Incase you need more calls per month please feel free to contact me.

Daily Rates

To get the lastest or daily exchange rate use https://exchangerates.co.ke/api/latest Show Sample Response

Historical Rates

To get historical rates for a specific date use https://exchangerates.co.ke/api/2005-01-03 Show Sample Response

Errors

The API returns errors in JSON format. Always check the error value as well as the http status code. See the below error responses

No Data Available
{
    "error": true,
    "msg": "USER_ERROR: Incorrect API key! Ensure you are using a registered valid API key",
    "status": 500
}
Rate Limit Reached
{
    "error": true,
    "msg": "USER_ERROR: You have exhausted your key's number of requests for this month",
    "status": 500
}