bankstringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
bankstringobrigatórioThe 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.
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-rates com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.02 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: bank (string). Opcionais: cursor (string), end_date (string) e start_date (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Financial Datasets Get Historical Interest Rates funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Financial Datasets separadamente.