How do I get player props in JavaScript or Node.js?
Short answer:Use fetch with a bearer key from your server (never ship the key to a browser): GET https://underdogapi.com/api/v1/projections?league=NBA&view=compact returns the Underdog Fantasy board, and an EventSource-style reader on /api/v1/stream gives changes as they happen.
Underdog API on 15 Nov 2026
| Free tier | 100 credits a month, no card, 5-minute delay, last 24 hours of line history |
|---|---|
| Cheapest paid plan | Developer, $49 a month for 10,000 credits |
| Push delivery | Server-sent event stream; signed webhooks on Production and Scale |
Updated November 15, 2026. Our numbers are from the production database at 06:07 UTC on 15 Nov 2026; other providers' facts are paraphrased from their public pages on the date shown.
Server side only
Keep the key in an environment variable on your server or edge function and proxy the rows your page needs.
Compared with other providers
| Underdog API (this site) | The Odds API | ParlayAPI | |
|---|---|---|---|
| Free tier | 100 credits a month, no card, 5-minute delay, last 24 hours of line history | Starter: 500 credits a month, no historical odds | 1,000 credits a month, no card, up to 48 hours of historical lookback |
| Cheapest paid plan | Developer, $49 a month for 10,000 credits | $30 a month for 20,000 credits; $59, $119 and $249 plans above it | Starter, $5 a month for 20,000 credits; Pro $20, Business $40, Enterprise $100, Scale $200 |
| Push delivery | Server-sent event stream; signed webhooks on Production and Scale | Not stated on its pricing page | WebSocket and SSE streaming from Business ($40) up |
Read on 15 Nov 2026 unless a cell gives another date. Plans change; confirm on each provider's page. This site is independent and not affiliated with any company named here.
Where this API is worse
- No official npm SDK is published yet; fetch works on every endpoint.
Try it against the real API
Set UNDERDOG_API_KEY to a free key from sign-up. Every path below is documented in the API reference; costs are on credits.
const res = await fetch("https://underdogapi.com/api/v1/projections?league=NFL&view=compact&limit=100", {
headers: { Authorization: `Bearer ${process.env.UNDERDOG_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data, meta } = await res.json();
console.log(data.length, "rows", meta);curl -N 'https://underdogapi.com/api/v1/stream?league=NFL' \
-H "Authorization: Bearer $UNDERDOG_API_KEY" \
-H "Accept: text/event-stream"Questions
Is there a Node client?
/developers/starter-kit has a small client.
Underdog API is an independent data service. It is not affiliated with, endorsed by or operated by Underdog Fantasy or any company named on this page.