The EODHD ETF Holdings API returns the positions of US-listed ETFs: every line the fund reported to the SEC, with weight, share count and market value. The data comes from the funds’ own N-PORT filings. Asset allocation, sector and region breakdowns and performance figures are calculated from those positions.
A second endpoint answers the reverse question: which ETFs hold a given security. Both endpoints return JSON.
This API is in beta. Field names and coverage can change. It covers US-listed ETFs only, and not every US ETF is available yet: some funds return a 404 response (see Known Limitations). The positions come from the latest N-PORT filing of each fund, so they can be several months old. Check Report_Date in every response.
Fund Holdings
Returns the positions of one ETF from its latest N-PORT filing. All positions come in one response, without pagination. Large funds give large responses: the bond fund BND has 17,409 positions and about 5 MB of JSON.
https://eodhd.com/api/etf/holdings/{TICKER}?api_token=YOUR_API_TOKEN
The ticker is part of the path. Use the US ticker of the ETF, with or without the .US suffix: VTI and VTI.US give the same result. Tickers of other exchanges, for example CSPX.LSE, return HTTP 422. For funds outside the US, use the Fundamentals API (see the last section).
Parameters
api_token
string
required
Request Example
Holdings of Vanguard Total Stock Market ETF:
https://eodhd.com/api/etf/holdings/VTI?api_token=demo
curl --location "https://eodhd.com/api/etf/holdings/VTI?api_token=demo&fmt=json"
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://eodhd.com/api/etf/holdings/VTI?api_token=demo&fmt=json',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$data = curl_exec($curl);
curl_close($curl);
try {
$data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
var_dump($data);
} catch (Exception $e) {
echo 'Error. '.$e->getMessage();
}
import requests
url = f'https://eodhd.com/api/etf/holdings/VTI?api_token=demo&fmt=json'
data = requests.get(url).json()
print(data)
library(httr)
library(jsonlite)
url <- 'https://eodhd.com/api/etf/holdings/VTI?api_token=demo&fmt=json'
response <- GET(url)
if (http_type(response) == "application/json") {
content <- content(response, "text", encoding = "UTF-8")
cat(content)
} else {
cat("Error while receiving data\n")
}
Try it now (it's free)!
How to use it (YouTube)
Response Example
The response for VTI, from the filing for the period ending 2026-06-30, shortened to one position per section. The payload is in data. The meta and links keys are empty for this endpoint.
{
"data": {
"General": {
"Code": "VTI",
"Type": "ETF",
"Name": "VANGUARD TOTAL STOCK MARKET INDEX FUND",
"Exchange": "US",
"Issuer": "VANGUARD INDEX FUNDS",
"Fund_Type": "etf",
"Net_Assets": 2297839156547.9,
"Report_Date": "2026-06-30",
"Source": "nport",
"Is_Complete": true,
"Mapped_Weight_%": 99.29,
"Filed_Positions_Count": 3546
},
"Holdings": {
"NVDA.US": {
"Code": "NVDA",
"Exchange": "US",
"Name": "NVIDIA CORP",
"Sector": "Technology",
"Industry": "Semiconductors",
"Country": "United States",
"Region": "North America",
"Assets_%": 6.355382492074,
"CUSIP": "n/a",
"ISIN": "n/a",
"Country_Code": "US",
"Shares": 729853903,
"Value_USD": 146036467451.27,
"Contract_Code": null
},
"...": {}
},
"Top_10_Holdings": { "NVDA.US": { ... }, "...": {} },
"Holdings_Count": 3544,
"Asset_Allocation": {
"Cash": { "Long_%": 0.7, "Short_%": 0, "Net_Assets_%": 0.7 },
"Bond": { "Long_%": 0, "Short_%": 0, "Net_Assets_%": 0 },
"Stock_US": { "Long_%": 99.78, "Short_%": 0, "Net_Assets_%": 99.78 },
"Stock_non-US": { "Long_%": 0, "Short_%": 0, "Net_Assets_%": 0 },
"Other": { "Long_%": 0, "Short_%": 0, "Net_Assets_%": 0 }
},
"Sector_Weights": {
"Technology": { "Equity_%": 35.99 },
"Financial Services": { "Equity_%": 11.72 },
"...": {}
},
"World_Regions": { "North America": { "Equity_%": 99.77 } },
"Performance": {
"Returns_YTD": 6.25,
"Returns_1Y": 7.55,
"Returns_3Y": 17.65,
"Returns_5Y": 9.44,
"Returns_10Y": 13.71,
"1y_Volatility": 14.95,
"3y_Volatility": 15.92,
"3y_SharpRatio": 0.86
}
},
"meta": [],
"links": []
}
Response Fields
General — fund and filing fields
- Code — fund ticker
- Type — always ETF
- Name — fund name from the N-PORT filing
- Exchange — always US
- Issuer — registrant (fund trust) from the filing
- Fund_Type — fund type, etf
- Net_Assets — net assets in USD on Report_Date
- Report_Date — end of the reporting period that the positions describe. This is not the filing date and not the date of your request
- Source — data source, nport (SEC N-PORT filing)
- Is_Complete — true when the filing was read in full. It does not say how many positions have a ticker: for that, use Mapped_Weight_%
- Mapped_Weight_% — share of the fund weight, in percent, whose positions have a ticker (Code is not null). A low value does not mean that positions are missing: the rest is still in Holdings, identified by Name. Typical low values: bond funds (BND is 0.14), funds with large cash or money-market holdings, and funds with positions on exchanges that we do not serve (VWO is 71.25)
- Filed_Positions_Count — number of positions in the filing itself
Holdings and Top_10_Holdings — positions
- Holdings — all positions, largest weight first. The key of each position is CODE.EXCHANGE (NVDA.US, ASML.AS). A position without a ticker is keyed by NAME: with a short hash. When one security has several lines in the filing (for example different option contracts), the key gets a suffix after the ~ sign. Do not parse keys: use the Contract_Code field of the position
- Top_10_Holdings — the ten largest positions, in the same format
- Holdings_Count — number of entries in Holdings. Lots of the same security are added together into one entry, so it can be lower than Filed_Positions_Count (VTI: 3,544 and 3,546)
- Code — ticker of the position. Null when the security has no ticker in our directory (bonds, cash funds, some non-US listings)
- Exchange — exchange of the position. US for US listings; a foreign security has its own exchange code (AS, LSE, SW, KO). Null when Code is null
- Name — security name from the filing. Some swap positions have the name N/A
- Sector, Industry — classification of the security. Null when unknown
- Country — country name (for example United States, United Kingdom). Country_Code — the two-letter ISO code of the same country
- Region — world region derived from the country (for example North America, Europe Developed). Null when unknown
- Assets_% — weight in the net assets of the fund, in percent, as in the filing. We do not recalculate it. The sum can be above 100% (IWM is about 117%) or below it, and a position can be negative (swaps, repurchase agreements, futures)
- Shares — number of shares, or the principal amount for bonds
- Value_USD — market value of the position in USD
- Contract_Code — identifier of an option or other derivative contract, as the filing gives it (an option symbol or a Bloomberg ID). Null for other positions
Asset_Allocation — calculated from the positions
- Five groups: Cash (short-term investments and repurchase agreements), Bond, Stock_US, Stock_non-US and Other
- Long_% — sum of the long positions of the group, in percent of net assets
- Short_% — sum of the short positions of the group, in percent of net assets
- Net_Assets_% — Long_% minus Short_%
Sector_Weights and World_Regions — calculated from the positions
- Each entry has one field, Equity_%, a number in percent with two decimals
- Only equity positions are counted, so the total follows the stock share in Asset_Allocation and not 100% of Assets_%. A fund without equities, for example a bond fund, has empty objects
- Equity positions without a known sector or region go to the entry Unclassified. In emerging-market funds this entry can be large: about 27% for VWO
Performance — calculated from the end-of-day prices of the fund
- Returns_YTD, Returns_1Y — price return since the start of the year and over one year, in percent
- Returns_3Y, Returns_5Y, Returns_10Y — annualized price return over the period, in percent
- 1y_Volatility, 3y_Volatility — annualized volatility of the daily log returns, in percent
- 3y_SharpRatio — three-year annualized return minus a 4% risk-free rate, divided by the three-year volatility
- The whole object is null when the fund has no price history. A single field is null when the history is too short for that period
Funds Holding a Security
Returns the ETFs that hold a given security in their latest filing, largest weight first. Use it to see, for example, which funds hold NVIDIA or Exxon Mobil. The ticker is part of the path and is the security that you look up, not a fund. A foreign ticker with an exchange suffix, for example ASML.AS, is accepted.
https://eodhd.com/api/etf/security/{TICKER}/held-by?api_token=YOUR_API_TOKEN
Parameters
api_token
string
required
page[offset]
integer
optional
page[limit]
integer
optional
Request Example
The first 50 ETFs that hold NVIDIA:
https://eodhd.com/api/etf/security/NVDA/held-by?api_token=YOUR_API_TOKEN&page[limit]=50
curl --location "https://eodhd.com/api/etf/security/NVDA/held-by?api_token=YOUR_API_TOKEN&page[limit]=50&fmt=json"
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://eodhd.com/api/etf/security/NVDA/held-by?api_token=YOUR_API_TOKEN&page[limit]=50&fmt=json',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$data = curl_exec($curl);
curl_close($curl);
try {
$data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
var_dump($data);
} catch (Exception $e) {
echo 'Error. '.$e->getMessage();
}
import requests
url = f'https://eodhd.com/api/etf/security/NVDA/held-by?api_token=YOUR_API_TOKEN&page[limit]=50&fmt=json'
data = requests.get(url).json()
print(data)
library(httr)
library(jsonlite)
url <- 'https://eodhd.com/api/etf/security/NVDA/held-by?api_token=YOUR_API_TOKEN&page[limit]=50&fmt=json'
response <- GET(url)
if (http_type(response) == "application/json") {
content <- content(response, "text", encoding = "UTF-8")
cat(content)
} else {
cat("Error while receiving data\n")
}
Try it now (it's free)!
How to use it (YouTube)
Response Example
{
"data": {
"security": {
"ticker": "NVDA",
"exchange": "US",
"name": "NVIDIA CORP",
"cusip": "n/a",
"isin": "n/a"
},
"held_by_count": 791,
"funds": [
{
"ticker": "SMH",
"name": "VanEck Semiconductor ETF",
"weight": 19.36517138228,
"shares": 63493343,
"value_usd": 14500609674.34,
"report_date": "2026-09-30"
}
]
},
"meta": { "total": 791, "offset": 0, "limit": 50 },
"links": { "next": "/api/etf/security/NVDA/held-by?page%5Boffset%5D=50&page%5Blimit%5D=50" }
}
The example is shortened to one fund. The links.next value is a relative URL without your api_token: add the token when you follow it. On the last page links.next is null, and a request past the end returns an empty funds list.
Response Fields
Held-by response fields
- security.ticker, security.exchange, security.name — the security that you looked up
- held_by_count — number of ETFs that hold the security in their latest filing
- funds — the funds on this page, largest weight first
- funds[].ticker, funds[].name — the ETF
- funds[].weight — weight of the security in the net assets of the fund, in percent
- funds[].shares, funds[].value_usd — shares held and their market value in USD
- funds[].report_date — Report_Date of the filing of that fund. It is different for different funds
- meta.total — number of funds on all pages. meta.offset and meta.limit — the paging of this response
Response Codes
The 404 and 422 responses have a JSON body. The 401 and 403 responses are plain text, as on the other EODHD APIs. A request that returns 404 still uses API calls.
| Code | Meaning |
|---|---|
| 200 | Success |
| 401 | The api_token is missing or not valid |
| 403 | Your plan does not include this API |
| 404 | No holdings for this ticker. The body has a code: FUND_NOT_FOUND (no fund with this ticker), NOT_COVERED (the ticker is outside the coverage of this API) or NO_HOLDINGS_YET (the fund is known but has no N-PORT holdings yet) |
| 422 | A ticker that is not US-listed (fund holdings), or a paging value that is not valid |
| 429 | The rate limit of your plan is exceeded |
Example of a 404 body:
{
"errors": [
{
"status": "404",
"title": "Symbol not found",
"code": "NOT_COVERED",
"detail": "This ticker is outside ETF holdings coverage."
}
]
}
Known Limitations
- Not every US ETF is available. Funds that do not file N-PORT return 404 with NOT_COVERED: commodity and crypto trusts (GLD, SLV, IBIT) and exchange-traded notes. Some other funds, mostly small ones, also return 404. If you need a fund that returns 404, contact support.
- Holdings are as of the latest filing. The SEC publishes N-PORT data with a delay after the end of the period. Report_Date is the end of the period of the filing. When we checked on 2026-11-25, the median age of Report_Date was 117 days and the oldest was 148 days. New filings are picked up weekly.
- A new fund appears after its first filing. A fund that was launched recently has no holdings here until it files its first N-PORT, which can take months. The API returns 404 NO_HOLDINGS_YET or FUND_NOT_FOUND.
- A fund is served under the ticker in the SEC registry. After a ticker change the old ticker returns 404. For example, SPLG is now SPYM: SPYM returns the holdings and SPLG returns 404.
- Weights can add up to more than 100%. Funds that lend securities show the reinvested cash collateral as a position, and leveraged and swap funds show notional values. The weights are as in the filing. They can also add up to less than 100%, and single positions can be negative.
- Not every position has a ticker. Bonds, cash funds and some non-US listings have Code null. They are still identified by Name. Use Mapped_Weight_% to see how much of the weight has a ticker.
- Options and covered-call funds. Different option contracts on the same security can be added into fewer lines than the filing has. Use Contract_Code to tell the contracts apart.
- A fund with no positions returns an empty list. For such a fund (for example GAID), Holdings is an empty list [] and not an empty object. Handle both when you parse the response.
- Fund holdings are for US-listed funds only. Tickers of other exchanges return 422. Only the held-by endpoint accepts a foreign ticker for the security that you look up.
Differences from the Fundamentals API
The Fundamentals API also returns ETF data, in the ETF_Data section. The two APIs are separate and their numbers do not always match.
- Source. This API uses SEC N-PORT filings only. The Fundamentals API uses other sources and covers funds on many exchanges.
- Completeness. This API returns every reported position of a covered fund. In the Fundamentals API, the Holdings section is full for some funds, and has only the ten largest positions or no positions for others.
- Detail per position. Shares, Value_USD and Contract_Code come from the filing. Asset allocation, sector and region breakdowns are calculated from the reported positions.
- Reverse lookup. The held-by endpoint shows the ETFs that hold a security.
- Fund-level data. Market capitalisation, valuations, Morningstar data and fund fields such as yield, expense ratio and inception date are not part of this API. They remain in the Fundamentals API.