ETF API
The ETF API provides detailed information about Exchange-Traded Funds including their holdings, expense ratios, assets under management, and other key metrics.
/v1/etf GET
https://api.api-ninjas.com/v1/etf
Returns comprehensive information about any ETF by its ticker. For live pricing data, please use the Stock Price API with the same ticker.
Parameters
tickerrequiredETF ticker symbol (e.g.,
QQQ,SPY,VTI).
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
etf_tickerETF ticker symbol.
etf_nameETF name.
isinInternational Securities Identification Number (ISIN) of the ETF.
cusipNine-character Committee on Uniform Security Identification Procedures (CUSIP) identifier for the ETF.
countryCountry of the ETF issuer.
expense_ratiopremium onlyAnnual expense ratio of the ETF as a percentage. For example, 0.2% would be
0.2.aumpremium onlyAssets under management of the ETF in USD.
num_holdingsNumber of holdings in the ETF.
holdingsArray of top holdings in the ETF, each with ticker, name, and percentage weight. Free users only get access to the first 3 holdings. Users with a premium subscription get access to all holdings.
Sample Request Live Demo!
https://api.api-ninjas.com/v1/etf?ticker=QQQHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"etf_ticker": "QQQ",
"etf_name": "Invesco QQQ Trust",
"isin": "US46090E1038",
"cusip": "46090E103",
"country": "US",
"expense_ratio": 0.2,
"aum": 305184502800,
"num_holdings": 101,
"holdings": [
{
"ticker": "MSFT",
"num_shares": 61773595,
"weight": 0.08689999999999999,
"value": 27752405289.7,
"last_updated": 1747184735
},
{
"ticker": "AAPL",
"num_shares": 124827810,
"weight": 0.08239,
"value": 26312454069.9,
"last_updated": 1747184735
},
{
"ticker": "NVDA",
"num_shares": 202754805,
"weight": 0.07809,
"value": 24938841015,
"last_updated": 1747184735
},
"..."
]
}Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/etf?ticker=SPY" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.