Skip to main content

Download Players

You can download a CSV spreadsheet of players from /api/players/csv on the domain for the competition you play. For example, Premier League uses https://app.draftfantasy.com/api/players/csv. Add ?leagueId=<LEAGUE_ID> to calculate the exported points using that league’s custom scoring.

API

The API returns data in JSON format. To convert the data to CSV, you can use a tool like JSON to CSV.

League

You can grab your league data via our API by making a GET request to /api/v1/league/<LEAGUE_ID> on the correct competition domain. You’ll need to replace <LEAGUE_ID> with your actual league ID. For example, if you wanted to get the league with an ID of abcde, you would make a request to https://app.draftfantasy.com/api/v1/league/abcde.

Draft

After the draft is complete, you can grab the draft data by making a GET request to /api/v1/league/<LEAGUE_ID>/draft on the correct competition domain. You’ll need to replace <LEAGUE_ID> with your actual league ID. For example, if you wanted to get the draft with an ID of abcde, you would make a request to https://app.draftfantasy.com/api/v1/league/abcde/draft.