Welcome to the official Livesport API documentation. Our REST API provides access to sports matches, live streams, and related data in JSON format.
The API is free to use with no authentication required. Here's how to get started:
fetch('https://livesport.su/api/matches/football')
.then(response => response.json())
.then(matches => {
console.log(matches);
if (matches.length > 0) {
const match = matches[0];
fetch(`https://livesport.su/api/matches/${match.id}/detail`)
.then(response => response.json())
.then(detail => console.log(detail))
.catch(error => console.error('Error fetching match detail:', error));
}
})
.catch(error => console.error('Error fetching matches:', error));| Resource | Description | Documentation |
|---|---|---|
| /api/matches/... | Sports events data | Matches |
| /api/sports | Available sports categories | Sports |