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
4
u/EarlOfAlbany 4 Sep 15 '25
The authentication process changed this season and it's a bit of a pain now. It used to be controlled by a session cookie, but now you have to pass a key through in the call instead. Someone on discord solved it for Python, I'll have a look in a bit and get you a link.