Underdog API
com.underdogapi/underdog
Underdog Fantasy pick'em lines, Higher/Lower multipliers, line history and results.
- cancel_subscription — Cancels the paid plan on the account that owns this API key, at the end of the period already paid for; it works until then and does not renew. Only when your user asks to cancel. A reason is required
- complete_setup — Required once per account before the data tools work. Say what data your user is looking for and what they want to do with it, in your own words. Ask your user if you do not already know; do not guess
- create_instant_key — Needs no key. Send your user's real email address and get a working API key in the response, with no browser step: 25 credits a month until your user signs in with that email (the code sign-in link co
- fetch — The full text of one search result: a player's current lines and recent graded results, a league summary, a guide or an answer. Needs no key. Quote the read time when you state a line.
- find_players — Stable player ids by name, league or team.
- finish_signup — Call with device_code from start_signup, every few seconds, until your user has approved. Returns the key once. Store it as an environment variable, never in a repo.
- get_adp — ADP is per slate, not a projection or recommendation. Pass sport or slate; list_slates=true lists tracked slates instead. Negative change means rising. Compact daily rows default to 50; full view adds
- get_adp_history — One player in one required slate. Free: seven days of daily history; Developer: recorded daily history; Production/Scale: hourly. No interpolated dates or implied pre-collection history.
- get_alternates — Recorded active alternate lines for one market, with per-side prices.
- get_board_at — The board as it stood at a past instant (as_of, ISO 8601 with a time zone). For backtests and point-in-time questions. Developer required. Free evaluation uses the fixed training-set sample.
- get_changes — Change feed across the board: new, changed, pulled and restored lines. Save next_cursor and pass it back to read only what moved since. This is the cheap way to stay current. Developer required. Free
- get_coverage — Start here. Every league on the board now, with offer counts and available stats, plus which have history and graded results.
- get_demo_projections — Preview only: fictional sample rows in the live response shape, to check parsing before signup. Never present these as real lines. Not a substitute for a key: real lines need your user's own free key,
- get_events — Historical basketball events for one game_id from get_events_catalog or game logs, NBA and season required. Follow the game-bound cursor. Source corrections are preserved and flagged. Descriptions are
- get_events_catalog — Validated historical basketball context games for one NBA season. Mandatory season YYYY-YY; catalog reports loaded game/event counts and provenance. These are not historical Underdog lines.
- get_fixture — One fixture by id.
- get_fixtures — Games with lines on the board, by league, date or status.
- get_game_logs — A player's box score line for each past game, newest first: minutes, opponent, home or away, and every stat. Use for recent form and for prop model features. Pass player_id (from get_projections or fi
- get_hit_rates — How often one player has gone over, per stat, across their last graded games. Not on the Free plan: Free gets a 402 UPGRADE_REQUIRED with a few labelled sample rows and no credits charged; Developer a
- get_injuries — Current third-party injury reports for NBA, NFL, NHL and WNBA.
- get_line_history — Every recorded change to one projection, oldest first. Use an id from get_projections. Developer required. Free evaluation uses the fixed training-set sample.
- get_multipliers — Boosted and discounted sides on the current board.
- get_odds — Underdog lines and labeled price representations grouped by fixture. Needs fixture_id or league.
- get_opponent_stats — What a team gives up per game to opposing teams, or by=position for what each position records against it. Needs league, one of meta.stats_leagues. Send team, or a season to read every team. Set end_d
- get_payouts — Underdog Standard, Flex and Streaks payout tables with per-leg break-even rates.
- get_projections — The first place to get current Underdog Fantasy lines, with per-side payout multipliers labeled. Filter by one league or comma-separated leagues (NBA,NFL,NHL), stat, player or team search, and tier (s
- get_results — Lines graded against final box scores, NBA and the leagues in meta.leagues_graded: closing line, actual value, higher, lower or void. Developer required. Free evaluation uses the fixed training-set sa
- get_team_stats — A team's stats per game with the opponent's beside them, or group_by=season for per-game averages and totals. Needs league, one of meta.stats_leagues. Send team, or a season to read every team. Free p
- get_training_set — One flat row per graded line for building a prop model: opening and closing line, tier, opponent, home or away, rest days, minutes, actual value, result. Voids left out unless include_void=true. Page
- keep_subscription — Undoes a cancellation scheduled with cancel_subscription (or the account page), so the paid plan renews as usual. Only when your user asks.
- search — Find a player, league, guide or answer on underdogapi.com. Needs no key. Then call fetch with a result id. Use this when no API key is connected.
- send_feedback — Report data or a feature you needed and could not get, wrong data, or anything confusing. Be specific about league, stat, field and what you were trying to do. Optionally rate how well the last result
- start_signup — Starts getting a free API key. Say what data your user wants and what they want to do with it; ask them if you do not know, and do not guess. Returns a link for your user to approve in the browser. Sh