Page 1 of 1

API Tutorial

Posted: Mon Jan 23, 2017 3:02 pm
by zag
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

Re: API Tutorial

Posted: Fri Feb 03, 2017 12:28 pm
by zag

Re: API Tutorial

Posted: Fri Feb 03, 2017 12:29 pm
by zag

Re: API Tutorial

Posted: Fri Feb 03, 2017 12:29 pm
by zag
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

Re: API Tutorial

Posted: Fri Feb 03, 2017 12:29 pm
by zag
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)

Re: API Tutorial

Posted: Mon Mar 04, 2019 3:18 pm
by cturan
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.

Re: API Tutorial

Posted: Mon Mar 04, 2019 10:00 pm
by zag
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.