Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Latest Download Submissions Go to All Downloads
Web - My Sports Handbook (g36mitchell) - Submitted by TheSportsDBFan
Submit Date: 08-22-2024, 08:30 PM | Category: Tools and Scripts
PlexSportScanner (Project-Plex) V.0.9.1 - Submitted by TheSportsDBFan
Submit Date: 08-21-2024, 09:54 PM | Category: Plex Plugins
The Sports Database Python- metadata.thesportsdb.python V.1.1.7 - Submitted by TheSportsDBFan
Submit Date: 08-21-2024, 09:16 PM | Category: Kodi Addons
PHP TSDB TV-Guide (Vilhao) - Submitted by TheSportsDBFan
Submit Date: 08-20-2024, 08:53 PM | Category: Tools and Scripts
Texturecache.py V.1.0.0 - Submitted by TheSportsDBFan
Submit Date: 08-16-2024, 10:15 PM | Category: Tools and Scripts
 

Search Forums

(Advanced Search)

Forum Statistics
» Members: 114
» Latest member: grisgris
» Forum threads: 74
» Forum posts: 79

Full Statistics

Online Users
There are currently 3 online users.
» 0 Member(s) | 3 Guest(s)

Latest Threads
Can’t stop imagining you ...
Forum: General Discussion
Last Post: AmandaSoxspofsa
02-23-2025, 06:35 PM
» Replies: 0
» Views: 81
Support & Documentation -...
Forum: Support - TSDB.club & TheSportsDB.com & TSDB.live & API Tester & TSDB NFO Creator/Builder/Generator
Last Post: htpcmac
01-03-2025, 04:38 PM
» Replies: 1
» Views: 395
Player change the team - ...
Forum: Add and maintain content
Last Post: TheSportsDBFan
08-23-2024, 08:55 AM
» Replies: 0
» Views: 290
My Sports Handbook (g36mi...
Forum: Presentation of your projects
Last Post: TheSportsDBFan
08-22-2024, 08:18 PM
» Replies: 0
» Views: 270
DMCA - Digital Millennium...
Forum: Developing - TheSportsDB.com
Last Post: TheSportsDBFan
08-22-2024, 12:35 PM
» Replies: 0
» Views: 276
How to publish your App o...
Forum: Developing - TheSportsDB.com
Last Post: TheSportsDBFan
08-22-2024, 12:32 PM
» Replies: 0
» Views: 227
Leagues of TheSportsdb.co...
Forum: Developing - TheSportsDB.com
Last Post: TheSportsDBFan
08-21-2024, 10:42 PM
» Replies: 0
» Views: 231
Countries of TheSportsdb....
Forum: Developing - TheSportsDB.com
Last Post: TheSportsDBFan
08-21-2024, 10:23 PM
» Replies: 0
» Views: 22,902
PlexSportScanner - SportS...
Forum: Presentation of your projects
Last Post: TheSportsDBFan
08-21-2024, 10:03 PM
» Replies: 0
» Views: 311
Support [Script - Kodi an...
Forum: Support - Other Projects & Tools
Last Post: TheSportsDBFan
08-21-2024, 08:17 PM
» Replies: 0
» Views: 318

 
  Overview of the possibilities of the API V1 of TheSportsdb.com
Posted by: TheSportsDBFan - 08-17-2024, 12:06 AM - Forum: Developing - TheSportsDB.com - No Replies

Overview of the possibilities of the API V1 of TheSportsdb.com

There are 2 types of API calls.:

- Free (The free sports API will always remain free at point of access for basic sports data)
- Premium (You must be registered on TheSportsDB and a supporter on Patreon - get a dedicated production API key including 2min Livescores, Video highlights and all other upgraded features.)

Free users can use the test API key "3" during development of your app or for educational use. 
If you have paid for a premium key, just replace "3" with your "API KEY" in the URL.

  • If you have not received an API key after registering and joining, please contact the following email address: thedatadb(@)gmail.com or join the discord channel: TheDataDB
  • Some of the example links below do not show any results, just replace the 3 in the URL with your API key!
  • If you click on "Show content", only shortened records will be displayed!



API Limit: 100 requests per minute. If you exceed the limit, you will receive the following message and error code:

Code:
{
    "message": "Rate Limit exceeded. Please keep below 100 requests per 1 minute.",
    "error": 429
}



Search:

DescriptionUrl Link Hint
Search for team by name "https://www.thesportsdb.com/api/v1/json/3/searchteams.php?t=Arsenal" Link -
Search for team short code "/api/v1/json/3/searchteams.php?sname=ARS" Link -

Show Content

DescriptionUrl Link Hint
Search for all players from team "/api/v1/json/3/searchplayers.php?t=Arsenal" Link Premium
Search for players by name 1 "/api/v1/json/3/searchplayers.php?p=Danny_Welbeck" Link -
Search for players by name 2 "/api/v1/json/{APIKEY}/searchplayers.php?t={TeamName}&p={Playername}" Link {APIKEY} = 3, Team: Arsenal, Player: Gabriel_Jesus

Show Content

DescriptionUrl Link Hint
Search for event by event name 1 "/api/v1/json/3/searchevents.php?e=Arsenal_vs_Chelsea" Link -
Search for event by event name 2 "/api/v1/json/3/searchevents.php?e=Arsenal_vs_Chelsea&s=2016-2017" Link -

Show Content

DescriptionUrl Link Hint
Search for event by event file name "/api/v1/json/3/searchfilename.php?e=English_Premier_League_2015-04-26_Arsenal_vs_Chelsea" Link -

Show Content


DescriptionUrl Link Hint
Search for venue "/api/v1/json/3/searchvenues.php?t=Wembley" Link -

Show Content

=> You can replace spaces between multi word strings with underscores: Arsenal_vs_Chelsea



List:

DescriptionUrl Link Hint
List all sports "/api/v1/json/3/all_sports.php" Link Premium

Show Content

DescriptionUrl Link Hint
List all leagues "/api/v1/json/3/all_leagues.php" Link limited 50 on free tier

Show Content

DescriptionUrl Link Hint
List all countries "/api/v1/json/3/all_countries.php" Link -

Show Content

DescriptionUrl Link Hint
List all Leagues in a country 1 "/api/v1/json/3/search_all_leagues.php?c=England" Link limited 50 on free tier
List all Leagues in a country 2 "/api/v1/json/3/search_all_leagues.php?c=England&s=Soccer" Link limited 50 on free tier

Show Content

DescriptionUrl Link Hint
List all Seasons in a League "/api/v1/json/3/search_all_seasons.php?id=4328" Link -

Show Content

DescriptionUrl Link Hint
List all Teams in a League 1 "/api/v1/json/3/search_all_teams.php?l=English%20Premier%20League" Link -
List all Teams in a League 2 "/api/v1/json/3/search_all_teams.php?s=Soccer&c=Spain" Link -

Show Content

DescriptionUrl Link Hint
List All teams details in a league by Id "/api/v1/json/3/lookup_all_teams.php?id=4328" Link Premium

Show Content

DescriptionUrl Link Hint
List All players in a team by Team Id "/api/v1/json/3/lookup_all_players.php?id=133604" Link Premium

Show Content

DescriptionUrl Link Hint
List all users loved teams and players "/api/v1/json/3/searchloves.php?u=zag" Link -

Show Content

DescriptionUrl Link Hint
List all events from season "/api/v1/json/3/eventsseason.php?id=4424&s=2019" Link Premium (developer key is limited to 250 events)

Show Content



Lookups:

DescriptionUrl Link Hint
League Details by Id "/api/v1/json/3/lookupleague.php?id=4346" Link Premium

Show Content

DescriptionUrl Link Hint
Team Details by Id "/api/v1/json/3/lookupteam.php?id=133604" Link Premium

Show Content

DescriptionUrl Link Hint
Player Details by Id "/api/v1/json/3/lookupplayer.php?id=34145937" Link -

Show Content

DescriptionUrl Link Hint
Venue Details by Id "/api/v1/json/3/lookupvenue.php?id=16163" Link -

Show Content

DescriptionUrl Link Hint
Event Details by Id "/api/v1/json/3/lookupevent.php?id=441613" Link Premium

Show Content

DescriptionUrl Link Hint
Event Statistics by Id "/api/v1/json/3/lookupeventstats.php?id=1032723" Link Premium only

Show Content

DescriptionUrl Link Hint
Event Lineup by Id "/api/v1/json/3/lookuplineup.php?id=1032723" Link Premium

Show Content

DescriptionUrl Link Hint
List timeline for events by event ID "/api/v1/json/3/lookuptimeline.php?id=1032718" Link Premium only

Show Content

DescriptionUrl Link Hint
Player Honours by Player Id "/api/v1/json/3/lookuphonours.php?id=34147178" Link -

Show Content

DescriptionUrl Link Hint
Player Milestones by Player Id "/api/v1/json/3/lookupmilestones.php?id=34161397" Link -

Show Content

DescriptionUrl Link Hint
Player Former Teams by Player Id "/api/v1/json/3/lookupformerteams.php?id=34147178" Link -

Show Content

DescriptionUrl Link Hint
Player Contracts by Player Id "/api/v1/json/3/lookupcontracts.php?id=34147178" Link -

Show Content

DescriptionUrl Link Hint
Event Results by Event Id "/api/v1/json/3/eventresults.php?id=652890" Link -

Show Content

DescriptionUrl Link Hint
Event TV by Event Id "/api/v1/json/3/lookuptv.php?id=584911" Link Premium

Show Content

DescriptionUrl Link Hint
Lookup Table by League ID and Season "/api/v1/json/3/lookuptable.php?l=4328&s=2020-2021" Link -

Show Content

DescriptionUrl Link Hint
Lookup Equipment by Team ID "/api/v1/json/3/lookupequipment.php?id=133597" Link -

Show Content


Schedules:

DescriptionUrl Link Hint
Next 5 Events by Team Id "/api/v1/json/3/eventsnext.php?id=133602" Link Premium
Next 15 Events by League Id "/api/v1/json/3/eventsnextleague.php?id=4328" Link Premium
Last 5 Events by Team Id "/api/v1/json/3/eventslast.php?id=133602" Link Limited to home team for free tier
Last 15 Events by League Id "/api/v1/json/3/eventspastleague.php?id=4328" Link Premium
Events in a specific round by league id/round/season "/api/v1/json/3/eventsround.php?id=4328&r=38&s=2014-2015" Link -
Events on a specific day "/api/v1/json/3/eventsday.php?d=2014-10-10" Link Premium
Events on a specific day "/api/v1/json/3/eventsday.php?d=2014-10-10&s=Soccer" Link Premium
Events on a specific day "/api/v1/json/3/eventsday.php?d=2014-10-10&l=4356" Link Premium
Events on a specific day "/api/v1/json/3/eventsday.php?d=2014-10-10&l=Australian_A-League" Link Premium
All events in specific league by season "/api/v1/json/3/eventsseason.php?id=4328&s=2014-2015" Link Free tier limited to 100 events

Show Content

DescriptionUrl Link Hint
TV Events on a day (By Sport/Date/TV Station Country) "/api/v1/json/3/eventstv.php?d=2018-07-07" Link Premium
TV Events on a day (By Sport/Date/TV Station Country) "/api/v1/json/3/eventstv.php?d=2018-07-07&s=Fighting" Link Premium
TV Events on a day (By Sport/Date/TV Station Country) "/api/v1/json/3/eventstv.php?d=2019-09-28&a=United%20Kingdom&s=Cycling" Link Premium
TV Events on a day (By Sport/Date/TV Station Country) "/api/v1/json/3/eventstv.php?c=Peacock_Premium" Link Premium

Show Content

NOTE: These round numbers relate to special strings:
Round 125 = Quarter-Final
Round 150 = Semi-Final
Round 160 = Playoff
Round 170 = Playoff Semi-Final
Round 180 = Playoff Final
Round 200 = Final
Round 500 = Pre-Season



Video Highlights:

DescriptionUrl Link Hint
Latest Event Youtube Highlights 1 "/api/v1/json/3/eventshighlights.php" Link Premium
Latest Event Youtube Highlights 2 "/api/v1/json/3/eventshighlights.php?d=2019-10-13" Link Premium
Latest Event Youtube Highlights 3 "/api/v1/json/3/eventshighlights.php?d=2019-10-12&l=WTA%20Tour" Link Premium
Latest Event Youtube Highlights 4 "/api/v1/json/3/eventshighlights.php?l=MLB" Link Premium
Latest Event Youtube Highlights 5 "/api/v1/json/3/eventshighlights.php?i=4329" Link Premium
Latest Event Youtube Highlights 6 "/api/v1/json/3/eventshighlights.php?s=Soccer" Link Premium
Latest Event Youtube Highlights 7 "/api/v1/json/3/eventshighlights.php?s=Soccer&d=2020-02-15" Link Premium

Show Content



Livescores:

DescriptionUrl Link Hint
Soccer "/api/v1/json/3/latestsoccer.php" Link Premium
NCAA Basketball "/api/v1/json/3/latestncaabasketball.php" Link Premium - not working
NCAA Football "/api/v1/json/3/latestncaafootball.php" Link Premium - not working
Basketball "/api/v1/json/3/latestbasketball.php" Link Premium
Am Football "/api/v1/json/3/latestamericanfootball.php" Link Premium
Ice Hockey "/api/v1/json/3/latesticehockey.php" Link Premium
Baseball "/api/v1/json/3/latestbaseball.php" Link Premium - not working

Show Content

NOTE: Updated LIVE every 2mins for Patreon/Premium
=> V2 is now recommended for livescore



Images:

Most of the time you won't want to download the original large image. 
This is possible simple by adding ''/preview'' or "/medium",.. onto the end URL.
 
DescriptionSize Url Link
Original fullsize "/images/media/league/fanart/xpwsrw1421853005.jpg Link
Medium 500px height "/images/media/league/fanart/xpwsrw1421853005.jpg/medium Link
Small 250px height "/images/media/league/fanart/xpwsrw1421853005.jpg/small Link
Preview 200px height "/images/media/league/fanart/xpwsrw1421853005.jpg/preview Link
Tiny 50px height "/images/media/league/badge/pdd43f1610891709.png/tiny Link

Show Content

Print this item

Exclamation Changes between API V1 and API V2 (migration assistance)
Posted by: TheSportsDBFan - 08-17-2024, 12:04 AM - Forum: Developing - TheSportsDB.com - No Replies

Understanding the new API V2 Features:

Important: If you want to access the API V2 with inserting the API key in the URL =>  thats not longer supported!  You need to check the "CORS" section in this post!

New Features:

Placeholder..



CORS: (Cross-Origin Resource Sharing)

Understanding CORS Preflight Requests: Cross-Origin Resource Sharing (CORS) is a fundamental concept in web development, crucial for enabling secure and controlled access to resources across different domains. At the heart of this mechanism is the CORS preflight request, an essential process that browsers perform to ensure that a client-side web application can safely request resources from a server hosted on a different origin. Understanding this process is key for developers, especially when faced with the common ‘blocked by CORS policy’ error, which indicates a misconfiguration in CORS settings.

Preflight requests use the HTTP OPTIONS method, and they include headers that specify the HTTP method and headers that the actual request will use. When a server receives a preflight request, it responds with the appropriate CORS headers to indicate whether or not the actual request is allowed.

How CORS Preflight Requests are Triggered: CORS preflight requests are triggered automatically by the browser under certain conditions. These conditions include: HTTP methods other than GET, HEAD, or POST. POST requests with content types other than application/x-www-form-urlencoded, multipart/form-data, or text/plain. Requests that set custom headers. For example, a client application making a POST request with JSON data to a server on a different domain will trigger a preflight request. This is because the content type application/json is not one of the simple types, and thus the browser needs to confirm that the server accepts requests of this nature.

   

Wikipedia: https://en.wikipedia.org/wiki/Cross-orig...ce_sharing



Here a Example for Javascript - Jquery: (to get league data)

Code:
//Get League Data
//change 00000000 => to your API KEY!

var fbURLv2="https://www.thesportsdb.com/api/v2/json/all/leagues";
var commentdata = "";
$.ajax({
    url: fbURLv2,
    data: "message="+commentdata,
    dataType: "json",
    type: 'POST',
    beforeSend: function(xhr) {
        xhr.setRequestHeader('X-API-KEY', '00000000');
        xhr.setRequestHeader('Content-Type', 'application/json');
    },
    // If success         
    success: function (resp) {
        console.log(resp);
    },
    // If error
    error: function(e) {
        console.log(e);
    }
});

The most important part is: (It is important to send the authentication before retrieving further data)

Code:
    beforeSend: function(xhr) {
        xhr.setRequestHeader('X-API-KEY', '00000000');
        xhr.setRequestHeader('Content-Type', 'application/json');
    },

You can also set this once for all calls: (Through ajax setup it is automatically added to every call)

Code:
$.ajaxSetup({
    beforeSend: function(xhr) {
        xhr.setRequestHeader('X-API-KEY': '00000000');
    }
});



Here is a Example from PHP:  (Function for GET, POST, PUT & DELETE)

Code:
//Function for API Calls Version 2
function callAPI($method, $url, $data, $api_key)
{
    $curl = curl_init();
    switch (strtoupper($method)) {
        case "POST":
            curl_setopt($curl, CURLOPT_POST, 1);
            if ($data) {
                curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
            }
            break;
        case "PUT":
            curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT");
            if ($data) {
                curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
            }
            break;
        default:
            if ($data) {
                $url = sprintf("%s?%s", $url, http_build_query($data));
            }
    }
    // OPTIONS:
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_HTTPHEADER, [
        "X-API-KEY:" .$api_key,
        "Content-Type: application/json",
    ]);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
    // EXECUTE:
    $result = curl_exec($curl);
    if (!$result) {
        die("Connection Failure");
    }
    curl_close($curl);
    return $result;
}

The most important part is: ($api_key = Your API Key)

Code:
    curl_setopt($curl, CURLOPT_HTTPHEADER, [
        "X-API-KEY:" .$api_key,
        "Content-Type: application/json",
    ]);

PHP Example to get all Sports: (with the function)

Code:
//Your Api Key
$api_key = "00000";
$get_data = callAPI('GET', 'https://www.thesportsdb.com/api/v2/json/all/sports', false, $api_key);
$response = json_decode($get_data, true);
try {
    $sports_data = $response;
}
catch(Exception $e) {
    $errors = $response['Message'];
    echo "<p>Error API: " . htmlspecialchars($errors) . "</p>";
    echo "<p>Error PHP: " . htmlspecialchars($e->getMessage(), ENT_QUOTES, 'UTF-8') . "</p>";
    throw new Exception('Failed to fetch data from the API.');
    exit;
}
// Loop through each sport and display the name and image
foreach ($sports_data['all'] as $sport) {
    $sport_name = htmlspecialchars($sport['strSport']); // Get and sanitize the sport name
    $sport_img = $sport['strSportThumb']; // Get the sport image URL from strSportThumb
    // Display the sport image and name
    echo "
        <div class='sport-item'>
            <div class='sport-image' style='background-image: url(" . htmlspecialchars($sport_img) . ");'>
                <div class='sport-name'>" . htmlspecialchars($sport_name) . "</div>
            </div>
        </div>
    ";
}

Download this example with much more Code: PHP TSDB TV-Guide (Vilhao)
Live Example: https://tsdb.club/Presentation_of_projec...isplay.php
Source - Presentation of your projects: [WebProject - API V1+V2] TSDB TV-Guide (Vilhao)
Task - Community: Whoever develops the script further, not only makes it more beautiful, but also allows you to click on events, view the players in detail and find out details about the broadcasters... will receive an API KEY from me for 1 year. However, the project must be made available for everyone to use for at least 1 year and presented on this page. (Begin: DD/MM/YY GMT+2 20.08.2024 23:15:00)



Here is a Example from Python:  (to get league data)

Code:
### Get League Data
### Change 00000000 => to your API KEY!

import requests

url = "https://www.thesportsdb.com/api/v2/json/all/leagues"
api_key = 00000000

headers = {
    "X-API-KEY": f"{api_key}",
    "Content-Type": "application/json"
}

response = requests.get(url, headers = headers)

if response.status_code == 200:
    print(response.json())
else:
    print(f"Request failed with status code: {response.status_code}")

The most important part:

Code:
headers = {
    "X-API-KEY": f"{api_key}",
    "Content-Type": "application/json"
}

Presented more simply:

Code:
headers = {
    "X-API-KEY": "00000000",
    "Content-Type": "application/json"
}



Our Rest Api Tool: (Your Api Key is save) - Full Version: API Tester



Browser extension test: (Talend API Tester Website: https://chromewebstore.google.com/detail...liamlcdmfm)

   
Please use: X-API-KEY and not  X_API_KEY


Or simpler, online web service: https://httpie.io/ (click Go to App)

   
   
Please use: X-API-KEY and not  X_API_KEY


Server:

If you want to allow requests for your project, you can activate CORS in your PHP script. (server side)
Simple call the functions cors() each time.

PHP Code:
<?php 
function cors() {
   
   
// Allow from any origin
    if (isset($_SERVER['HTTP_ORIGIN'])) {
        // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one
        // you want to allow, and if so:
        header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
        header('Access-Control-Allow-Credentials: true');
        header('Access-Control-Max-Age: 86400');    // cache for 1 day
    }
   
   
// Access-Control headers are received during OPTIONS requests
    if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
       
       
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
            // may also be using PUT, PATCH, HEAD etc
            header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
       
       
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
            header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}");
   
       
exit(0);
    }
   
   
echo "You have CORS!";
}

