bankstringobbligatorio
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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
bankstringobbligatorioThe 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.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-rates con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.02 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: bank (string). Facoltativi: cursor (string), end_date (string) e start_date (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Financial Datasets Get Historical Interest Rates funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Financial Datasets.