Discover/fantrax.com API
live

fantrax.com APIfantrax.com

Access Fantrax public league listings, standings, draft results, and league settings across MLB, NFL, NBA, and NHL via a structured REST API.

Endpoints
4
Updated
14d ago
Try it
Sport code. Accepted values: MLB, NFL, NBA, NHL.
api.parse.bot/scraper/ec650451-bfbe-461c-8acc-5af57ea14ad0/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/ec650451-bfbe-461c-8acc-5af57ea14ad0/get_published_leagues?sport=NFL' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Get list of published/public leagues for a given sport. Returns league listings with metadata including displayed text, colour legend, and all available public leagues for the selected sport.

Input
ParamTypeDescription
sportstringSport code. Accepted values: MLB, NFL, NBA, NHL.
Response
{
  "type": "object",
  "fields": {
    "data": "object containing session metadata (uu, sDate, adrt)",
    "roles": "array of role codes",
    "responses": "array containing league data with displayedText, colourLegend, allLeagues, and selectedSport"
  },
  "sample": {
    "data": {
      "data": {
        "uu": 1,
        "adrt": 35,
        "sDate": 1777781018135
      },
      "roles": [
        "03"
      ],
      "responses": [
        {
          "data": {
            "allLeagues": [],
            "colourLegend": {
              "options": [
                {
                  "id": "AAFFAA",
                  "label": "Playoff Leagues"
                },
                {
                  "id": "CCE6FF",
                  "label": "Fantrax 2-Week Leagues"
                }
              ],
              "alwaysShowOpener": false
            },
            "displayedText": {
              "heading": "MLB Baseball - Listed Commissioner Leagues",
              "message": "..."
            },
            "selectedSport": "MLB"
          }
        }
      ]
    },
    "status": "success"
  }
}

About the fantrax.com API

This API exposes 4 endpoints covering Fantrax fantasy sports data across MLB, NFL, NBA, and NHL. Use get_published_leagues to browse public league listings with metadata, get_league_info to retrieve roster constraints and draft settings for a specific league, get_standings for ranked team records, and get_draft_results for complete pick-by-pick draft history including round, pick number, team, and player IDs.

League Discovery and Details

The get_published_leagues endpoint accepts an optional sport parameter (MLB, NFL, NBA, or NHL) and returns a structured response containing displayedText, colourLegend, allLeagues, and selectedSport fields, plus session metadata (uu, sDate, adrt). This gives you a full directory of publicly listed leagues on Fantrax without needing to know league IDs in advance.

Once you have a league_id, get_league_info returns detailed configuration for that league: leagueName, endDate, playerInfo (a map of player IDs to eligiblePos and status), rosterInfo (including positionConstraints, maxTotalPlayers, maxTotalActivePlayers), and draftSettings containing draftType. This is the endpoint to use when you need to understand how a league is structured before analyzing its data.

Standings and Draft Results

The get_standings endpoint returns an array sorted by rank, with each entry including teamId, teamName, points, winPercentage, and gamesBack. Note that points may appear as a numeric string or a W-L-T formatted string depending on the league scoring format, so parse accordingly.

get_draft_results returns a full record of a completed (or in-progress) draft. The response includes draftDate, startDate, endDate, draftType (e.g. snake), an ordered draftOrder array of team IDs, and a draftPicks array where each object contains round, pick, pickInRound, teamId, playerId, and time. The draftState field indicates whether the draft is completed or still active.

Common use cases
  • Build a draft board replay tool using draftPicks round and pick-number fields to reconstruct pick order.
  • Track standings changes over time by polling get_standings and storing rank, winPercentage, and gamesBack for each team.
  • Filter public MLB leagues by sport code using get_published_leagues to populate a league discovery interface.
  • Analyze roster construction rules by comparing positionConstraints and maxTotalPlayers values across multiple leagues.
  • Identify which players are eligible at multiple positions by inspecting the eligiblePos field in playerInfo from get_league_info.
  • Compare draft strategies across leagues by aggregating draftType and draftOrder data from get_draft_results.
  • Monitor player availability status by checking the status field on each player ID returned in playerInfo.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Fantrax have an official public developer API?+
Fantrax does not publish a documented public developer API. There is no official API portal, SDK, or OAuth flow available to third-party developers as of mid-2025.
What does `get_standings` return and how is the `points` field formatted?+
Each entry in the standings array includes rank, teamId, teamName, gamesBack, winPercentage, and points. The points field is a string and its format depends on the league's scoring system — it can be a numeric total-points value or a W-L-T record string. You should check the format before arithmetic operations.
Does the API cover waiver wire activity, trade history, or weekly matchup results?+
Not currently. The API covers public league listings, league configuration, current standings, and completed draft picks. You can fork the API on Parse and revise it to add endpoints for waiver transactions, trades, or head-to-head matchup data.
Are private or password-protected Fantrax leagues accessible through this API?+
Only leagues that are publicly listed on Fantrax are accessible. get_published_leagues returns public leagues, and get_league_info, get_standings, and get_draft_results work with the league IDs found there. Private leagues not surfaced in public listings are not covered. You can fork the API on Parse if you need to extend it for other access patterns.
How do I find a valid `league_id` to use with the detail endpoints?+
Call get_published_leagues with a sport parameter (MLB, NFL, NBA, or NHL). The allLeagues array in the response contains league entries that include alphanumeric league IDs — for example, a string like zxdiqa7umlzjgwpo. Pass that value as league_id to get_league_info, get_standings, or get_draft_results.
Page content last updated . Spec covers 4 endpoints from fantrax.com.
Related APIs in SportsSee all →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
maxpreps.com API
Access high school sports data from MaxPreps. Search for schools, retrieve team rosters and schedules, look up athlete profiles, and browse national or state rankings across all sports.
vg.no API
Access VG.no's latest news, articles, sports scores, and TV guides through a single interface where you can browse the front page, search articles by topic, view category-specific content, and find related stories. Get real-time sports scores and television schedules alongside comprehensive news coverage from Norway's leading news outlet.
vegasinsider.com API
Retrieve MLB betting odds from major sportsbooks including bet365, FanDuel, and DraftKings, covering Moneyline, Total, and Runline markets for any supported date. Easily compare odds across books to identify the best available lines.
puntoticket.com API
Browse and search events happening in Chile with PuntoTicket, viewing featured shows, filtering by category, and checking detailed pricing and availability for concerts, theater, sports, and more. Find the perfect event by exploring all listings or discovering what's trending right now.
130point.com API
Search for sold trading cards across eBay, Goldin, Heritage Auctions, Pristine Auction, MySlabs, and Fanatics Collect to find historical prices, sale dates, and marketplace information all in one place. Get comprehensive sales data to research card values and track market trends across multiple platforms instantly.
wynncraft.com API
Access detailed Wynncraft game information to look up item metadata and search across the complete item database, retrieve player statistics and character inventories, and browse guild information and global search results. Use this data to compare gear, track player progress, analyze guild rosters, or build tools for the Wynncraft community.
whoscored.com API
Search for players and teams, then dive deep into their performance metrics, match statistics, and detailed passing data to analyze football games and player abilities. Get comprehensive insights on team performance, individual player stats, and play-by-play event information to power your football analysis and decision-making.