tickerstringobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
tickerstringobligatoireETF or index fund ticker, e.g. `SPY`.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/financial-datasets/index-funds avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.02 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : ticker (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Financial Datasets ETF and Index Fund Holdings fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Financial Datasets séparément.