AL
ALB365
Integration Guide

Live Sports Streaming

Embed live video of thousands of matches per month. Event ids are the same as in the Odds Feed, so every stream maps to its match automatically.

API basehttps://radar.albet365.xyz
FormatJSON
Updated27 November 2026

1Access

ItemValue
Base URLhttps://radar.albet365.xyz
AuthenticationHeader Authorization: Bearer <API key> on both /matched-events and /generate-token — server-side only
Player domainsThe player opens only on the website domains registered for your account (and their sub-domains). The browser must send a Referer (do not use referrerpolicy="no-referrer"); embed it in an <iframe> or open it in a new tab.
IP whitelistAPI calls only from your registered server IPs. The player link itself opens in the viewer's browser.

2Matches with a live stream

GET/matched-events
{ "status": "success", "data": [ "sr:match:12345678", "sr:match:12345679", … ] }

Refresh every 30–60 seconds on your server and show a TV icon on the listed matches.

3Create a player link

POST/generate-token
// request
{ "eventId": "sr:match:12345678" }
// response
{ "status": "success",
  "data": { "singleUseUrl": "/token/eyJ…", "url": "https://radar.albet365.xyz/token/eyJ…", "expiresIn": 600 } }

Show data.url in an iframe:

<iframe src="https://radar.albet365.xyz/token/eyJ…" allow="autoplay; fullscreen" allowfullscreen
        style="width:100%;aspect-ratio:16/9;border:0"></iframe>
Important. The link is single-use and valid for about 10 minutes. Create it only when a viewer opens the stream — never in advance, never shared between viewers.

4Recommended flow

  1. Backend polls GET /matched-events every 30 s and caches the list.
  2. Frontend shows a TV icon next to the listed matches (from your own backend).
  3. Viewer clicks → frontend calls your backend → your backend calls POST /generate-token.
  4. Your backend returns data.url; the frontend puts it in the iframe.
// Express (your backend)
app.post('/api/stream-url', async (req, res) => {
  const r = await fetch('https://radar.albet365.xyz/generate-token', { method: 'POST',
    headers: { Authorization: 'Bearer ' + process.env.API_KEY, 'Content-Type': 'application/json' },
    body: JSON.stringify({ eventId: req.body.matchId }) });
  const j = await r.json();
  if (!r.ok) return res.status(r.status).json({ error: j.message });
  res.json({ streamUrl: j.data.url });
});

5Limits

EndpointLimit
/matched-events60 requests / minute
/generate-tokenup to 20 links / minute per account (shared fairly when many partners are live at once) — request a link only when a viewer clicks "watch"
/token/{token}single use, 10 minutes, no IP restriction (opens in the viewer's browser)

6Errors

HTTPMeaning
400Event ID is required / not in the form sr:match:123
401Token is required
403Invalid token, IP not whitelisted, service not enabled · player: token already used
404No stream for this match right now · player: token expired or invalid
429Too many links per minute
502 / 503Temporarily unavailable — retry
{ "status": "error", "message": "No stream for this event right now" }