https://api.xportapi.com/v1 XportAPI Reference
The XportAPI REST service delivers unified sports fixture schedules, live scores, team emblems, and direct playable HLS (.m3u8) video proxy streams. Every stream is stripped of intrusive commercial ads and monitored by real-time automated verification bots.
Authentication
Every endpoint (with the exception of /health) requires a valid API key. You can authenticate using either an HTTP request header or a query parameter:
?key=YOUR_API_KEY x-api-key: YOUR_API_KEY /matches will automatically filter out unassigned sports. Requesting an unallocated sport will yield a 403 Forbidden response listing the sports permitted by your tier. Unrestricted enterprise keys view all sports by default.
/matches
Returns real-time schedules, match metadata, and live scores across all sports or filtered by specific sport, status, and verification level.
| Parameter | Example | Description |
|---|---|---|
| sport | sport=football or sport=1 | Filter to one sport. Omit for all allocated sports. |
| status | status=live,scheduled | Filter by status: live, scheduled, finished. Comma-separated. |
| live | live=1 | Shorthand filter for matches currently in-play. |
| playable | playable=1 | Only return matches with an active stream and not yet finished. |
| verified | verified=1 | Only matches whose stream has been probed and confirmed alive by health bots. |
| lang | lang=es or lang=2 | Translates league and country names into target language. |
| sort | sort=time or sort=-time | Sort by kickoff time. Default: live matches first. |
| limit | limit=20 | Caps result count. |
{
"status": "success",
"data": {
"summary": { "total": 430, "live": 21, "upcoming": 303, "finished": 93, "hasStream": 44, "verified": 15 },
"matches": [
{
"id": 4435030,
"sportType": 1,
"title": "Arsenal vs Chelsea",
"status": { "label": "live" },
"league": { "name": "English Premier League", "logo": "https://cdn.xportapi.com/epl.png" },
"country": { "name": "England", "flag": "https://cdn.xportapi.com/england.png" },
"home": { "name": "Arsenal", "badge": "https://cdn.xportapi.com/arsenal.png", "score": 2 },
"away": { "name": "Chelsea", "badge": "https://cdn.xportapi.com/chelsea.png", "score": 1 },
"hasStream": true,
"verified": true,
"sourceCount": 3,
"stream": "/stream/1/4435030"
}
]
}
} /stream/{sport}/{matchId}
Resolves every active broadcast channel for the specified fixture. Returns ready-to-play proxy URLs (.m3u8) that can be piped straight into video players without client-side ffmpeg or transcoding.
{
"status": "success",
"data": {
"count": 2,
"match": {
"title": "Arsenal vs Chelsea",
"league": { "name": "English Premier League" },
"home": { "name": "Arsenal" },
"away": { "name": "Chelsea" }
},
"sources": [
{
"id": 786356,
"name": "Sky Sports Main Event HD",
"url": "https://edge-proxy.xportapi.com/live/epl_4435030_sky/index.m3u8?key=YOUR_API_KEY",
"checkedAt": "2026-11-24T02:59:12Z"
},
{
"id": 785617,
"name": "NBC Sports 1080p",
"url": "https://edge-proxy.xportapi.com/live/epl_4435030_nbc/index.m3u8?key=YOUR_API_KEY",
"checkedAt": "2026-11-24T02:58:47Z"
}
]
}
} Status Code Reference:
- 200 OK: Verified channels retrieved successfully.
- 401 Unauthorized: Missing or invalid API key.
- 403 Forbidden: Your API key tier does not include this sport category.
- 404 Not Found: No broadcast channels are currently mapped to this match ID.
- 502 Bad Gateway: Upstream origin source refused connection or blocked CDN proxy.
- 504 Gateway Timeout: Broadcast signal has not yet commenced transmission.
Returns the ID-to-Name mapping for all sport categories enabled on your API key.
{
"status": "success",
"data": {
"1": "football",
"2": "basketball",
"3": "tennis",
"4": "baseball",
"5": "motorsport",
"6": "hockey"
}
} List of language codes supported for localized league and country names (e.g. English, Arabic, Spanish).
{
"status": "success",
"data": [
{ "code": "en", "name": "English" },
{ "code": "ar", "name": "Arabic" },
{ "code": "es", "name": "Spanish" },
{ "code": "id", "name": "Indonesian" }
]
} Client Video Integration
Piping a stream into your website or web application takes less than 10 lines of vanilla JavaScript:
<!-- HTML5 Video Tag -->
<video id="video-stream" controls autoplay playsinline style="width: 100%; border-radius: 8px;"></video>
<!-- HLS.js Library -->
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script>
const video = document.getElementById('video-stream');
// Pass the source URL obtained from GET /stream/{sport}/{id}
const streamUrl = 'https://edge-proxy.xportapi.com/live/epl_4435030/index.m3u8?key=YOUR_API_KEY';
if (Hls.isSupported()) {
const hls = new Hls({ enableWorker: true });
hls.loadSource(streamUrl);
hls.attachMedia(video);
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = streamUrl; // Native Safari / iOS AVPlayer
}
</script> Operational Notice & Architecture Disclaimer
XportAPI operates as a high-performance proxy routing and restreaming layer. Metadata, team badges, and live video streams are ingested from global third-party broadcast originators; streams are stripped of original overlays and delivered through our multi-CDN proxy network.
Clients utilize this infrastructure at their own discretion and are responsible for ensuring that their playback endpoints comply with local digital media regulations.