Print this item

  LED Sports + Stock Ticker
Posted by: TheSportsDBFan - 08-16-2024, 11:51 PM - Forum: Presentation of your projects - No Replies

Desk sized LED ticker that could display all kinds of information. From stock, crypto, forex prices, to news, weather and finally sports! The ticker consists of two 64x32 P3 LED matrix panels, a Raspberry Pi 3 A+, 5V 14A power supply and a custom 3D printed frame to put all the parts together.

Website: https://fintic.io/
Instagram: https://www.instagram.com/fintic.io/



Attached Files Thumbnail(s)
   
Print this item

  Python SDK for TheSportsDB.com (Tralah)
Posted by: TheSportsDBFan - 08-16-2024, 11:36 PM - Forum: Presentation of your projects - No Replies

Python SDK to connect to the api of https://thesportsdb.com/ - TheSportsDB Python SDK

Download: Github: https://github.com/TralahM/thesportsdb
Developer: Tralah M Brian
Github Profile: https://github.com/TralahM

Print this item

  PHP Library for TheSportsDB.com (Nikolai)
Posted by: TheSportsDBFan - 08-16-2024, 11:27 PM - Forum: Presentation of your projects - No Replies

PHP Library to connect to the api of https://thesportsdb.com/ - TheSportsDB PHP library

