Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

X-Rates Historical Rates Table

Dokumentasi API
https://api.sandbase.ai/v1/api/x-rates/historical-rates-table

Fetches historical exchange rates for a base currency against all supported currencies on a specific date. The date must be in ISO YYYY-MM-DD format. Returns the same structure as the current rates table but for the specified historical date.

Harga
$0.03USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 2 opsional

Playground

Input
Historical date in ISO format YYYY-MM-DD.
Base currency code.
Amount to calculate rates for.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

X-Rates Historical Rates Table API

Fetches historical exchange rates for a base currency against all supported currencies on a specific date. The date must be in ISO YYYY-MM-DD format. Returns the same structure as the current rates table but for the specified historical date.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "x-rates/historical-rates-table", "date": "2026-10-16", "from": "USD", "amount": 1.0}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
datestringYesHistorical date in ISO format YYYY-MM-DD.
amountnumberNoAmount to calculate rates for.
fromstringNoBase currency code. One of: USD, EUR, GBP, JPY, CHF, CAD, AUD.

Pricing

Flat $0.03 per call. Failed calls are not charged.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
X-Rates$0.03 per panggilanJSON
X-Rates$0.03 per panggilanJSON
X-Rates$0.03 per panggilanJSON
X-Rates$0.03 per panggilanJSON
X-Rates$0.03 per panggilanJSON
X-Rates$0.03 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API X-Rates Historical Rates Table?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/x-rates/historical-rates-table dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API X-Rates Historical Rates Table?

$0.03 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API X-Rates Historical Rates Table?

Wajib: date (string). Opsional: from (salah satu dari USD, EUR, GBP, JPY, CHF, CAD, AUD) dan amount (number). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API X-Rates Historical Rates Table?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron).

Apakah saya memerlukan akun developer atau kunci API X-Rates?

Tidak. X-Rates Historical Rates Table berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API X-Rates secara terpisah.