all-about-apikey/abstract-exchange-rates
Muhammad Daffa 9ee885c92a Add 10 informations 2022-08-17 23:10:40 +07:00
..
README.md Add 10 informations 2022-08-17 23:10:40 +07:00

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://exchange-rates.abstractapi.com/v1/live/?api_key={{token}}&base=USD"
  • Raw
GET /v1/live/?api_key={{token}}&base=USD HTTP/1.1
Host: exchange-rates.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