SportXAPI

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.

Paid API URLhttps://apiv2.sportsxapi.com
Free/demo URLhttps://api.sportsxapi.com
AuthX-API-Key
Formatapplication/json

Getting 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
curl -H "X-API-Key: YOUR_KEY" \
  https://apiv2.sportsxapi.com/cricket/api/v2/match/schedule?status=live
Tip

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.

HeaderRequiredDescription
X-API-KeyYesYour SportXAPI key from the dashboard.
AcceptNoUse application/json for JSON clients.

Rate limits

Paid keys are checked against their plan limits. Demo requests are limited per endpoint and IP address.

PlanTypical useNotes
Free / demoTesting and prototypesSmall per-endpoint allowance.
Starter / ProApps, widgets and dashboardsMonthly usage tracked automatically.
EnterpriseHigh volume productsCustom limits and priority support.

Errors

Errors use normal HTTP status codes and a JSON message.

StatusMeaningFix
400Bad requestCheck parameters and JSON body.
401Missing or invalid keySend a valid X-API-Key.
403Plan restrictedUpgrade or request access.
429Limit reachedWait for reset or upgrade plan.
5xxTemporary backend issueRetry 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.

#EndpointUse caseAccessTier
1GET /cricket/api/v2/match/featuredFeatured Matches
Curated list of featured live, upcoming, and recently finished matches.
Public democore
2GET /cricket/api/v2/match/:matchId/liveLive Score
Realtime score payload for a live match, including overs, run-rate, and phase.
API keycore
3GET /cricket/api/v2/match/:matchId/scoreboardScorecard
Full scoreboard - batting/bowling cards, fall of wickets, partnership view.
API keycore
4GET /cricket/api/v2/match/:matchId/streamLive Stream (SSE)
Server-Sent Events stream for live matches. Keeps a heartbeat until the game ends.
API keycore
5GET /cricket/api/v2/match/:matchId/commentaryCommentary (v2)
Text commentary page, filterable by innings and over range.
API keydepth
6GET /cricket/api/v3/commentary/:matchIdCommentary (v3)
Versioned commentary endpoint with condensed framing around the same cursor params.
API keydepth
7GET /cricket/api/v2/match/:matchId/commentary/ballByBallBall-by-Ball
Per-ball sequence for a commentary page.
API keydepth
8GET /cricket/api/v2/match/:matchId/highlightsHighlights
Highlight events for a match.
API keydepth
9GET /cricket/api/v2/match/:matchId/last12ballsLast 12 Balls
Rolling window of the most recent 12 deliveries.
API keycore
10GET /cricket/api/v2/match/:matchId/detailsMatch Details
Structured details, venue, toss, officials and squad context.
API keydepth
11GET /cricket/api/v2/match/:matchId/graphWorm / Graph
Run progression graph payload for charts.
API keydepth
12GET /cricket/api/v2/match/:matchId/winning-percentageWin Probability
Winning percentage over time when available.
API keydepth
13GET /cricket/api/v2/match/:matchId/team-head2headHead-to-Head
Recent head-to-head between the two teams.
API keydepth
14GET /cricket/api/v2/match/:matchId/team-last-fiveLast Five
Last five matches for each side.
API keydepth
15GET /cricket/api/v2/match/:matchId/summerySummary
Condensed summary; path kept as /summery for compatibility.
API keydepth
16GET /cricket/api/v2/match/:matchId/team-analysisTeam Analysis
Computed matchup analysis context.
API keydepth
17GET /cricket/api/v2/match/:matchId/team-recordsTeam Records
Historical team records scoped to the fixture.
API keydepth
18GET /cricket/api/v2/match/:matchId/top-pickTop Pick
Editorial top picks for the match.
API keydepth
19GET /cricket/api/v2/match/:matchId/player-recordPlayer Records
Player head-to-heads and matchup records.
API keydepth
20GET /cricket/api/v2/match/:matchId/stadiumv2Venue Profile
Venue profile anchored to a match.
API keydepth

Schedules

Fixtures by status and type.

#EndpointUse caseAccessTier
21GET /cricket/api/v2/match/scheduleSchedule (v2)
Paginated schedule with status/type filters.
Public democore
22GET /cricket/api/v3/match/scheduleSchedule (v3)
Versioned schedule endpoint.
Public democore

Series & Tournaments

Browse competitions, squads, fixtures and standings.

