
Live scores, standings, and player stats for football, basketball, tennis, ice hockey, cricket, and other sports. Search for a player, team, or competition, then use the ids you get back for match details, lineups, league tables, squads, and season leaders. Match ids come from the live list or from a team or tournament fixture list. Premier League is tournament `17`, the NBA is `132`, and Arsenal is team `42`. An unknown id returns 404. An invalid parameter returns 400.
Players, teams, and tournaments that match a name. Pass sport to limit the results to one sport, then use a returned id on the other routes.
Player, team or tournament name.
Sport, such as football, basketball, tennis, ice-hockey, cricket, handball, baseball, american-football, or volleyball.
Language:
Client:
fetch('https://api.apivex.com/sofascore/api/search?query=messi&sport=football', {
method: 'GET',
headers: {
'x-apivex-key': 'YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));