How to call the API.

Diamond uses X-Api-Key. Sports and casino use X-Aggregator-Key. Video pages also accept ?key=.

01

First calls

export KEY=your_key
export API=https://api.linkapi.tech

curl -s -H "X-Api-Key: $KEY" "$API/api/v1/me"
curl -s -H "X-Api-Key: $KEY" "$API/api/v1/events/cricket"
curl -s -H "X-Aggregator-Key: $KEY" "$API/api/sports/latest"
curl -s -H "X-Aggregator-Key: $KEY" "$API/api/sports/4/$GMID/livetv"
curl -s -H "X-Aggregator-Key: $KEY" "$API/api/casino/all"
02

Live video

JSON first. A ready player if you do not want to build one.

JSON

GET /api/sports/{etid}/{gmid}/livetv
GET /api/v1/tv/cricket/{gmid}
GET /api/casino/{gtype}/video

Player and redirect

GET /api/sports/{etid}/{gmid}/embed?key=
GET /api/sports/{etid}/{gmid}/watch?key=
GET /api/casino/{gtype}/embed?key=
03

Sockets

wss://api.linkapi.tech/ws/odds?key=$KEY&auto=1
wss://api.linkapi.tech/ws/casino?key=$KEY
wss://api.linkapi.tech/ws/scorecard?key=$KEY&eventId=EVENT_ID

Full schema · cheat sheet