#EndpointUse caseAccessTier
23GET /cricket/api/v2/seriesSeries List
Paginated series list.
Public democore
24GET /cricket/api/v2/series/allSeries All
Extended series listing.
Public democore
25GET /cricket/api/v2/series/homeSeries Home
Homepage-curated series bucket.
Public democore
26GET /cricket/api/v3/seriesSeries List (v3)
Versioned series list with month windowing.
Public democore
27GET /cricket/api/v2/series/:seriesId/staticsSeries Info
Metadata for a series.
API keydepth
28GET /cricket/api/v2/series/:seriesId/matchesSeries Fixtures
All matches in a series.
API keydepth
29GET /cricket/api/v2/series/:seriesId/squadsSeries Squads
Squads declared for the series.
API keydepth
30GET /cricket/api/v2/series/:seriesId/point-tablePoints Table
Standings / points table.
API keydepth
31GET /cricket/api/v2/series/:seriesId/stadiumsSeries Venues
Venues hosting the series.
API keydepth

Teams & Venues

Team profiles, form lines, squads and venue lookups.

#EndpointUse caseAccessTier
32GET /cricket/api/v2/teams/favoritesFavourite Teams
Curated favourite teams list.
Public democore
33GET /cricket/api/v2/team/info/:teamIdTeam Info
Team information card.
API keydepth
34GET /cricket/api/v2/team/:teamIdTeam Profile
Full team profile.
API keydepth
35GET /cricket/api/v2/team/:teamId/recentTeam Recent Form
Recent fixtures involving this team.
API keydepth
36GET /cricket/api/v2/team/:teamId/scheduleTeam Schedule
Fixtures filtered to a single team.
API keydepth
37GET /cricket/api/v2/team/:teamId/statsTeam Statistics
Aggregated team statistics.
API keydepth
38GET /cricket/api/v2/team/:teamId/squadsTeam Squads
Squads linked to this team.
API keydepth
39GET /cricket/api/v2/stadium/:stadiumIdVenue Lookup
Stadium / venue detail lookup.
API keydepth

Players

Player profiles, form and fantasy relevance.

#EndpointUse caseAccessTier
40GET /cricket/api/v2/player/:playerIdPlayer Profile
Biography, role and career metadata.
API keydepth
41GET /cricket/api/v2/player/:playerId/recentPlayer Recent Matches
Recent fixtures for a player.
API keydepth
42GET /cricket/api/v2/player/:playerId/fantasy/matchesFantasy Matches
Fantasy-relevant matches for the player.
API keydepth

Rankings

Ranking feeds for teams and individuals.

#EndpointUse caseAccessTier
43GET /cricket/api/v2/ranking/menMen Individual Rankings v2
Men's batting, bowling and all-rounder rankings.
Public demoreference
44GET /cricket/api/v2/ranking/womenWomen Individual Rankings v2
Women's individual rankings.
Public demoreference
45GET /cricket/api/v2/ranking/teamTeam Rankings v2
Team rankings v2.
Public demoreference
46GET /cricket/api/v3/ranking/menMen Rankings v3
Versioned men's ranking endpoint.
Public demoreference
47GET /cricket/api/v3/ranking/womenWomen Rankings v3
Versioned women's ranking endpoint.
Public demoreference
48GET /cricket/api/v3/ranking/team/menTeam Men v3
Versioned men's team rankings.
Public demoreference
49GET /cricket/api/v3/ranking/team/womenTeam Women v3
Versioned women's team rankings.
Public demoreference

News & Shorts

Editorial news, article details and short-form items.

#EndpointUse caseAccessTier
50GET /cricket/api/v2/newsNews Feed
Paginated cricket news feed.
Public demodepth
51GET /cricket/api/v2/news/details/:idArticle Details
Single article payload.
Public demodepth
52GET /cricket/api/v2/news/shortsShorts
Cursor-paginated short news.
Public demodepth

Typeahead/search for players and teams.

#EndpointUse caseAccessTier
53GET /cricket/api/v2/search/playerSearch Players
Player search by query string.
Public demoutility
54GET /cricket/api/v2/search/teamSearch Teams
Team search by query string.
Public demoutility

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.

Building endpoint reference.

SDK examples

Node.js
const res = await fetch(url, {
  headers: { "X-API-Key": process.env.SPORTXAPI_KEY }
});
const data = await res.json();
Python
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.