bankstringwajib
The central bank code, e.g. FED, ECB, BOJ. Use the /macro/interest-rates/banks endpoint to get the list of available banks.
https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-ratesThe daily policy rate of one central bank: one row per calendar day, newest first, 10 rows per page. A rate change appears on the first day the new rate is in effect.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Returns the daily policy interest rate of one central bank, one row per calendar day, newest first. It needs a central bank code in bank, such as FED, ECB or BOJ.
rate.bank.curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-rates" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"bank": "FED"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
bank | string | Yes | The central bank code, e.g. FED, ECB, BOJ. Use the /macro/interest-rates/banks endpoint to get the list of available banks. |
cursor | string | No | Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify |
end_date | string | No | The last date to return, inclusive, in YYYY-MM-DD format. Defaults to today. |
start_date | string | No | The first date to return, inclusive, in YYYY-MM-DD format. Defaults to five years before end_date when both dates are omitted; omit it with an end_date to get all available history through that date. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"interest_rates": [
{
"bank": "FED",
"date": "2026-10-27",
"name": "Federal Reserve",
"rate": 3.875
}
],
"next_page_url": "https://api.financialdatasets.ai/macro/interest-rates?cursor=5hVg4qj4Wsz6weUrOtt…"
}
| Field | Meaning |
|---|---|
interest_rates[] | One row per calendar day for the requested bank, newest first. |
interest_rates[].bank | The central bank code for the row, for example FED. |
interest_rates[].name | The full name of the central bank, for example Federal Reserve. |
interest_rates[].date | The calendar day of the rate in YYYY-MM-DD format. |
interest_rates[].rate | The policy rate in effect on that day, for example 3.875. |
next_page_url | A URL that carries a cursor for the next page of older rows. |
cursor value from next_page_url as the cursor parameter. The cursor is opaque, so do not edit it.cursor, the API ignores all other parameters because the cursor already carries the original filters.start_date and end_date in YYYY-MM-DD format to limit the range. If you omit both, the range covers the five years before today.$0.02 per successful call. Failed calls are not charged.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-rates" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"bank": "FED"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
bankstringwajibThe central bank code, e.g. FED, ECB, BOJ. Use the /macro/interest-rates/banks endpoint to get the list of available banks.
cursorstringOpaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.
end_datestringThe last date to return, inclusive, in YYYY-MM-DD format. Defaults to today.
start_datestringThe first date to return, inclusive, in YYYY-MM-DD format. Defaults to five years before end_date when both dates are omitted; omit it with an end_date to get all available history through that date.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Financial Datasets | $0.02 per panggilan | JSON |
Financial Datasets | $0.02 per panggilan | JSON |
Financial Datasets | $0.02 per panggilan | JSON |
Financial Datasets | $0.02 per panggilan | JSON |
Financial Datasets | $0.02 per panggilan | JSON |
Financial Datasets | $0.02 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-rates 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.
$0.02 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: bank (string). Opsional: cursor (string), end_date (string) dan start_date (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Financial Datasets Get Historical Interest Rates 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 Financial Datasets secara terpisah.