APIYard
Back to APIs
SportsNo AuthFree tier

TheSportsDB

Access free sports data covering football, basketball, baseball, and more — including teams, events, and results.

Base URL

https://www.thesportsdb.com/api/v1/json/3
footballbasketballsoccerteamsfree

Endpoints

GET/searchteams.php

Search for a sports team by name.

const response = await fetch("https://www.thesportsdb.com/api/v1/json/3/searchteams.php?t=Arsenal", {
  method: "GET",
  headers: {
  "Content-Type": "application/json"
  }
});

const data = await response.json();
console.log(data);

Response Preview

{
  "teams": [{
    "idTeam": "133604",
    "strTeam": "Arsenal",
    "strLeague": "English Premier League",
    "strCountry": "England",
    "intFormedYear": "1886"
  }]
}