tickerstringwymagane
The ticker symbol.
https://api.sandbase.ai/v1/api/financial-datasets/kpi-metricsGet sector-specific operational KPIs for a ticker. Includes metrics like load factor, CET1 ratio, same-store sales, FFO per share, and more. Sourced from SEC 8-K earnings releases.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Get sector-specific operational KPIs for a ticker. Includes metrics like load factor, CET1 ratio, same-store sales, FFO per share, and more. Sourced from SEC 8-K earnings releases.
The response is the official Financial Datasets API response, unchanged.
curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/kpi-metrics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ticker": "AAPL", "limit": 2, "period": "annual"}'
| Name | Type | Required | Description |
|---|---|---|---|
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 reques |
limit | integer | No | Number of periods to return. Returns all metrics for the N most recent periods. This is the total across all pages, not a page size: each page holds up to 10 re |
metric_name | string | No | Filter to a specific metric (e.g., load_factor, cet1_ratio). |
period | string | No | Filter by period type: quarterly or annual. |
report_period_gte | string | No | Only return metrics on or after this date (YYYY-MM-DD). |
report_period_lte | string | No | Only return metrics on or before this date (YYYY-MM-DD). |
ticker | string | Yes | The ticker symbol. |
Flat price per call. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/kpi-metrics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 2,
"period": "annual",
"ticker": "AAPL"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
tickerstringwymaganeThe ticker symbol.
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.
limitintegerNumber of periods to return. Returns all metrics for the N most recent periods. This is the total across all pages, not a page size: each page holds up to 10 records, linked by `next_page_url`.
Domyślnie: 4
metric_namestringFilter to a specific metric (e.g., load_factor, cet1_ratio).
periodstringFilter by period type: quarterly or annual.
Domyślnie: "quarterly"
Możliwe wartości: quarterly, annual
report_period_gtestringOnly return metrics on or after this date (YYYY-MM-DD).
report_period_ltestringOnly return metrics on or before this date (YYYY-MM-DD).
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/financial-datasets/kpi-metrics z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.02 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: ticker (string). Opcjonalne: cursor (string), limit (integer), metric_name (string), period (jedna z opcji: quarterly, annual), report_period_gte (string) i report_period_lte (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. Financial Datasets Metrics działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Financial Datasets.