User avatar
zag
Site Admin
Posts: 312
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: 312
Joined: Tue Oct 11, 2016 9:43 am

Re: API Tutorial

Fri Feb 03, 2017 12:28 pm


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

Re: API Tutorial

Fri Feb 03, 2017 12:29 pm


User avatar
zag
Site Admin
Posts: 312
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: 312
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)

Return to “Developers”