SportXAPI cricket data API
Use SportXAPI to build live scoreboards, fantasy dashboards, media pages, betting tools and internal cricket analytics. The API exposes structured JSON for matches, series, players, rankings, commentary and live score feeds.
https://apiv2.sportsxapi.comhttps://api.sportsxapi.comX-API-Keyapplication/jsonGetting Started
Every request starts with your API key. Keep the key on your server and call SportXAPI from backend code whenever possible. Free/demo access uses api.sportsxapi.com and is capped at 100 requests per month; paid plans use apiv2.sportsxapi.com.
curl -H "X-API-Key: YOUR_KEY" \
https://apiv2.sportsxapi.com/cricket/api/v2/match/schedule?status=live
Use the dashboard to manage keys, billing status and plan limits. Demo previews on this docs page are rate-limited and do not expose a production key.
Authentication
Send the key in the request header. If the key is missing, invalid, revoked or expired, the API returns 401.
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your SportXAPI key from the dashboard. |
Accept | No | Use application/json for JSON clients. |
Rate limits
Paid keys are checked against their plan limits. Demo requests are limited per endpoint and IP address.
| Plan | Typical use | Notes |
|---|---|---|
| Free / demo | Testing and prototypes | Small per-endpoint allowance. |
| Starter / Pro | Apps, widgets and dashboards | Monthly usage tracked automatically. |
| Enterprise | High volume products | Custom limits and priority support. |
Errors
Errors use normal HTTP status codes and a JSON message.
| Status | Meaning | Fix |
|---|---|---|
400 | Bad request | Check parameters and JSON body. |
401 | Missing or invalid key | Send a valid X-API-Key. |
403 | Plan restricted | Upgrade or request access. |
429 | Limit reached | Wait for reset or upgrade plan. |
5xx | Temporary backend issue | Retry with backoff. |
API Collection
SportXAPI currently exposes 54 public cricket endpoints across live matches, schedules, series, teams, players, rankings, news and search. This catalog is generated from the backend route metadata so the documentation matches the live API.
Live Matches & Ball-by-Ball
Realtime match state, live stream, commentary, and scoring analytics.
| # | Endpoint | Use case | Access | Tier |
|---|---|---|---|---|
| 1 | GET /cricket/api/v2/match/featured | Featured Matches Curated list of featured live, upcoming, and recently finished matches. | Public demo | core |
| 2 | GET /cricket/api/v2/match/:matchId/live | Live Score Realtime score payload for a live match, including overs, run-rate, and phase. | API key | core |
| 3 | GET /cricket/api/v2/match/:matchId/scoreboard | Scorecard Full scoreboard - batting/bowling cards, fall of wickets, partnership view. | API key | core |
| 4 | GET /cricket/api/v2/match/:matchId/stream | Live Stream (SSE) Server-Sent Events stream for live matches. Keeps a heartbeat until the game ends. | API key | core |
| 5 | GET /cricket/api/v2/match/:matchId/commentary | Commentary (v2) Text commentary page, filterable by innings and over range. | API key | depth |
| 6 | GET /cricket/api/v3/commentary/:matchId | Commentary (v3) Versioned commentary endpoint with condensed framing around the same cursor params. | API key | depth |
| 7 | GET /cricket/api/v2/match/:matchId/commentary/ballByBall | Ball-by-Ball Per-ball sequence for a commentary page. | API key | depth |
| 8 | GET /cricket/api/v2/match/:matchId/highlights | Highlights Highlight events for a match. | API key | depth |
| 9 | GET /cricket/api/v2/match/:matchId/last12balls | Last 12 Balls Rolling window of the most recent 12 deliveries. | API key | core |
| 10 | GET /cricket/api/v2/match/:matchId/details | Match Details Structured details, venue, toss, officials and squad context. | API key | depth |
| 11 | GET /cricket/api/v2/match/:matchId/graph | Worm / Graph Run progression graph payload for charts. | API key | depth |
| 12 | GET /cricket/api/v2/match/:matchId/winning-percentage | Win Probability Winning percentage over time when available. | API key | depth |
| 13 | GET /cricket/api/v2/match/:matchId/team-head2head | Head-to-Head Recent head-to-head between the two teams. | API key | depth |
| 14 | GET /cricket/api/v2/match/:matchId/team-last-five | Last Five Last five matches for each side. | API key | depth |
| 15 | GET /cricket/api/v2/match/:matchId/summery | Summary Condensed summary; path kept as /summery for compatibility. | API key | depth |
| 16 | GET /cricket/api/v2/match/:matchId/team-analysis | Team Analysis Computed matchup analysis context. | API key | depth |
| 17 | GET /cricket/api/v2/match/:matchId/team-records | Team Records Historical team records scoped to the fixture. | API key | depth |
| 18 | GET /cricket/api/v2/match/:matchId/top-pick | Top Pick Editorial top picks for the match. | API key | depth |
| 19 | GET /cricket/api/v2/match/:matchId/player-record | Player Records Player head-to-heads and matchup records. | API key | depth |
| 20 | GET /cricket/api/v2/match/:matchId/stadiumv2 | Venue Profile Venue profile anchored to a match. | API key | depth |
Schedules
Fixtures by status and type.
| # | Endpoint | Use case | Access | Tier |
|---|---|---|---|---|
| 21 | GET /cricket/api/v2/match/schedule | Schedule (v2) Paginated schedule with status/type filters. | Public demo | core |
| 22 | GET /cricket/api/v3/match/schedule | Schedule (v3) Versioned schedule endpoint. | Public demo | core |
Series & Tournaments
Browse competitions, squads, fixtures and standings.
| # | Endpoint | Use case | Access | Tier |
|---|---|---|---|---|
| 23 | GET /cricket/api/v2/series | Series List Paginated series list. | Public demo | core |
| 24 | GET /cricket/api/v2/series/all | Series All Extended series listing. | Public demo | core |
| 25 | GET /cricket/api/v2/series/home | Series Home Homepage-curated series bucket. | Public demo | core |
| 26 | GET /cricket/api/v3/series | Series List (v3) Versioned series list with month windowing. | Public demo | core |
| 27 | GET /cricket/api/v2/series/:seriesId/statics | Series Info Metadata for a series. | API key | depth |
| 28 | GET /cricket/api/v2/series/:seriesId/matches | Series Fixtures All matches in a series. | API key | depth |
| 29 | GET /cricket/api/v2/series/:seriesId/squads | Series Squads Squads declared for the series. | API key | depth |
| 30 | GET /cricket/api/v2/series/:seriesId/point-table | Points Table Standings / points table. | API key | depth |
| 31 | GET /cricket/api/v2/series/:seriesId/stadiums | Series Venues Venues hosting the series. | API key | depth |
Teams & Venues
Team profiles, form lines, squads and venue lookups.
| # | Endpoint | Use case | Access | Tier |
|---|---|---|---|---|
| 32 | GET /cricket/api/v2/teams/favorites | Favourite Teams Curated favourite teams list. | Public demo | core |
| 33 | GET /cricket/api/v2/team/info/:teamId | Team Info Team information card. | API key | depth |
| 34 | GET /cricket/api/v2/team/:teamId | Team Profile Full team profile. | API key | depth |
| 35 | GET /cricket/api/v2/team/:teamId/recent | Team Recent Form Recent fixtures involving this team. | API key | depth |
| 36 | GET /cricket/api/v2/team/:teamId/schedule | Team Schedule Fixtures filtered to a single team. | API key | depth |
| 37 | GET /cricket/api/v2/team/:teamId/stats | Team Statistics Aggregated team statistics. | API key | depth |
| 38 | GET /cricket/api/v2/team/:teamId/squads | Team Squads Squads linked to this team. | API key | depth |
| 39 | GET /cricket/api/v2/stadium/:stadiumId | Venue Lookup Stadium / venue detail lookup. | API key | depth |
Players
Player profiles, form and fantasy relevance.
| # | Endpoint | Use case | Access | Tier |
|---|---|---|---|---|
| 40 | GET /cricket/api/v2/player/:playerId | Player Profile Biography, role and career metadata. | API key | depth |
| 41 | GET /cricket/api/v2/player/:playerId/recent | Player Recent Matches Recent fixtures for a player. | API key | depth |
| 42 | GET /cricket/api/v2/player/:playerId/fantasy/matches | Fantasy Matches Fantasy-relevant matches for the player. | API key | depth |
Rankings
Ranking feeds for teams and individuals.
| # | Endpoint | Use case | Access | Tier |
|---|---|---|---|---|
| 43 | GET /cricket/api/v2/ranking/men | Men Individual Rankings v2 Men's batting, bowling and all-rounder rankings. | Public demo | reference |
| 44 | GET /cricket/api/v2/ranking/women | Women Individual Rankings v2 Women's individual rankings. | Public demo | reference |
| 45 | GET /cricket/api/v2/ranking/team | Team Rankings v2 Team rankings v2. | Public demo | reference |
| 46 | GET /cricket/api/v3/ranking/men | Men Rankings v3 Versioned men's ranking endpoint. | Public demo | reference |
| 47 | GET /cricket/api/v3/ranking/women | Women Rankings v3 Versioned women's ranking endpoint. | Public demo | reference |
| 48 | GET /cricket/api/v3/ranking/team/men | Team Men v3 Versioned men's team rankings. | Public demo | reference |
| 49 | GET /cricket/api/v3/ranking/team/women | Team Women v3 Versioned women's team rankings. | Public demo | reference |
News & Shorts
Editorial news, article details and short-form items.
| # | Endpoint | Use case | Access | Tier |
|---|---|---|---|---|
| 50 | GET /cricket/api/v2/news | News Feed Paginated cricket news feed. | Public demo | depth |
| 51 | GET /cricket/api/v2/news/details/:id | Article Details Single article payload. | Public demo | depth |
| 52 | GET /cricket/api/v2/news/shorts | Shorts Cursor-paginated short news. | Public demo | depth |
Search
Typeahead/search for players and teams.
| # | Endpoint | Use case | Access | Tier |
|---|---|---|---|---|
| 53 | GET /cricket/api/v2/search/player | Search Players Player search by query string. | Public demo | utility |
| 54 | GET /cricket/api/v2/search/team | Search Teams Team search by query string. | Public demo | utility |
Endpoint Reference
Each endpoint below includes the live request URL, authentication note, parameters and a fresh 200 OK response body generated from the production API. Image fields are served through cdn.sportxapi.com.
SDK examples
const res = await fetch(url, {
headers: { "X-API-Key": process.env.SPORTXAPI_KEY }
});
const data = await res.json();r = requests.get(url, headers={
"X-API-Key": SPORTXAPI_KEY
})
print(r.json())Webhooks
Webhooks are reserved for billing events and future account automation. Cricket data delivery currently uses REST and SSE.
Changelog
Response contract unified to v2: every endpoint now returns a bare data object (envelope removed) with camelCase keys and null for missing values. Endpoint reference refreshed with 54/54 live samples.
Endpoint reference updated with 54/54 live response samples, CDN image URLs and copy response actions.
Docs rebuilt with a clean GitBook-style layout and live demo endpoint preview.
Demo API proxy connected through rate-limited demo mode without exposing private keys.
Added commentary, graph, scorecard and live-stream reference sections.