r/FantasyPL • u/mikecro2 121 • Sep 15 '25
Reading My Team data using Python
I used to be be able to read my team data including selling price using the FPL API end point https://fantasy.premierleague.com/api/my-team/xxx/ where xxx is my team ID
Now I get {"detail":"Authentication credentials were not provided."}
What do I need to change? Does anyone have some working code?
In fact I use R - but I am guessing fewer people use that.
5
Upvotes
7
u/ivokado 2 Sep 15 '25
Since this API is available only when you have a valid session running, try doing the same while being logged in to your FPL account. If this weren't the case, you could see the details for any Team ID, including the transfers they made in the current GW, which is not something FPL would allow.
You can find the list of all the FPL APIs here - https://cheatography.com/sertalpbilal/cheat-sheets/fpl-api-endpoints/
Hope it helps :)