tickerstring必填
ETF or index fund ticker, e.g. `SPY`.
https://api.sandbase.ai/v1/api/financial-datasets/index-fundsHoldings of an ETF or index fund by ticker, with fund name, asset class, net assets and each holding's weight.
您的输出将显示在这里
完成输入,然后点击运行。
Returns the holdings of an ETF or index fund, plus fund-level details such as name, asset class and total net assets. The only input is the fund ticker, for example SPY.
SPY in a portfolio dashboard.AAPL or NVDA.ticker.market_value.curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/index-funds" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ticker": "SPY"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | ETF or index fund ticker, e.g. SPY. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"fund": {
"as_of": "2026-10-30",
"asset_class": "equity",
"cik": "884394",
"filing_date": "2026-10-30",
"name": "State Street SPDR S&P 500 ETF",
"offset": 0,
"returned": 10,
"source": "ssga",
"total_holdings": 505,
"total_net_assets": 796865210000.0
},
"holdings": [
{
"asset_class": "equity",
"market_value": 61347943176.19,
"name": "APPLE INC",
"shares": 179157845.0,
"ticker": "AAPL",
"weight": 7.69866
}
],
"next_page_url": "https://api.financialdatasets.ai/index-funds?cursor=14PYl6nE1XOPv6nAM5DGqeHPMLv3…",
"ticker": "SPY"
}
| Field | Meaning |
|---|---|
fund.name | Full name of the fund. |
fund.asset_class | Main asset class of the fund, for example equity. |
fund.total_net_assets | Total net assets of the fund as a number. |
fund.as_of / fund.filing_date | Dates tied to the holdings data. as_of is the date of the data and filing_date is the filing date. Both use YYYY-MM-DD. |
fund.total_holdings / fund.returned / fund.offset | Total number of holdings in the fund, how many came back in this response, and the starting position of this page. |
holdings[].ticker / holdings[].name | Ticker symbol and name of each holding. |
holdings[].weight | Weight of the holding in the fund. 7.69866 for AAPL appears to be a percentage value. |
holdings[].market_value / holdings[].shares | Value of the position and the number of shares held. |
holdings[].asset_class | Asset class of the individual holding. |
next_page_url | Full URL for the next page of holdings. It contains a cursor value. |
fund.returned is 10 out of fund.total_holdings of 505.next_page_url to fetch the next page when there are more holdings than fund.returned.ticker.$0.02 per successful call. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/index-funds" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ticker": "SPY"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
tickerstring必填ETF or index fund ticker, e.g. `SPY`.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/financial-datasets/index-funds 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.02,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:ticker (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Financial Datasets ETF and Index Fund Holdings 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Financial Datasets API 访问权限。