SkyAPI v2 Documentation

Base URL: https://skyprovider.cc/api/v2

Time Zone: All timestamps are in Indian Standard Time (IST, UTC+5:30)

WebSocket: wss://skyprovider.cc/ws/allwhitelabel

Overview

Real-time unified API providing Sports + Casino + Live Odds + Live Video data.

All data is refreshed continuously: odds every 15s, casino every 60s, sports/fixtures every 5 minutes.

Table of Contents

1. REST Endpoints 2. WebSocket Real-Time Stream 3. Live Video 4. Error Handling 5. Quick Start

REST Endpoints

1. GET /live/aggregate

Returns all data types in a single call.

GET https://skyprovider.cc/api/v2/live/aggregate
GET https://skyprovider.cc/api/v2/live/aggregate?exchange=lordsexch

Response

{
  "success": true,
  "data": {
    "meta": {
      "exchange": "all",
      "timestamp": "2026-05-21T14:09:16.193+05:30",
      "refreshIntervals": {
        "odds": "15s",
        "casino": "60s",
        "sports": "5min",
        "fixtures": "5min",
        "inplay": "15s"
      }
    },
    "stats": {
      "running": true,
      "totalOdds": 10,
      "totalCasino": 330,
      "totalFixtures": 10
    },
    "sports": { "lordsexch": [ { "id": "4", "name": "Sport 4", "eventCount": 1 } ] },
    "casino": { "lordsexch": [ { "casino": "Teenpatti 1-day", "gtype": "Teen" } ] },
    "fixtures": { "lordsexch": [ { "eid": 530263636, "ename": "Gujarat Titans v Chennai Super Kings" } ] },
    "inplay": { ... }
  }
}

2. GET /live/sports/raw

All sports with their fixtures.

GET https://skyprovider.cc/api/v2/live/sports/raw

3. GET /live/sports/:sportId

Fixtures for a specific sport.

GET https://skyprovider.cc/api/v2/live/sports/4

4. GET /live/match/:eventId

Match detail by event ID.

GET https://skyprovider.cc/api/v2/live/match/530263636?exchange=lordsexch

5. GET /live/casino/:gtype/:casino

Casino game detail (cache-based).

GET https://skyprovider.cc/api/v2/live/casino/Teen/Teenpatti%201-day?exchange=lordsexch

6. GET /live/casino/:gtype/:casino/detail

Casino game detail containing chip button settings, live market IDs (getmid), cards dealt, round information, and direct live video stream paths (both iframe embeds and raw streams).

GET https://skyprovider.cc/api/v2/live/casino/teenpatti/TeenPatti%20T20/detail?exchange=lordsexch

Response payload structure:

{
  "success": true,
  "data": {
    "exchange": "lordsexch",
    "gtype": "teenpatti",
    "casino": "TeenPatti T20",
    "source": "api",
    "api": {
      "buttonlist": [
        { "id": 1, "value": 100 },
        { "id": 2, "value": 500 },
        { "id": 3, "value": 1000 }
      ],
      "getmid": {
        "mid": "1.240604112233",
        "gtype": "teenpatti",
        "casinoName": "TeenPatti T20",
        "eventName": "TeenPatti T20"
      },
      "detail": {
        "roundId": "260604153022",
        "cards": "H1,S10,D13",
        "status": "active"
      }
    },
    "video": {
      "iframe": "https://lordsadmin.external247services.com/video/teenpatti/TeenPatti%20T20",
      "stream": "https://lordsadmin.external247services.com/live-video/teenpatti/TeenPatti%20T20"
    }
  },
  "timestamp": "2026-06-04T01:37:15.123+05:30"
}
ℹ️ Developer Note:

7. GET /live/fixtures

Upcoming matches.

GET https://skyprovider.cc/api/v2/live/fixtures

8. GET /live/inplay

In-play matches.

GET https://skyprovider.cc/api/v2/live/inplay

9. GET /live/stats

Engine statistics.

GET https://skyprovider.cc/api/v2/live/stats

10. GET /live/all

Raw hot cache dump.

GET https://skyprovider.cc/api/v2/live/all

WebSocket Real-Time Stream

Endpoint

wss://skyprovider.cc/ws/allwhitelabel

Connection Flow

  1. Connect to wss://skyprovider.cc/ws/allwhitelabel
  2. Subscribe to an exchange: { "action": "subscribe", "exchange": "lordsexch" }
  3. Receive real-time push messages when data changes

Server Push Messages

{
  "type": "odds",
  "exchange": "lordsexch",
  "data": [ ... ],
  "timestamp": "2026-05-21T14:09:16.193+05:30"
}

Live Video

Per-Event Live TV URLs

EndpointDescription
GET /api/v2/events/{eventId}/live-tvEvent live TV stream
GET /api/v2/proxy/live-tv/{eventId}Proxied live TV stream
GET /api/v2/embed/live-tv/{eventId}Embed-friendly live TV

Error Handling

Common Errors

ErrorCauseFix
Exchange not availableExchange session not readyWait 30s and retry
Fixture not foundEvent ID not in cacheCheck /live/fixtures for valid IDs
Endpoint not foundWrong API version prefixUse /api/v2/ not /api/

Health Check

GET https://skyprovider.cc/api/v2/live/stats

Quick Start

1. Get Everything

curl https://skyprovider.cc/api/v2/live/aggregate

2. Filter by Exchange

curl https://skyprovider.cc/api/v2/live/aggregate?exchange=lordsexch

3. Get Fixtures for a Sport

curl https://skyprovider.cc/api/v2/live/sports/4

4. Get Match Detail

curl https://skyprovider.cc/api/v2/live/match/530263636?exchange=lordsexch

5. Get Casino Games

curl https://skyprovider.cc/api/v2/live/casino

6. Get Casino Detail

curl "https://skyprovider.cc/api/v2/live/casino/Teen/Teenpatti%201-day/detail?exchange=lordsexch"

7. Get Live Video

curl https://skyprovider.cc/api/v2/events/530263636/live-tv