Download: Github: https://github.com/nkl-kst/the-sports-db
Developer: Nikolai Keist
Github Profile: https://github.com/nkl-kst

Features:

- Get data for lists, livescores, lookups, schedules, searches or video highlights 
- Get results in serialized classes 
- Use your own API key 
- Throttle long-running scripts 
- Use PSR-4 autoloading 
- Supports PHP 7.4+

Print this item

  Game - Not Football League (mknoll1)
Posted by: TheSportsDBFan - 08-16-2024, 11:16 PM - Forum: Presentation of your projects - No Replies

A litte browser game.

Website:  https://knollfear.github.io/NotNFL/
Developer: mknoll1
Github Profile: -



Attached Files Thumbnail(s)
   
Print this item

  TV Guide (cysports)
Posted by: TheSportsDBFan - 08-16-2024, 11:09 PM - Forum: Presentation of your projects - No Replies

This is designed to be a progressive web-app so looks best on a mobile device (if you're running an iPhone, you can save this to your homescreen and it will work as an app)

Website: https://www.cysports.co.uk/
Developer: cysports
Buy me a coffee: https://buymeacoffee.com/cysports



Attached Files Thumbnail(s)
   
Print this item

  Screensaver (enen92)
Posted by: TheSportsDBFan - 08-16-2024, 11:01 PM - Forum: Presentation of your projects - No Replies

A football panel made for Kodi. Livescores, League tables and RSS feeds as a screensaver or program addon. Fully customizable, each item is updated on time intervals and scrolls through the screen. Presents the team logos, score, goal details, time and redcards. Powered by https://www.thesportsdb.com

Download: Github: https://github.com/enen92/script.screensaver.football.panel
Developer: enen92
Github Profile: https://github.com/enen92
Support: https://forum.kodi.tv/showthread.php?tid=258252



Attached Files Thumbnail(s)
   
Print this item

  Python Module for TheSportsDB.com (enen92)
Posted by: TheSportsDBFan - 08-16-2024, 10:55 PM - Forum: Presentation of your projects - No Replies

A python module packaged as a Kodi script module to wrap all thesportsdb API methods and for you to use on your own addon. 
An API key is required.

Download: Github: https://github.com/enen92/script.module.thesportsdb
Developer: enen92
Github Profile: https://github.com/enen92

Print this item

  PHP Library for TheSportsDB.com (Jelle)
Posted by: TheSportsDBFan - 08-16-2024, 10:48 PM - Forum: Presentation of your projects - No Replies

PHP Library to connect to the api of https://thesportsdb.com/

Download: Github: https://github.com/Jelle-S/TheSportsDb
Developer: Jelle Sebreghts
Github Profile: https://github.com/Jelle-S

Example Code:

PHP Code:
<?php

include_once __DIR__ . '/default_bootstrap.php';

// Get all sports.
$sports = $db->getSports();

// Print the first sport.
$sport = reset($sports);
print_r($sport->raw());

// Get the leagues of this sport (lazy loaded).
$leagues = $sport->getLeagues();

// Print the first league.
$league = reset($leagues);
print_r($league->raw());

// Get the seasons for this league.
$seasons = $league->getSeasons();

// Print the first season.
$season = reset($seasons);
print_r($season->raw());

// Get the events for this league.
$events = $season->getEvents();

// Print the first event.
$event = reset($events);
// Trigger lazy load, the full event object will be loaded when calling $event->raw().
$event->getName();
print_r($event->raw());

Print this item

Latest Download Submissions Go to All Downloads
Web - My Sports Handbook (g36mitchell) - Submitted by TheSportsDBFan
Submit Date: 08-22-2024, 08:30 PM | Category: Tools and Scripts
PlexSportScanner (Project-Plex) V.0.9.1 - Submitted by TheSportsDBFan
Submit Date: 08-21-2024, 09:54 PM | Category: Plex Plugins
The Sports Database Python- metadata.thesportsdb.python V.1.1.7 - Submitted by TheSportsDBFan
Submit Date: 08-21-2024, 09:16 PM | Category: Kodi Addons
PHP TSDB TV-Guide (Vilhao) - Submitted by TheSportsDBFan
Submit Date: 08-20-2024, 08:53 PM | Category: Tools and Scripts
Texturecache.py V.1.0.0 - Submitted by TheSportsDBFan
Submit Date: 08-16-2024, 10:15 PM | Category: Tools and Scripts