メインコンテンツへスキップ
GET
Get live exchange rates

はじめに

ベースURL

検証エンドポイント

対象通貨が指定されていない場合、エンドポイントは利用可能なすべての通貨のレートを返します。サポート対象通貨の完全なリストはこちらで確認できます。
この成功したリクエストは、基準通貨に対する利用可能なすべての通貨の為替レートを返します。

リクエストパラメータ

String
必須
固有のAPIキーです。各ユーザーはCleariflowの各APIごとに固有のAPIキーを持っているため、為替レートAPIのキーはIPジオロケーションAPIなどでは動作しません。
String
必須
最新の為替レートを取得する基準通貨です。このAPIのすべての通貨パラメータと同様に、ISO 4217通貨標準(例:米ドルはUSD)を使用します。
String
基準通貨に対する為替レートを取得する対象通貨です。baseパラメータと同様、ここで渡す通貨もISO 4217標準に従います。複数の通貨をtargetに渡す場合は、カンマで区切ってください(例:&target=EUR,CAD,AUD)。

レスポンスパラメータ

APIレスポンスは、汎用的で軽量な JSON形式 で返されます。
String
為替レートを取得するために使用した基準通貨です。
Integer
返されたデータが最後に更新されたUnixタイムスタンプです。
Object
各対象通貨をキーとし、基準通貨に対する為替レートを値とするJSONオブジェクトです。

クエリパラメータ

api_key
string
必須

Your unique API key for authentication

base
string
デフォルト:EUR

The base currency used to get the latest exchange rate(s) for. Uses the ISO 4217 currency standard

target
string

The target currency or currencies to get the exchange rate of versus the base currency. Multiple currencies should be separated by commas. If not specified, all available currencies will be returned.

レスポンス

Successful response

base
string
必須

The base currency used to get the exchange rates

例:

"EUR"

last_updated
integer
必須

The Unix timestamp of when the returned data was last updated

例:

1704067200

exchange_rates
object
必須

A JSON Object containing each of the target currency as the key and its exchange rate versus the base currency as that key's value

例: