API Keys
You can use the test API key "1" during development of your app (see test links below)
However you must apply for a key a production API key before releasing your app to the public.

Below find complete instructions for using our JSON API. All example links use the test key which should only be used during development or for personal apps. You can request a production API key by clicking this link and following the instructions in this thread. Our API is free but consider a yearly donation if your app is commercial.

Search

Search for team by name
http://www.thesportsdb.com/api/v1/json/1/searchteams.php?t=Arsenal

Search for all players from team
http://www.thesportsdb.com/api/v1/json/1/searchplayers.php?t=Arsenal

Search for players by name
http://www.thesportsdb.com/api/v1/json/1/searchplayers.php?p=Danny%20Welbeck

Search for event by event name
http://www.thesportsdb.com/api/v1/json/1/searchevents.php?e=Arsenal_vs_Chelsea

Search for event by event file name
http://www.thesportsdb.com/api/v1/json/1/searchfilename.php?e=English_Premier_League_2015-04-26_Arsenal_vs_Chelsea

Search for all Leagues in a country
http://www.thesportsdb.com/api/v1/json/1/search_all_leagues.php?c=England

Search for all Teams in a League
http://www.thesportsdb.com/api/v1/json/1/search_all_teams.php?l=English%20Premier%20League

Search for all Seasons in a League
http://www.thesportsdb.com/api/v1/json/1/search_all_seasons.php?id=4328

List all leagues and sports
http://www.thesportsdb.com/api/v1/json/1/all_leagues.php

NOTE: You can replace spaces '%20' with underscores if you want, when requesting multi word strings.

Lookups

League Details by Id
http://www.thesportsdb.com/api/v1/json/1/lookupleague.php?id=4346

League seasons by league Id
http://www.thesportsdb.com/api/v1/json/1/lookupleague.php?id=4346&s=all

Team Details by Id
http://www.thesportsdb.com/api/v1/json/1/lookupteam.php?id=133604

Player Details by Id
http://www.thesportsdb.com/api/v1/json/1/lookupplayer.php?id=34145937

Event Details by Id
http://www.thesportsdb.com/api/v1/json/1/lookupevent.php?id=441613

Lookup Table by League ID and Season
http://www.thesportsdb.com/api/v1/json/1/lookuptable.php?l=4328&s=1213

Schedules

Next 5 Events by Team Id
http://www.thesportsdb.com/api/v1/json/1/eventsnext.php?id=133602

Next 15 Events by League Id
http://www.thesportsdb.com/api/v1/json/1/eventsnextleague.php?id=4328

Last 5 Events by Team Id
http://www.thesportsdb.com/api/v1/json/1/eventslast.php?id=133602

Last 15 Events by League Id
http://www.thesportsdb.com/api/v1/json/1/eventspastleague.php?id=4328

Events on a specific day
http://www.thesportsdb.com/api/v1/json/1/eventsday.php?d=2014-10-10
http://www.thesportsdb.com/api/v1/json/1/eventsday.php?d=2014-10-10&s=Soccer
http://www.thesportsdb.com/api/v1/json/1/eventsday.php?d=2014-10-10&l=Australian_A-League


All events in specific league by season
http://www.thesportsdb.com/api/v1/json/1/eventsseason.php?id=4328&s=1415

Images

Preview Images
Most of the time you won't want to download the original large image, just get a small preview. This is possible simple by adding ''/preview'' onto the end URL. This will give you a small 200px version. This will work with JPG images only.
Original Image - http://www.thesportsdb.com/images/media/league/fanart/xpwsrw1421853005.jpg
Small Image - http://www.thesportsdb.com/images/media/league/fanart/xpwsrw1421853005.jpg/preview

Livescores

Soccer Livescores
http://www.thesportsdb.com/api/v1/json/1/latestsoccer.php
NOTE: Updated every 2mins (Don't abuse please)