ETFdb.com API (React, Vue, Angular, Node.js)
- Fetches data of all 3114 ETFs listed on ETFdb.com
- Indicators: returns (YTD, 1-week, etc.), AUM, expense ratio, dividend yield, 3-month avg. volume, price, etc.
- Holdings of individual ETFs
- Supports client-side (React, React Native, Vue, Angular, Cordova, Ionic, etc.), and server-side (Node.js)
Getting Started
npm install etfdb-api
Examples
Node.js
const etfdb = ; // list all ETFs, sorted by year-to-date return, descending sort directionetfdb ; // show first 15 holdings of TQQQ, sorted by weighting (DESC)etfdb; // page 3 of TQQQ holdingsetfdb;
React
Live Demo: https://codesandbox.io/s/mpxy95mvx
; Component { api; } { // ... return <pre>JSON</pre>; }
JSON Response - listEtfs()
Raw API Query
Use Postman or curl
.
URL: https://etfdb.com/api/screener/
Method: POST
Payload: see below
Headers:
- Content-Type: application/json
- User-Agent: Your User Agent
Payload Examples
Year to Date
, order direction DESC
Sort by
Show Returns
Fund Flows
"tab": "fund-flows"
Expenses
"tab": "returns"
Dividends
"tab": "dividends"
Holdings
"tab": "holdings"