cdda7e6ab5 | ||
---|---|---|
.. | ||
README.md |
README.md
Abstract Exchange Rates
Description
Get live and historical data from 60+ fiat and crypto currencies via a modern REST API
Example Request
- Curl
curl "https://currency.abstractapi.com/v1/?api_key={{token}}&base=USD"
- Raw
GET /v1/?api_key={{token}}&base=USD HTTP/1.1
Host: currency.abstractapi.com
Response
- Success
{
"base": "USD",
"last_updated_unix": "1593614038",
"last_updated_utc": "Wed, 01 Jul 2020 14:33:58 +0000",
"exchange_rate": {
"EUR": 0.889758,
"CAD": 1.35676,
"AUD": 1.44753,
"GBP": 0.807175,
"CHF": 0.946451,
"CNY": 7.06409,
...
...
}
}
- Error
{
"error":{
"message":"Invalid API key provided.",
"code":"unauthorized",
"details":null
}
}
Regex
[a-z0-9]{32}
Example API key
of3ab02f3xd12ldofxc3fosc129sd241