carlos-menezes / fc-clubs-api

An API written in TypeScript for the FC24 Clubs mode which allows developers to retrieve game statistics for all platforms.
8 stars 3 forks source link

Does this work? #1

Open BlazedLearning opened 1 month ago

BlazedLearning commented 1 month ago

Hi, sorry I am leaving a message here @carlos-menezes , but I couldn't find another way to contact you. Just wanted to ask you if this still works on FC 24?

Thank you in advance for your answer!

carlos-menezes commented 1 month ago

Hey! It has been a while since I've used (and done any maintenance on) this API. Are the tests not passing?

BlazedLearning commented 1 month ago

Thanks for your response @carlos-menezes ! Not all are passing unfortunately, I am getting some json data from some requests but not all. Is there a documentation that you followed when building this? I am not finding any that are provided by EA xD

Maybe I can help out!

carlos-menezes commented 1 month ago

Thanks for raising the issue! 😄

I just created a wrapper for the requests made here: https://www.ea.com/en-gb/games/ea-sports-fc/clubs/rankings

They might have changed some of the endpoints or the any of the schemas.

BlazedLearning commented 1 month ago

I see, thanks for sharing! And from your previous experience on this, is there any endpoint to get match/player statistics from friendly matches in pro clubs?

carlos-menezes commented 1 month ago

I'm not exactly sure there's an endpoint for retrieving stats from friendly games (only playoffs and league matches, which are documented in the README). If you play a friendly match and tell me the name of your club, I could possibly dig into the network tab and see if there's an endpoint for that.

BlazedLearning commented 1 month ago

We only play friendlies almost every night with a club named "BINGUS ESPORTS"

I would love to know if friendlies stats retrieval is possible.

carlos-menezes commented 1 month ago

https://www.ea.com/en-gb/games/ea-sports-fc/clubs/match-history?clubId=7875460&platform=common-gen5

I assume you cannot see any of these matches here, can you?

BlazedLearning commented 1 month ago

Correct, none of the matches here are friendlies.