API Documentation
Welcome to the official Streamed API documentation. Our REST API provides access to sports matches, live streams, and related data in JSON format.
Quick Start
The API is free to use with no authentication required. Here's how to get started:
Basic Usage Example
// Example: Fetch all football matches
fetch('https://streamed.pk/api/matches/football')
.then(response => response.json())
.then(matches => {
console.log(matches);
// Get streams for the first match
if (matches.length > 0) {
const match = matches[0];
const source = match.sources[0];
fetch(`https://streamed.pk/api/stream/${source.source}/${source.id}`)
.then(response => response.json())
.then(streams => console.log(streams))
.catch(error => console.error('Error fetching streams:', error));
}
})
.catch(error => console.error('Error fetching matches:', error));
API Guidelines
- All endpoints return JSON data
- No authentication required
- Current rate limits: None (may change in the future)
- HTTP status codes follow standard conventions (200 OK, 404 Not Found, etc.)
- Use appropriate error handling in your applications