datestringzorunlu
Historical date in ISO format YYYY-MM-DD.
https://api.sandbase.ai/v1/api/x-rates/historical-rates-tableFetches 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.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
date | string | Yes | Historical date in ISO format YYYY-MM-DD. |
amount | number | No | Amount to calculate rates for. |
from | string | No | Base currency code. One of: USD, EUR, GBP, JPY, CHF, CAD, AUD. |
Flat $0.03 per call. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/x-rates/historical-rates-table" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"date": "2026-10-16",
"from": "USD",
"amount": 1
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
datestringzorunluHistorical date in ISO format YYYY-MM-DD.
fromstringBase currency code.
Varsayılan: "USD"
Olası değerler: USD, EUR, GBP, JPY, CHF, CAD, AUD
amountnumberAmount to calculate rates for.
Varsayılan: 1
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
X-Rates | $0.03 çağrı başına | JSON |
X-Rates | $0.03 çağrı başına | JSON |
X-Rates | $0.03 çağrı başına | JSON |
X-Rates | $0.03 çağrı başına | JSON |
X-Rates | $0.03 çağrı başına | JSON |
X-Rates | $0.03 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/x-rates/historical-rates-table adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.03, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: date (string). İsteğe bağlı: from (USD, EUR, GBP, JPY, CHF, CAD, AUD arasından biri) ve amount (number). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron).
Hayır. X-Rates Historical Rates Table, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. X-Rates API erişimi için ayrıca başvuru yapmanız gerekmez.