User avatar
zag
Site Admin
Posts: 571
Joined: Tue Oct 11, 2016 9:43 am

API Tutorial

Mon Jan 23, 2017 3:02 pm

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 please consider an appropriate yearly donation if your app is commercial. If you create something cool, post it in our Add-on section for a bit of publicity.

API v1 status = STABLE

Please see this link:

https://www.thesportsdb.com/api.php

User avatar
zag
Site Admin
Posts: 571
Joined: Tue Oct 11, 2016 9:43 am

Re: API Tutorial

Fri Feb 03, 2017 12:28 pm


User avatar
zag
Site Admin
Posts: 571
Joined: Tue Oct 11, 2016 9:43 am

Re: API Tutorial

Fri Feb 03, 2017 12:29 pm


User avatar
zag
Site Admin
Posts: 571
Joined: Tue Oct 11, 2016 9:43 am

Re: API Tutorial

Fri Feb 03, 2017 12:29 pm

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 - https://www.thesportsdb.com/images/medi ... 853005.jpg
Small Image - https://www.thesportsdb.com/images/medi ... pg/preview

User avatar
zag
Site Admin
Posts: 571
Joined: Tue Oct 11, 2016 9:43 am

Re: API Tutorial

Fri Feb 03, 2017 12:29 pm

Livescores

Soccer Livescores

Code: Select all

thesportsdb.com/api/v1/json/{APIKEY}/latestsoccer.php

https://www.thesportsdb.com/api/v1/json ... soccer.php

NOTE: Updated every 2mins (Don't abuse please)

cturan
Posts: 1
Joined: Sun Mar 03, 2019 11:35 am

Re: API Tutorial

Mon Mar 04, 2019 3:18 pm

zag wrote:Livescores

Soccer Livescores

Code: Select all

thesportsdb.com/api/v1/json/{APIKEY}/latestsoccer.php

https://www.thesportsdb.com/api/v1/json ... soccer.php

NOTE: Updated every 2mins (Don't abuse please)


Hello, thanks for everything. I want to say, actually live score not updated 2 mins interval. Mostly take 15-25 minutes.

User avatar
zag
Site Admin
Posts: 571
Joined: Tue Oct 11, 2016 9:43 am

Re: API Tutorial

Mon Mar 04, 2019 10:00 pm

Hmm that's not right, i will check. Maybe our source has issues.

EDIT: Looks like we have huge demand on that API method which isn't surprising as its one of the only free ones on the internet. I think I will make it faster for Patreon subscribers as we cant sustain such huge traffic for a free site. i will have a look for some ideas.

Return to “Developers”