tickerstringbắt buộc
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.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
tickerstringbắt buộcThe 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`.
Mặc định: 4
metric_namestringFilter to a specific metric (e.g., load_factor, cet1_ratio).
periodstringFilter by period type: quarterly or annual.
Mặc định: "quarterly"
Giá trị có thể dùng: 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).
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Financial Datasets MetricsAPI này Financial Datasets | $0.02 mỗi lần gọi | JSON |
Financial Datasets | $0.02 mỗi lần gọi | JSON |
Financial Datasets | $0.02 mỗi lần gọi | JSON |
Financial Datasets | $0.02 mỗi lần gọi | JSON |
Financial Datasets | $0.02 mỗi lần gọi | JSON |
Financial Datasets | $0.02 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/financial-datasets/kpi-metrics với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.02 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: ticker (string). Tùy chọn: cursor (string), limit (integer), metric_name (string), period (một trong số quarterly, annual), report_period_gte (string) và report_period_lte (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ).
Không. Financial Datasets Metrics chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Financial Datasets.