Prerequisites
Before you start, make sure you have:- A SquadAssist account with an API key
curlavailable in your terminal (all examples below use curl)
Step-by-step
Look up all competitions
Use The response gives you the competitions you have access to:
GET /get_competitionsto get all competitions you have access to.Get the clubs playing in that league
GET /get_clubs_in_competition gives you all clubs currently playing in the competition. If you loop over the competitions from your earlier request, this gives you all of the clubs currently playing in these leagues Get all players playing at each club
GET /get_players_at_clubgives you all clubs currently playing at the requested club. If you loop over the clubs from your earlier request, this gives you all of the players currently playing in your coverage. What’s next
POST /get_future_transfer_value— project the resale value of a player at end of contractGET /expected_transfer_value— get the current expected transfer fee for a playerGET /player_info— retrieve detailed position, role, and club affiliation data for a player
