All sports data & betting oddsBuild fantasy & sportsbetting fasterREST & WebSocket integration
FantasyData100 API

API documentation

Browse endpoints, parameters, responses and errors by product module.

01

Getting started

Available

Integration scope

FantasyData100 provides match data, fantasy pre-match analysis and player pools, cricket live scores and FPS, post-match FPS and scorecards, plus prematch odds and settlement for soccer, basketball and cricket, in-play odds and settlement for soccer, basketball and cricket (T20 and ODI), and WebSocket delivery of odds and settlement. Every request is checked against the API key, subscription product, sport, data module and limits.

Notes

  • Base URL: https://api.fantasydata100.com
  • All time fields use ISO 8601 UTC unless a field is explicitly documented as a Unix timestamp.
  • Tenant identity is derived from the API key. Do not send tenantId in a URL, query or body.
Available

API key authentication

All public data endpoints use a Bearer API key. Store it only on your backend, never in frontend code, mobile packages or public repositories.

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

Request example
curl "https://api.fantasydata100.com/v1/matches?sport=cricket" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • A subscription generates one active key. Regenerating it revokes the old key immediately.
  • The key scope must match the endpoint. Match lists accept matches:read, fantasy:read or sportsbook:read; fantasy player and post-match data require fantasy:read; odds and settlement require sportsbook:read.
Available

Subscription and module access

A valid API key does not grant every endpoint. The subscription product, sport coverage and data module must cover the request.

Response fields

FieldTypeDescription
Match dataFantasy + matchScore

Match list and base results; prematch odds subscriptions also include the event catalog.

Fantasy player poolFantasy + fantasyData

Players, positions, salary, avatars and pre-match points.

Fantasy venueFantasy + fantasyData

Cricket venue, pitch, scoring and historical wicket statistics.

Fantasy head-to-headFantasy + fantasyData

Cricket team head-to-head summary and collection status.

Fantasy lineupFantasy + fantasyData

Cricket Playing XI publication and collection status, plus confirmed starters for both teams.

Fantasy liveFantasy + fantasyData

Cricket live scores, innings, commentary and live fantasy points.

Post-match scorecardFantasy + fantasyData

Post-match scorecard and FPS; usable as match facts for sportsbook settlement.

Prematch oddsSportsbook + prematchOdds

Prematch events and odds for Soccer, Basketball and Cricket.

Live odds (REST)Sportsbook + liveOdds

In-play odds for Soccer, Basketball and Cricket (T20 and ODI). Live odds access includes prematch odds, so prematchOdds does not need to be enabled separately.

Realtime odds push (WebSocket)Sportsbook + websocketOdds

Prematch odds, in-play odds and settlement push for Soccer, Basketball and Cricket (cricket in-play covers T20 and ODI only). A separate access mode from REST.

Sportsbook settlementSportsbook + settlement

Soccer, Basketball and Cricket prematch market and selection settlement results, plus Cricket in-play market settlement, generated automatically after the match and also pushed over WebSocket.

Notes

  • An entitlement mismatch returns 403 product_not_enabled, sport_not_enabled or data_module_not_enabled.
  • The tenant console shows purchased sports, modules and REST limits.
Available

Rate limits and billing

REST requests are subject to both per-minute and daily limits. A request is counted after authentication and subscription entitlement checks pass.

Response example
Trial       100/min   1,000/day
Basic       200/min   10,000/day per sport and data category
Pro         500/min   80,000/day per sport and data category
Enterprise  unlimited by default

Notes

  • Basic and Pro daily quotas scale with the number of sports times the number of data categories selected, and Pro is eight times Basic. For example, Basic with football and basketball and the schedule, prematch odds and settlement categories gets 2 x 3 x 10,000 = 60,000 requests a day. REST traffic packages add 1, 3 or 6 times the Basic quota of the same selection, for Basic and Pro alike.
  • Daily windows are UTC calendar days. Enterprise is unlimited by default and can receive custom contractual limits later.
  • A request that passes authentication and entitlement checks but later returns 404 is still billable; 401, 403 and 429 do not enter the data query.
  • WebSocket odds and settlement push for Soccer, Basketball and Cricket does not consume REST quota; querying REST after a push does.
  • Cricket Fantasy supports WebSocket prematch, live and full-result delivery, plus Result Webhook notifications, subject to subscription permissions. Push messages do not consume REST quota; fetching a full result after a Webhook notification does.
Available

Data conventions and units

Use these conventions when handling fantasy prices, points and event timestamps.

Response fields

FieldTypeDescription
sportstring

Match/Fantasy APIs use soccer, basketball or cricket.

priceCreditsMinorinteger

Price minor unit. 100 = 1.00 credit; for example 975 = 9.75.

sourcePointsMinor / fpsPointsMinorinteger

Point minor unit. 100 = 1.00 point; for example 11250 = 112.50.

timestring

Odds event timestamp in Unix seconds as a string.

Available

Sport type mapping

Match lists use the sport string for filtering. Match-specific endpoints identify the sport through the platform matchId.

Response fields

FieldTypeDescription
Soccersport=soccer / sf########

Match data, prematch odds, in-play odds, prematch settlement, and WebSocket push of odds and settlement are available.

Cricketsport=cricket / cf########

Match data, fantasy pre-match analysis and player pool, post-match scorecard/FPS, stored prematch odds, cricket prematch settlement, and in-play odds and in-play market settlement for T20 and ODI are available (Tests are not offered). WebSocket push covers fantasy pre-match, live and post-match data, prematch odds changes, in-play odds for T20 and ODI, and prematch and in-play market settlement.

Basketballsport=basketball / bf########

Match data, prematch odds, in-play odds, prematch settlement based on quarter and half scores, and WebSocket push of odds and settlement are available.

Notes

  • The same platform matchId is used across Match, Fantasy, Odds and Settlement APIs.
  • `sport` filters /v1/matches; returned matchIds can be used directly with odds and settlement endpoints.
  • Requests outside the subscribed sport coverage return 403 sport_not_enabled.
Available

Error format

Failed responses use a consistent error object. Use code for program logic and do not depend on message text.

Response fields

FieldTypeDescription
400 invalid_requestHTTP error

Invalid parameter format or value.

401 unauthorizedHTTP error

Missing, invalid, revoked or expired API key.

402 subscription_not_found / subscription_expired / request_quota_exceededHTTP error

No active subscription, expired subscription or exhausted request quota.

403 forbidden / product_not_enabled / sport_not_enabled / data_module_not_enabledHTTP error

Missing scope, product, sport coverage or data module.

202 fantasy_result_pendingHTTP status

Post-match data is still waiting for the data provider or has entered operational review.

404 match_not_foundHTTP error

The platform match ID is unknown.

409 fantasy_live_not_availableHTTP error

No deliverable cricket fantasy live snapshot is available yet.

409 settlement_not_readyHTTP error

No usable market settlement has been generated for the match yet.

429 rate_limit_exceededHTTP error

Per-minute rate limit exceeded.

502 upstream_provider_error / upstream_rate_limitHTTP error

A real-time data dependency is temporarily unavailable or limited.

Response example
{
  "error": {
    "code": "data_module_not_enabled",
    "message": "Data module not enabled for subscription: fantasyData"
  }
}
02

Match data

Available

List matches

Returns matches, teams, start time, status and base results within the subscribed sport coverage.

GET/v1/matches
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

sportquerysoccer | basketball | cricketYes

Sport coverage. It must be enabled by the subscription.

statusqueryscheduled | live | completed | postponed | cancelledNo

Exact filter by normalized match status.

date_from / date_toqueryYYYY-MM-DDNo

UTC start-date range with both dates included; both parameters are required together and each range is limited to 31 days.

Response fields

FieldTypeDescription
matchIdstring

Unified platform match ID used to query enabled fantasy, odds or settlement data for the match.

sportCodestring

Sport code of the match.

competitionName / competitionCountry / competitionFormatstring | null

Competition, country or region, and match format.

homeTeamShortName / awayTeamShortNamestring | null

Platform-normalized team abbreviations.

startsAtISO 8601

Scheduled start time in UTC.

statusstring

Current match status.

resultobject | null

When present, includes resultText, winnerTeamId, homeScore, awayScore, periodScores and finalizedAt.

Request example
curl "https://api.fantasydata100.com/v1/matches?sport=basketball" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • Without an explicit date range, returns matches starting today or within the next three UTC calendar days. Use status to narrow the lifecycle state.
  • Historical match access is limited to the most recent month. A date_from older than one UTC calendar month returns 400.
  • The Cricket catalog is anchored to odds-backed events. Result-only records are not returned until event reconciliation is complete.
03

Fantasy data

Available

Cricket fantasy matches

Returns cricket matches with fantasy data coverage, including teams, start time and current status.

GET/v1/matches/fantasy/schedule
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

sportquerycricketYes

The fantasy match catalog currently supports cricket.

statusqueryscheduled | live | completed | postponed | cancelledNo

Filters by match status.

date_from / date_toqueryYYYY-MM-DDNo

UTC date range; both values are required together and limited to 31 days.

Response fields

FieldTypeDescription
matchIdstring

Unified platform match ID used for pre-match, live and post-match fantasy requests.

competitionFormatstring | null

Cricket match format, such as T20, ODI or TEST.

homeTeamShortName / awayTeamShortNamestring | null

Normalized team abbreviations, for example ENG and IND.

startsAtISO 8601

Scheduled start time in UTC.

statusstring

Current match status in the fantasy data lifecycle.

Request example
curl "https://api.fantasydata100.com/v1/matches/fantasy/schedule?sport=cricket" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • This catalog only returns matches with fantasy data coverage. It is separate from the sportsbook odds-backed catalog.
  • Without a date range, returns matches starting today or within the next three UTC calendar days.
Available

Fantasy pre-match data

Returns match and team details, toss trends, squad form and the full player pool.

GET/v1/matches/fantasy/:matchId/prematch
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

matchId returned by List matches.

sportquerysoccer | basketball | cricketYes

Sport coverage. It must be enabled by the subscription.

Response fields

FieldTypeDescription
matchobject

Start time, status, competition and home/away teams.

tossTrendsobject | null

Historical toss decision and bowling-first trends.

squadFormobject[]

Squad form array with one object per team.

squadForm[].teamId / teamNamestring | null

Platform-internal team ID and team name.

squadForm[].last5Resultsstring[]

Recent result codes such as W and L; an empty array when unavailable.

squadForm[].recentHistoryobject[]

Recent match objects, not a string array; returns an empty array when unavailable.

recentHistory[].startsAtISO 8601 | null

Historical match start time in UTC.

recentHistory[].statusscheduled | live | completed | null

Normalized historical match status.

recentHistory[].venue / winnerTeam / conclusionstring | null

Venue, winner abbreviation and result summary for the historical match.

recentHistory[].teamsobject[]

Teams and scores in the historical match.

recentHistory[].teams[].name / shortNamestring | null

Team name and abbreviation in the historical match.

recentHistory[].teams[].runs / wicketsinteger | null

Team runs and wickets lost.

recentHistory[].teams[].oversstring | null

Innings progress, for example 19.2.

playerId / teamIdstring

Platform-internal player and team IDs.

displayName / shortNamestring | null

Player display name and short name.

positionstring

Player position. Cricket commonly uses wk, bat, ar and bowl; soccer uses gk, def, mid and fwd; basketball uses pg, sg, sf, pf and c. Exact values depend on match data.

lineupStatusstring

Lineup state, for example announced or pending.

isStartingboolean | null

True for a confirmed starter and null while unconfirmed. Use the dedicated Lineup endpoint for the complete XI.

isAvailableboolean

Whether the player is available for lineup selection.

avatarUristring | null

Platform-hosted player avatar path when available. Resolve it against the API base URL.

logoUristring | null

Platform-hosted team logo path; upstream image URLs are never returned.

priceCreditsMinorinteger | null

Salary in minor units; divide by 100.

sourcePointsMinorinteger | null

Pre-match source points in minor units; divide by 100.

tourRuns / tourWickets / tourAvgPointsMinorinteger | null

Player totals for the current competition period.

bowlingStylespin | pace | null

Normalized bowling style; null when unavailable or not applicable.

dreamTeamPercentnumber | null

Historical source Dream Team percentage; for example, 70.5 means 70.5%.

recentPoints / avgPointsMinor / recentRuns / recentWicketsinteger | null

Recent player performance and average points.

batterOrderinteger[] | null

Recent batting order when available.

Request example
curl "https://api.fantasydata100.com/v1/matches/fantasy/cf29740002/prematch?sport=cricket" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • Returns 404 match_not_found when the match is not matched to deliverable data.
  • Players are sorted by price descending, then displayName.
  • SDK typing: use string[] for last5Results and an object array (or equivalent structured type) for recentHistory.
Available

Cricket venue data

Returns venue, pitch profile, scoring averages and historical wicket statistics.

GET/v1/matches/fantasy/:matchId/venue
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

Cricket matchId returned by the fantasy schedule.

sportquerycricketYes

The venue endpoint currently supports cricket.

Response fields

FieldTypeDescription
statuspending | available

pending means venue data has not been collected; available means venue is ready.

venue.pitch / goodForstring | null

Pitch profile and the style or player type generally favored by the venue.

venue.weatherConditionstring | null

Reserved weather description. Returns null until trusted data is available.

venue.firstInningsAvgRuns / secondInningsAvgRuns / avgRunsinteger | null

Historical first-innings, second-innings and overall average runs.

venue.totalWickets / pacerWickets / spinnerWicketsinteger | null

Historical total wickets with pace and spin breakdowns.

venue.matchCountinteger | null

Number of matches represented by the venue statistics.

Request example
curl "https://api.fantasydata100.com/v1/matches/fantasy/cf29740002/venue?sport=cricket" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • Before venue data is collected, the endpoint returns 200 with status=pending and venue=null.
  • weatherCondition only exposes collected trusted data and is never inferred from venue or date.
Available

Cricket head-to-head

Returns the team head-to-head summary with an explicit pending or available state.

GET/v1/matches/fantasy/:matchId/head-to-head
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

Cricket matchId returned by the fantasy schedule.

sportquerycricketYes

The head-to-head endpoint currently supports cricket.

Response fields

FieldTypeDescription
statuspending | available

pending means trusted head-to-head data has not been collected; available means headToHead is ready.

updatedAtISO 8601

Most recent head-to-head or match update time.

headToHead.totalMatchesinteger | null

Total meetings in the reported window.

headToHead.teams[].winsinteger | null

Wins for the team in the reported window.

headToHead.draws / noResultinteger | null

Drawn and no-result matches.

headToHead.matchType / windowLabelstring | null

Match format and reporting-window label.

Request example
curl "https://api.fantasydata100.com/v1/matches/fantasy/cf29740002/head-to-head?sport=cricket" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • This endpoint provides an aggregate summary, not individual historical match records.
  • Before H2H data is collected, the endpoint returns 200 with status=pending and headToHead=null for polling clients.
Available

Cricket starting lineup

Returns confirmed Playing XI players for both teams with an explicit completeness state for pre-match polling.

GET/v1/matches/fantasy/:matchId/lineup
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

Cricket matchId returned by the fantasy schedule.

sportquerycricketYes

The lineup endpoint currently supports cricket.

Response fields

FieldTypeDescription
statuspending | collecting | confirmed

pending means no trusted starters; collecting means published or partially collected; confirmed means exactly 11 starters are available for each team.

isCompleteboolean

True only when both teams have exactly 11 trusted starters.

updatedAtISO 8601

Most recent match or starter update time.

teams[].starterCountinteger

Trusted starters currently collected for the team.

teams[].startersarray

Confirmed starters with player identity, position and avatar.

Request example
curl "https://api.fantasydata100.com/v1/matches/fantasy/cf29740002/lineup?sport=cricket" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • A source-level lineup publication flag does not guarantee that all 22 players have been collected. The endpoint remains collecting until complete.
  • Unobserved players are not inferred to be substitutes. Clients should rely on isComplete.
Available

Cricket fantasy live

Returns normalized live scores, current batters and bowler, innings, commentary, player point changes and accumulated live FPS for polling clients.

GET/v1/matches/fantasy/:matchId/live
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

Cricket matchId returned by List matches.

sportquerycricketYes

Fantasy live currently supports cricket.

after_commentary_idqueryintegerNo

Returns commentary records after this ID for incremental polling.

before_commentary_idqueryintegerNo

Returns historical records before this ID; cannot be combined with after_commentary_id.

limitqueryintegerNo

Commentary and delivery count. Defaults to 10 and is capped at 100.

Response fields

FieldTypeDescription
lastUpdatedAtISO 8601

Most recent live snapshot capture time.

score.teams / score.inningsarray

Normalized team and innings scores.

matchContextobject

Match total overs and structured toss winner and decision.

currentPlay.striker / nonStrikerobject | null

Current batters with platform player IDs, accumulated runs and balls faced.

currentPlay.bowlerobject | null

Current bowler with platform player ID, wickets, runs conceded and overs bowled.

liveScorecard.inningsarray

Live innings with batting, bowling, extras, fall-of-wickets and did-not-bat details.

liveScorecard.innings[].didNotBatarray

Players who did not bat in the innings, returned with platform player IDs, names and short names.

players[].fantasyPointsMinorinteger

Accumulated live FPS through the current commentary; divide by 100 for display.

commentary[].categorystring

Canonical commentary category: info, match, end_of_over, ball_by_ball or unknown.

commentary[].inningsobject | null

The innings and batting/bowling teams for this commentary, using platform team IDs, names and short names; null for non-delivery messages that cannot be attributed reliably.

commentary[].ballobject | null

Normalized delivery result with ball position, outcome, runs, legal-delivery, wicket, boundary and extras fields; null for non-delivery messages.

commentary[].pointChangesarray

Player fantasy point changes generated by the event; eventCode provides the canonical event code and reason provides a readable explanation.

commentary[].pointChanges[].eventCodestring | null

Live fantasy scoring event code such as WICKET, LBW_BOWLED_BONUS, DUCK, STRIKE_RATE, ECONOMY_RATE or MAIDEN_OVER.

commentary[].pointChanges[].isBonusboolean

True only for extra points that the feed lists apart from the delivery's own points, such as run bonuses, Bowled/LBW bonuses, ducks, strike rate and economy rate changes. Points scored by the delivery itself are always false, including both the bowler and the fielder on a wicket. A delivery can carry several entries; do not infer roles from their order.

commentary[].endOfOverobject | null

For end-of-over records, returns the total score, runs and wickets in the over, and the bowler.

commentaryPageobject

Shared pagination metadata for commentary and deliveries, including count, cursors and older/newer availability.

nextCommentaryIdinteger | null

Cursor to pass as after_commentary_id on the next incremental request.

Request example
curl "https://api.fantasydata100.com/v1/matches/fantasy/cf29740002/live?sport=cricket&after_commentary_id=295&limit=10" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • The live endpoint does not include odds, markets or sportsbook settlement.
  • Returns 409 fantasy_live_not_available until the first live snapshot is available.
Available

Post-match scorecard and FPS

Returns the settled match scorecard and player FPS separately; join player details from the pre-match API by playerId.

GET/v1/matches/fantasy/:matchId/result
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

matchId of a completed match.

sportquerysoccer | basketball | cricketYes

Sport coverage. It must be enabled by the subscription.

Response fields

FieldTypeDescription
result.statusSETTLED | VOID

SETTLED returns the provider scorecard/FPS; VOID means the fantasy result was confirmed as void.

result.settledAtISO 8601 | null

Settlement or confirmation time of the post-match record.

result.reasonCode / reasonMessagestring | null

Standard reason code and message returned for a void result.

scorecardobject | null

Match-level scorecard; fields vary by sport and are null for a void result.

fantasyPoints[].playerIdstring

Platform player ID shared with the pre-match player data.

fantasyPoints[].displayName / shortNamestring | null

Player display name and short name.

fantasyPoints[].teamId / teamName / teamShortNamestring | null

Player team ID, name and abbreviation.

fantasyPoints[].positionstring | null

Fantasy position for this match.

fantasyPoints[].isStartingboolean | null

Whether the player started; null when unknown.

fantasyPoints[].isDreamTeamboolean | null

Whether the player was selected in the final Dream Team; null when the post-match Dream Team is unavailable.

fantasyPoints[].fpsPointsMinorinteger

Fantasy FPS in minor units; divide by 100 for display.

fantasyPoints[].scoringBreakdown.inningsarray

Player fantasy scoring details grouped by innings.

fantasyPoints[].scoringBreakdown.innings[].events[].eventCodestring

Platform event code such as RUNS, FOURS, STRIKE_RATE, BATTING_MILESTONE, WICKETS, CATCH or TOTAL.

fantasyPoints[].scoringBreakdown.innings[].events[].pointsMinorinteger | null

Fantasy points generated by the event in minor units; null when the statistic is not scored separately.

fantasyPoints[].scoringBreakdown.innings[].events[].actualstring | null

Actual match statistic or state, such as 28, 50+, Announced or no.

Request example
curl "https://api.fantasydata100.com/v1/matches/fantasy/cf29740002/result?sport=cricket" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • Returns 202 fantasy_result_pending while waiting for the data provider or operational review. Explicit no-result, cancelled or abandoned matches return 200 with result.status VOID.
  • After a normal final result, the provider scorecard/FPS is allowed up to 48 hours before operational review is required.
  • After a match merge, previous platform matchIds remain readable and responses return the canonical matchId.
  • This endpoint delivers Fantasy post-match data. It is not a sportsbook market / selection settlement endpoint.
04

Sportsbook API

Available

Prematch markets and odds

Returns all available Soccer / Basketball / Cricket prematch markets and selections for a platform match ID.

GET/v1/matches/:matchId/prematch-odds
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

Platform match ID, for example bf00001234.

Response fields

FieldTypeDescription
matchIdstring

Canonical platform match ID.

<category>.keystring

Market category key, for example main.

<category>.spobject

Map of markets keyed by market key.

sp.<market>.oddsarray

Selection array; each item includes at least id, name and decimal odds.

odds[].headerstring | omitted

Selection group within a market, for example Money Line, Spread or Total.

odds[].handicapstring | omitted

Line attached to this selection; omitted when the selection has no line.

Request example
curl "https://api.fantasydata100.com/v1/matches/bf00001234/prematch-odds" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • See the prematch market list for the markets offered; which markets a given match carries depends on the league and how popular the match is.
  • The sport is resolved from the match identified by matchId and checked against the subscription.
  • Use returned keys for categories, markets and selections; do not rely on array order.
Available

Prematch market list

Prematch markets offered for football and basketball. Which markets a match carries depends on the league and how popular the match is; markets named Alternative carry up to two extra lines each side of the main line.

Required module

Markets

FieldTypeDescription
Soccer · Full Time ResultFULL_TIME_RESULT

Full-time result (1X2)

Soccer · Goal LineGOAL_LINE

Main over/under goal line

Soccer · First Half GoalsFIRST_HALF_GOALS

First-half goals over/under

Soccer · Correct ScoreCORRECT_SCORE

Correct score

Soccer · CornersCORNERS

Corner count (over, exactly, under)

Soccer · Alternative Goal LineALTERNATIVE_GOAL_LINE

Alternative goal lines

Soccer · Goals Over/UnderGOALS_OVER_UNDER

Goals over/under

Soccer · Corners 2-WayCORNERS_2_WAY

Corners over/under

Soccer · 1st Half Goal LineFIRST_HALF_GOAL_LINE

First-half goal line

Soccer · Alternative Total GoalsALTERNATIVE_TOTAL_GOALS

Alternative total goals

Soccer · Asian Total CornersASIAN_TOTAL_CORNERS

Asian total corners

Soccer · Asian HandicapASIAN_HANDICAP

Asian handicap

Soccer · Alternative 1st Half Goal LineALTERNATIVE_FIRST_HALF_GOAL_LINE

Alternative first-half goal lines

Soccer · Exact Total GoalsEXACT_TOTAL_GOALS

Exact total goals

Soccer · First Half CornersFIRST_HALF_CORNERS

First-half corner count

Soccer · 1st Half Asian HandicapFIRST_HALF_ASIAN_HANDICAP

First-half Asian handicap

Soccer · Exact 1st Half GoalsEXACT_FIRST_HALF_GOALS

Exact first-half goals

Soccer · 1st Half Asian CornersFIRST_HALF_ASIAN_CORNERS

First-half Asian corners

Soccer · Half Time ResultHALF_TIME_RESULT

Half-time result

Soccer · Alternative Asian HandicapALTERNATIVE_ASIAN_HANDICAP

Alternative Asian handicaps

Soccer · Exact 2nd Half GoalsEXACT_SECOND_HALF_GOALS

Exact second-half goals

Soccer · First Team to ScoreFIRST_TEAM_TO_SCORE

First team to score

Soccer · 2nd Half ResultSECOND_HALF_RESULT

Second-half result

Soccer · Number of Goals in MatchNUMBER_OF_GOALS_IN_MATCH

Goal range in the match

Soccer · Half Time Double ChanceHALF_TIME_DOUBLE_CHANCE

Half-time double chance

Soccer · Half Time/Full TimeHALF_TIME_FULL_TIME

Half-time / full-time

Soccer · Alternative 1st Half Asian HandicapALTERNATIVE_FIRST_HALF_ASIAN_HANDICAP

Alternative first-half Asian handicaps

Soccer · Team Total GoalsTEAM_TOTAL_GOALS

Team total goals, one market per team

Soccer · Double ChanceDOUBLE_CHANCE

Double chance

Soccer · Handicap ResultHANDICAP_RESULT

Three-way handicap result

Soccer · Result / Total GoalsRESULT_TOTAL_GOALS

Result and total goals

Soccer · Alternative Handicap ResultALTERNATIVE_HANDICAP_RESULT

Alternative three-way handicap results

Soccer · To Score in HalfTO_SCORE_IN_HALF

To score in each half

Soccer · Both Teams to Score in 1st HalfBOTH_TEAMS_TO_SCORE_FIRST_HALF

Both teams to score in the first half

Soccer · Both Teams to Score in 2nd HalfBOTH_TEAMS_TO_SCORE_SECOND_HALF

Both teams to score in the second half

Soccer · Both Teams to Score 1st Half / 2nd HalfBOTH_TEAMS_TO_SCORE_BY_HALF

Both teams to score, by half

Basketball · Game LinesGAME_LINES

Full-game spread, total and money line (one group)

Basketball · Alternative Point SpreadALTERNATIVE_POINT_SPREAD

Alternative point spreads

Basketball · Alternative Game TotalALTERNATIVE_GAME_TOTAL

Alternative game totals

Basketball · Team TotalsTEAM_TOTALS

Team totals, one market per team

Basketball · Winning MarginWINNING_MARGIN

Winning margin bands

Basketball · Double ResultDOUBLE_RESULT

Half-time / full-time double result

Basketball · Match Result and TotalMATCH_RESULT_AND_TOTAL

Result and total

Basketball · Match Handicap and TotalMATCH_HANDICAP_AND_TOTAL

Handicap and total

Basketball · 1st HalfFIRST_HALF

First-half spread, total and money line (one group)

Basketball · 1st Half Money Line 3-WayFIRST_HALF_MONEY_LINE_3_WAY

First-half three-way money line

Basketball · 1st Half Team TotalsFIRST_HALF_TEAM_TOTALS

First-half team totals

Basketball · Alternative 1st Half Point SpreadALTERNATIVE_FIRST_HALF_POINT_SPREAD

Alternative first-half spreads

Basketball · Alternative 1st Half TotalsALTERNATIVE_FIRST_HALF_TOTALS

Alternative first-half totals

Basketball · 1st Half Winning MarginFIRST_HALF_WINNING_MARGIN

First-half winning margin

Basketball · 1st Half Double ChanceFIRST_HALF_DOUBLE_CHANCE

First-half double chance

Basketball · 1st QuarterFIRST_QUARTER

First-quarter spread, total and money line; offered for some matches only, not for leagues played in halves

Basketball · 1st Quarter Team TotalsFIRST_QUARTER_TEAM_TOTALS

First-quarter team totals; some matches only

Basketball · 1st Quarter Winning MarginFIRST_QUARTER_WINNING_MARGIN

First-quarter winning margin; some matches only

Basketball · Highest Scoring HalfHIGHEST_SCORING_HALF

Highest-scoring half

Basketball · Highest Scoring QuarterHIGHEST_SCORING_QUARTER

Highest-scoring quarter; some matches only

Basketball · Game Total - Odd/EvenGAME_TOTAL_ODD_EVEN

Game total odd/even

Basketball · Team Total - Odd/EvenTEAM_TOTAL_ODD_EVEN

Team total odd/even

Basketball · Tied at End Of Regulation?TIED_AT_END_OF_REGULATION

Tied at the end of regulation

Notes

  • type is the standard market type in the returned data; rely on the returned market keys and not on array order.
  • Basketball settlement: spreads, totals, money line, margins and odd/even use the full-game score including overtime; half and quarter markets use their own period only; tied-at-end-of-regulation uses the regulation score.
Available

Live odds

Returns the current live markets, odds, suspension state, score and match time for a match. Soccer, Basketball and Cricket (T20 and ODI) are supported; cricket has no match clock and returns the innings, each side's runs and wickets, the target and the current over instead.

GET/v1/matches/:matchId/live-odds
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

Platform match ID: sf prefix for football (for example sf00001234), bf prefix for basketball.

Response fields

FieldTypeDescription
sourcestream | stored | none

stream is live data; stored is the last saved snapshot and is always suspended; none means the match has no live data right now (data.available is false).

data.suspendedboolean

When true nothing can be bet: the data link is unhealthy or the data is stale.

data.clockobject

minute is the match minute at serverTime and seconds the cumulative match seconds at that moment; while running is true, current match seconds = baseSeconds + (now - updatedAt).

data.clock.directionup | down

up for football, elapsed match time; down for basketball, where baseSeconds is the time left in the current quarter and, while running, time left = baseSeconds - (now - updatedAt); data.period is the current quarter.

data.periodstring | null

Basketball only: the current period, Q1 to Q4, HT at half-time and OT in overtime. null for football.

markets[].groups[].roleMAIN | ALT

For handicap and total markets: MAIN is the main line (the line with the closest prices), ALT lines are up to two on each side.

selections[].sideHOME | AWAY | OVER | UNDER | null

For handicap markets, line is always the home team's line.

Request example
curl "https://api.fantasydata100.com/v1/matches/sf00001234/live-odds" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"
Basketball example · Request
curl "https://api.fantasydata100.com/v1/matches/bf00001234/live-odds" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • In-play handicaps settle on goals scored after the bet: at 1-1 a home -0.5 bet wins only if the final score is 2-1 or better for the home team.
  • Use the sportsbook.inplay_odds WebSocket channel for live updates; this endpoint is for the first snapshot and as a fallback.
Available

In-play market list

In-play markets follow the prematch list; the table shows what is connected today, for football, basketball and cricket. Cricket covers T20 and ODI only, and only markets that the final scorecard settles; player markets are listed per player. Basketball splits spread, total and money line into separate markets, and quarter markets only appear while that quarter is being played, with the quarter named in the market name. Which markets are open during a match depends on the competition level, the stage of the match and whether the market is open, so not all are always available; a market that is not open disappears from the response and is never kept at a stale price. Handicap and total markets carry up to two extra lines each side of the main line.

Required module

Markets

FieldTypeDescription
Soccer · Full Time ResultFULL_TIME_RESULT

Full-time result (1X2)

Soccer · Goal LineGOAL_LINE

Main over/under goal line

Soccer · 1st Half Goal LineFIRST_HALF_GOAL_LINE

First-half goal line

Soccer · Asian HandicapASIAN_HANDICAP

Asian handicap

Soccer · 1st Half Asian HandicapFIRST_HALF_ASIAN_HANDICAP

First-half Asian handicap

Soccer · Half Time ResultHALF_TIME_RESULT

Half-time result

Soccer · 2nd Half ResultSECOND_HALF_RESULT

Second-half result

Soccer · Half Time/Full TimeHALF_TIME_FULL_TIME

Half-time / full-time

Soccer · Double ChanceDOUBLE_CHANCE

Double chance

Soccer · Goals Over/UnderGOALS_OVER_UNDER

Goals over/under

Soccer · Alternative Total GoalsALTERNATIVE_TOTAL_GOALS

Alternative total goals

Soccer · First Half GoalsFIRST_HALF_GOALS

First-half goals over/under

Soccer · Team Total Goals - HomeTEAM_TOTAL_GOALS_HOME

Home team total goals

Soccer · Team Total Goals - AwayTEAM_TOTAL_GOALS_AWAY

Away team total goals

Soccer · Handicap ResultHANDICAP_RESULT

Three-way handicap result

Soccer · Correct ScoreCORRECT_SCORE

Correct score

Soccer · CornersCORNERS

Corner count (over, exactly, under)

Soccer · Corners 2-WayCORNERS_2_WAY

Corners over/under

Soccer · Asian Total CornersASIAN_TOTAL_CORNERS

Asian total corners

Soccer · First Half CornersFIRST_HALF_CORNERS

First-half corner count

Soccer · 1st Half Asian CornersFIRST_HALF_ASIAN_CORNERS

First-half Asian corners

Soccer · Both Teams to Score in 1st HalfBOTH_TEAMS_TO_SCORE_FIRST_HALF

Both teams to score in the first half

Soccer · Both Teams to Score in 2nd HalfBOTH_TEAMS_TO_SCORE_SECOND_HALF

Both teams to score in the second half

Basketball · Game Lines - SpreadGAME_SPREAD

Full game spread, including alternative lines

Basketball · Game Lines - TotalGAME_TOTAL

Full game total, including alternative lines

Basketball · Game Lines - Money LineGAME_MONEY_LINE

Full game money line

Basketball · Team Totals - HomeGAME_TEAM_TOTAL_HOME

Full game home team total

Basketball · Team Totals - AwayGAME_TEAM_TOTAL_AWAY

Full game away team total

Basketball · 1st Half - SpreadFIRST_HALF_SPREAD

First half spread, including alternative lines

Basketball · 1st Half - TotalFIRST_HALF_TOTAL

First half total, including alternative lines

Basketball · 1st Half - Money LineFIRST_HALF_MONEY_LINE

First half money line

Basketball · 1st Half - Money Line 3-WayFIRST_HALF_MONEY_LINE_3_WAY

First half three-way money line

Basketball · 1st Half Team Totals - HomeFIRST_HALF_TEAM_TOTAL_HOME

First half home team total

Basketball · 1st Half Team Totals - AwayFIRST_HALF_TEAM_TOTAL_AWAY

First half away team total

Basketball · 2nd Half - SpreadSECOND_HALF_SPREAD

Second half spread, including alternative lines

Basketball · 2nd Half - TotalSECOND_HALF_TOTAL

Second half total, including alternative lines

Basketball · 2nd Half - Money LineSECOND_HALF_MONEY_LINE

Second half money line

Basketball · 2nd Half - Money Line 3-WaySECOND_HALF_MONEY_LINE_3_WAY

Second half three-way money line

Basketball · 2nd Half Team Totals - HomeSECOND_HALF_TEAM_TOTAL_HOME

Second half home team total

Basketball · 2nd Half Team Totals - AwaySECOND_HALF_TEAM_TOTAL_AWAY

Second half away team total

Basketball · Quarter - SpreadQUARTER_SPREAD

Current quarter spread, including alternative lines

Basketball · Quarter - TotalQUARTER_TOTAL

Current quarter total, including alternative lines

Basketball · Quarter - Money LineQUARTER_MONEY_LINE

Current quarter money line

Basketball · Quarter - Money Line 3-WayQUARTER_MONEY_LINE_3_WAY

Current quarter three-way money line

Basketball · Quarter Team Totals - HomeQUARTER_TEAM_TOTAL_HOME

Current quarter home team total

Basketball · Quarter Team Totals - AwayQUARTER_TEAM_TOTAL_AWAY

Current quarter away team total

Basketball · Winning MarginWINNING_MARGIN

Winning margin

Basketball · 1st Half Winning MarginFIRST_HALF_WINNING_MARGIN

First-half winning margin

Basketball · Quarter Winning MarginQUARTER_WINNING_MARGIN

Current-quarter winning margin

Basketball · Tied at End Of Regulation?TIED_AT_END_OF_REGULATION

Tied at the end of regulation

Basketball · Double ResultDOUBLE_RESULT

Half-time / full-time double result

Basketball · 1st Half Double ChanceFIRST_HALF_DOUBLE_CHANCE

First-half double chance

Basketball · Quarter Race toQUARTER_RACE_TO

Current quarter: first to reach a score

Basketball · Quarter Both Teams To ScoreQUARTER_BOTH_TEAMS_TO_SCORE

Current quarter: both teams to score

Basketball · Quarter Team To Score - HomeQUARTER_TEAM_TO_SCORE_HOME

Current quarter: home team to score

Basketball · Quarter Team To Score - AwayQUARTER_TEAM_TO_SCORE_AWAY

Current quarter: away team to score

Cricket · Match WinnerMATCH_WINNER

Match winner (two-way)

Cricket · Team Total Runs - HomeTEAM_TOTAL_RUNS_HOME

Home team innings total, over/under

Cricket · Team Total Runs - AwayTEAM_TOTAL_RUNS_AWAY

Away team innings total, over/under

Cricket · Team Sixes - HomeTEAM_SIXES_HOME

Home team sixes over/under

Cricket · Team Sixes - AwayTEAM_SIXES_AWAY

Away team sixes over/under

Cricket · Top Batter - HomeTOP_BATTER_HOME

Home team's top batter

Cricket · Top Batter - AwayTOP_BATTER_AWAY

Away team's top batter

Cricket · Batter With Most RunsMOST_RUNS

Batter with most runs in the match, including a tie

Cricket · Batter MilestonesBATTER_MILESTONES

Whether a batter reaches 10+, 20+, 30+, 50+, 70+ runs; column holds the batter

Cricket · <Batter> - Innings RunsBATTER_RUNS:<batter>

A batter's runs over/under; one market per batter, offered once the batter is at the crease

Available

Sportsbook Settlement API

Returns Soccer, Basketball or Cricket prematch market and selection outcomes, and Cricket in-play market outcomes, for a platform match ID.

GET/v1/matches/:matchId/settlement
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

Platform match ID.

Response fields

FieldTypeDescription
results[].statusSETTLED | VOID | REVIEW_REQUIRED

Match-level summary status.

results[].resultobject | null

Match-level winner and result text; winner is null for a tie or unavailable winner.

markets[].idstring

Concrete market instance ID; different lines have different IDs.

markets[].key / namestring

Canonical market type and display name.

markets[].linestring | null

Frozen line for this market instance.

markets[].statusSETTLED | VOID | REVIEW_REQUIRED

Market-level settlement state.

markets[].rule_versionstring

Rule version used for this settlement.

markets[].reason_code / reason_messagestring | null

Machine-readable reason and message for pushes, voids or review cases.

markets[].selections[].statusWIN | LOSE | VOID | HALF_WIN | HALF_LOSE | REVIEW_REQUIRED

Final settlement outcome for the selection.

markets[].selections[].settlement_valuestring | null

Score, total or fact value used to determine the outcome.

Request example
curl "https://api.fantasydata100.com/v1/matches/bf00001234/settlement" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • The sport is resolved from the platform matchId and checked against the matching Soccer, Basketball or Cricket entitlement.
  • Returns 409 settlement_not_ready when no market settlement is available instead of returning an empty PENDING result.
  • An exact push on an integer line may return VOID. Asian lines may also return HALF_WIN or HALF_LOSE.
  • When a match is cancelled, postponed or abandoned, every prematch market returns VOID and the match-level status is VOID.
  • Basketball: spreads, totals, money line, winning margins and odd/even use the full-game score including overtime; half and quarter markets use their own period only, without overtime; tied-at-end-of-regulation uses the regulation score. Leagues played in halves have no quarter scores, so quarter markets return REVIEW_REQUIRED.
  • Settlement is generated automatically once the match has ended and an official score is available; a corrected result is settled again and settlementVersion in the WebSocket settlement events increases.
  • Unsupported markets or missing settlement facts return REVIEW_REQUIRED with a reason_code.
Available

Single market settlement

Returns one market and all selection outcomes by market ID. Use it for order settlement or on-demand review screens.

GET/v1/matches/:matchId/settlement/markets/:marketId
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Tenant API key. Format: Bearer fts_live_xxx.

matchIdpathstringYes

Platform match ID that owns the market.

marketIdpathstringYes

Value returned as markets[].id by the event settlement endpoint.

Response fields

FieldTypeDescription
idstring

Market instance ID.

phasePREMATCH | INPLAY

Whether the market was offered prematch or in-play; in-play keys carry an INPLAY_ prefix, for example INPLAY_BATTER_RUNS.

offer_statusOPEN | CLOSED

Whether the market is still offered; settled markets are normally CLOSED.

published_atISO 8601 | null

Time the automatic or manually confirmed result became public.

selectionsarray

Outcomes for every selection in the market; do not read only winning selections.

Request example
curl "https://api.fantasydata100.com/v1/matches/bf00001234/settlement/markets/market_total_177_5" \
  -H "Authorization: Bearer fts_live_YOUR_API_KEY"

Notes

  • The market ID must belong to data visible to the calling tenant, otherwise the API returns 404 settlement_not_found.
  • Cricket in-play markets: every line and selection offered in-play gets a result after the match, decided by the final scorecard alone, whatever the time of the bet. With no result, a cancelled or abandoned match, every selection is VOID; a batter who did not bat has his runs and milestone selections VOID; a tied match voids the winner market; in a shortened (DLS) match the winner is settled as usual and the other markets are REVIEW_REQUIRED; a tie for most runs pays Tie when it is offered and is otherwise REVIEW_REQUIRED, and a tie for a side's top batter is REVIEW_REQUIRED.
05

Fantasy realtime delivery

Available

WebSocket connection and access

Discover matchIds through REST schedules, then subscribe to Cricket Fantasy prematch, live and full results on one connection. Sportsbook market settlement push is described in the next section. Result-only consumers can use Webhook instead.

GET/v1/realtime
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Bearer fts_live_xxx. Backend connections only; never send keys in URLs.

Request example
// 1. Discover platform matchIds through REST.
// GET /v1/matches/fantasy/schedule?sport=cricket
// Authorization: Bearer YOUR_API_KEY

// 2. Connect from your Node.js backend (ws 8.22.0).
import WebSocket from "ws";
const socket = new WebSocket("wss://api.fantasydata100.com/v1/realtime", {
  headers: { Authorization: "Bearer " + process.env.FANTASYDATA_API_KEY }
});

Notes

  • Requires a valid key plus the scope and data entitlement of every subscribed channel: fantasy.* needs fantasy:read and Fantasy data; sportsbook.settlement needs sportsbook:read and Settlement data; fantasy.* needs Cricket and sportsbook.* needs the match's sport (Cricket or Soccer); without it, subscribing to that match returns match_not_found.
  • Native browser WebSocket cannot set the Authorization header. Connect from your backend.
  • Two persistent connections per tenant. One extra same-key connection is allowed for 10 seconds once per minute, then the oldest closes. Maximum 50 matches per connection.
  • Push does not consume REST quota. Exhausted REST quota does not disable an otherwise authorized feed. Full Result reads still use REST quota.
  • Reference clients include reconnect and snapshot assembly. Short snippets below illustrate wire formats only.
Available

Subscribe and resume

fantasy.prematch covers player pools, H2H, venue and XI; fantasy.live covers scores, players and ball-by-ball; fantasy.result delivers full FPS, scorecard and revisions. Select any combination without reconnecting between stages.

Response fields

FieldTypeDescription
subscription.confirmedcontrol message

Confirms normalized matches and expanded event types; initialization is not complete.

subscription.readycontrol message

Atomically save cursor and resumeToken after all preceding replay and snapshot processing succeeds.

checkpoint.cursorstring

May advance the global watermark without a business event. Save after preceding processing; it grants no access to other matches.

action=unsubscribecontrol message

Removes every subscription on the connection; returns subscription.removed.

Request example
{
  "action": "subscribe",
  "subscriptions": [{
    "matchId": "cf12345678",
    "events": ["fantasy.prematch", "fantasy.live", "fantasy.result"]
  }]
}

// Reconnect: use the cursor and token saved after successful processing.
{
  "action": "subscribe",
  "subscriptions": [{ "matchId": "cf12345678", "events": ["fantasy.prematch", "fantasy.live", "fantasy.result"] }],
  "resumeAfter": "rt_105",
  "resumeToken": "SAVED_OPAQUE_TOKEN"
}
Response example
{
  "type": "subscription.ready",
  "cursor": "rt_105",
  "resumeToken": "OPAQUE_TOKEN_RETURNED_BY_SERVER"
}

Notes

  • Resume tokens bind the tenant, data domain and subscription scope and expire after seven days. Treat them as opaque. New matches or categories receive current snapshots.
  • Replay pages contain at most 100 events; a resume is capped at 5,000 events or 8 MiB. Replay follows cursors, not delivery flags.
  • For resume_cursor_expired, replay_limit_exceeded or invalid_resume_cursor, clear resume parameters and resubscribe. Snapshots contain current state; use paginated REST for historical commentary.
Available

Events, snapshots and processing order

Business events share one envelope. Scores and current players follow the Fantasy Live contract; commentary events contain one normalized commentary item.

Response fields

FieldTypeDescription
eventIdstring

Idempotency identifier. Persist processing state; duplicate events must not duplicate scoring or rewards.

cursor / streamSequencestring / string

cursor is a global recovery watermark; streamSequence orders one match. Use strings or big integers, never floating point. Filtered global cursors need not be consecutive.

fantasy.match.updatedevent

Included with every stage: matchId, startsAt, status, homeTeamId, awayTeamId, lineupStatus and revision. Rescheduling and cancellation do not require rediscovery.

fantasy.prematch.*.updatedevent

player_pool, head_to_head, venue and lineup publish independently on content changes, with their corresponding DTO and revision.

data.fragment / data.chunkobject / string

Large events contain fragment.id/index/count/encoding=base64-json and a Base64 chunk. Reassemble all bytes before parsing data; never checkpoint a partial publication. Reference clients handle this.

fantasy.live.score.updatedevent

data.score, matchContext, liveScorecard and revision.

fantasy.live.current_play.updatedevent

data.currentPlay, players and revision.

fantasy.live.commentary.createdevent

One commentary item plus revision. A correction may produce a new event; upsert by commentaryId.

fantasy.live.over.completed / fantasy.live.innings.changedevent

Provide commentaryId, innings and endOfOver, or innings respectively; both include revision.

snapshot.partcontrol message

Decode Base64 chunks in zero-based index order, concatenate bytes, then parse the UTF-8 JSON array. Each match includes matchId and match, plus prematch, live and result for requested stages. Published result includes full resultData.

Notes

  • Snapshots may span frames; individual chunks are not JSON documents. Total snapshot limit is 8 MiB. Initialization completes at subscription.ready.
  • snapshot_limit_exceeded requires a smaller subscription scope or REST, not retrying the same scope. The example shows VOID; settled resultData contains actual FPS and scorecard.
  • Process messages serially. Persist a cursor only after business commit; never advance on callback failure. Reconnects and retries may duplicate events; platform delivery does not confirm tenant processing.
  • Server Ping every 30 seconds; disconnect after 90 seconds without Pong. Use a backend library with automatic Pong. Each connection allows 100 events/s, 256 KiB/s and 20 control messages/minute.
  • 4003 means access expired. 4008 means connection/control limits or replacement; stop contention and check deployment. 4009 is heartbeat timeout. Retry 1011, 1012 and network failures with jittered exponential backoff.
Available

Full result delivery and REST fallback

fantasy.result.available delivers the first full result; fantasy.result.updated delivers revisions. resultData follows the Result REST contract with FPS and scorecard, fragmented when large.

GET/v1/matches/fantasy/:matchId/result?sport=cricket
Required module

Notes

  • completed does not mean FPS is ready and does not end the subscription. Wait for a full result or explicit VOID. Corrections increment resultVersion; initialization also includes any published full result.
  • No extra Result REST request is needed after full WebSocket delivery. REST remains available for recovery and history; its resultVersion should equal or exceed the received version. Apply later revisions by version, never overwrite a newer result with an older one. Delivery does not promise missing data within a fixed window.
  • An existing result may arrive in snapshot.result without a new available event. Handle both snapshots and later events; keep waiting when result is null.
  • For notification-only needs, use Webhook then fetch REST once. Deduplicate notifications and full-result processing separately; handling a notification must not discard full data with the same eventId.
Available

Configure Result Webhook

Configure one public HTTPS receiver per tenant for Fantasy Result availability and revisions. Initial configuration starts at the current watermark and does not backfill earlier results.

PUT/v1/webhooks/result
Required module

Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYes

Bearer fts_live_xxx. Backend connections only; never send keys in URLs.

urlbodystringYes

Public HTTPS on port 443. Private addresses, URL credentials and redirects are not allowed.

enabledbodybooleanNo

Defaults to true.

Request example
curl -X PUT "https://api.fantasydata100.com/v1/webhooks/result" \
  -H "Authorization: Bearer $FANTASYDATA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://your-service.example/webhooks/fantasy-result","enabled":true}'
Response example
{
  "keyId": "2daf7f9e-720d-4e47-83ca-abecbe2a919a",
  "secret": "SAVE_THE_RETURNED_SECRET_SECURELY"
}

Notes

  • Save the secret returned on configuration/rotation. A new PUT resets the secret and watermark and cancels old pending jobs. Use the status endpoint for routine pause/resume.
  • The signing secret is separate from your API key. Webhook requests do not include the tenant API key.
Available

Webhook verification and retries

Webhook delivers a notification for the same result version: status and REST path, without resultData or fragments. Verify raw bytes, check timestamp freshness and deduplicate notifications by eventId.

Notes

  • Use the secret for HMAC-SHA256, compare in constant time and accept at most five minutes of clock skew. Do not parse and reserialize JSON before verification. The example timestamp is illustrative; validate against current time.
  • Persist the inbox record and return 2xx promptly. A 2xx confirms receipt only. Non-2xx, timeout and network errors retry; redirects are not followed. Total request timeout is ten seconds.
  • Retry gaps are 10s, 30s, 2m, 10m, 30m, 1h, 3h, 6h and 12h with ±20% jitter; at most ten attempts within 48 hours. Each retry is re-signed; eventId and body stay unchanged.
  • Ten consecutive failures pause the endpoint. One in-flight request per tenant, four globally. Batch results are queued; sub-second Webhook delivery is not guaranteed.
  • Use X-FantasyData-Key-Id to select a secret from your local key map; update the receiver during rotation. Deduplicate historical repeats by eventId.
  • The download includes Node/Python signature-verifying receivers and Result readers. Receivers persist then acknowledge; your worker fetches results separately. Readers use the fixed API origin, reject redirects and check matchId/resultVersion without automatic polling.
Available

Webhook operations

Use the same tenant Bearer key and Fantasy permissions for these endpoints. They do not consume data-query quota, but abuse limits apply.

Management endpoints

FieldTypeDescription
GET /v1/webhooks/resultconfiguration

Read url, enabled, keyId and failures; never returns the secret.

POST /v1/webhooks/result/status{ enabled: boolean }

Pause/resume and reset consecutive failures. Cursor moves to current; existing valid pending jobs remain, but events not queued during pause are not backfilled.

POST /v1/webhooks/result/test{ deliveryId }

Queue a webhook.test delivery. Test messages have no matchId or resultVersion.

POST /v1/webhooks/result/rotate-secret{ keyId, secret }

Rotate the signing secret; preserve delivery jobs.

GET /v1/webhooks/result/deliveries{ deliveries: array }

Latest 50 jobs and attempt history: eventId, status, attempts, next time, HTTP status and duration.

POST /v1/webhooks/result/deliveries/:id/redeliver{ ok: true }

Redeliver the frozen body by delivery ID with the same eventId. Unavailable after 30 days. Resume a paused endpoint first.

Request example
# Queue a test notification (no JSON body).
curl -X POST "https://api.fantasydata100.com/v1/webhooks/result/test" \
  -H "Authorization: Bearer $FANTASYDATA_API_KEY"

# Inspect delivery history.
curl "https://api.fantasydata100.com/v1/webhooks/result/deliveries" \
  -H "Authorization: Bearer $FANTASYDATA_API_KEY"
Response example
{
  "deliveryId": "2daf7f9e-720d-4e47-83ca-abecbe2a919a"
}

Notes

  • Handshake and Webhook management access failures return 401 realtime_access_denied. More than 60 management/handshake requests per IP per minute returns 429.
  • A test deliveryId confirms queuing only. Bodyless POST requests must not send an empty JSON Content-Type. webhook.test contains no match result and must not trigger a Result read.
  • The platform persists events and makes delivery attempts. Successful business processing is determined by your own cursor, inbox and idempotency state.
06

Sportsbook realtime delivery

Available

Prematch odds changes

Subscribe to sportsbook.prematch_odds to receive every change in prematch odds, limited to the markets that changed and the markets that disappeared. Structure and keys match GET /v1/matches/:matchId/prematch-odds, so no client-side diffing is needed. Covers Cricket, Football (Soccer) and Basketball; football and basketball matches are captured from their first subscription, and access to the sport is required.

GET/v1/realtime
Required module

Response fields

FieldTypeDescription
data.marketsarray

Markets that are new or changed. market is identical to that market in the REST response, with all its selections. Replace your local record by categoryKey + marketKey.

data.removedarray

Markets no longer offered (closed, replaced or the match is no longer available). Stop accepting bets on them and delete them locally.

data.revisioninteger

Increasing version of the match's odds. Never let an older revision overwrite a newer one. Deduplicate by eventId.

snapshot.prematchOddsobject | null

The full current odds in the snapshot, in the REST result shape for the match; null means nothing is offered right now. Apply later events on top of it in order.

Request example
{
  "action": "subscribe",
  "subscriptions": [{ "matchId": "cf12345678", "events": ["sportsbook.prematch_odds"] }]
}

Notes

  • Requires sportsbook:read and the Prematch Odds data module. It is independent of Settlement access; a request is refused entirely if any channel in it is not authorized.
  • Changes written by one ingestion run are merged into one event, and re-ingesting identical odds produces nothing. Existing odds arrive in the snapshot or as the first event; handle both.
  • Reconnect with the saved cursor; if resume fails (resume_cursor_expired and similar), clear the resume parameters and resubscribe for a fresh snapshot. Do not treat long-stale odds as current; use revision and the REST fallback.
  • Odds are delivered over WebSocket only, with no Webhook, because changes are frequent. Push does not consume REST quota.
  • The reference clients include PrematchOddsBook / SettlementBook (node/books.mjs, python/books.py): they replace and delete by key, drop stale revisions and report a gap so you can resubscribe. Choose channels with FANTASYDATA_EVENTS.
Available

In-play odds

Subscribe to sportsbook.inplay_odds to receive a full snapshot of the match, then an update for every change in score, match time or odds. Soccer, Basketball and Cricket (T20 and ODI) are supported. In-play odds are not durable events: there is no cursor or resume token, resubscribe after a disconnect to get a fresh snapshot.

GET/v1/realtime
Required module

Response fields

FieldTypeDescription
sportsbook.inplay_odds.snapshotframe

The full current state, same shape as data in GET /v1/matches/:matchId/live-odds. Replace your local state wholesale. Snapshots are sent after subscribing, after the data link recovers and when a slow connection falls behind. If the match is not live, data.available is false and a snapshot follows when it starts.

sportsbook.inplay_odds.updatedframe

Delta: each market in data.markets carries only the lines that are new or changed (groups, replace whole) and the lines that disappeared (removedLines); data.removedMarkets lists markets that went away; data.status holds a changed score or clock. Apply only when prevSeq equals your local seq, otherwise resubscribe.

sportsbook.inplay_odds.factframe

A match event (goal, corner, card, substitution ...). Deduplicate by data.id.

sportsbook.inplay_odds.endedframe

The match finished or left the live list; nothing further is sent for it.

data.suspendedboolean

When true nothing can be bet: the data link is unhealthy or stale. A fresh snapshot follows once it recovers.

Request example
{
  "action": "subscribe",
  "subscriptions": [{ "matchId": "sf12345678", "events": ["sportsbook.inplay_odds"] }]
}
Response example
{
  "type": "sportsbook.inplay_odds.updated",
  "matchId": "sf12345678",
  "seq": 1843,
  "prevSeq": 1842,
  "occurredAt": "2026-10-24T21:24:29.000Z",
  "data": {
    "status": { "score": { "home": 2, "away": 1 } },
    "markets": [{
      "type": "ASIAN_HANDICAP", "name": "Asian Handicap", "suspended": false, "removedLines": [],
      "groups": [{ "line": 0, "role": "MAIN", "suspended": false, "selections": [
        { "id": "299395834", "side": "HOME", "column": "Vitoria", "line": 0, "odds": 1.65, "suspended": false, "name": null, "code": null },
        { "id": "299395842", "side": "AWAY", "column": "Athletico Paranaense", "line": 0, "odds": 2.3, "suspended": false, "name": null, "code": null }
      ] }]
    }],
    "removedMarkets": []
  }
}

Notes

  • Requires sportsbook:read, the Realtime Feed (WebSocket) data module and access to the sport of the match (Soccer, Basketball or Cricket). It is billed separately from REST Live Odds, so Live Odds alone does not allow subscribing to this channel. A subscription item may contain only sportsbook.inplay_odds, not other channels; a request may hold several items, up to 50 live matches per connection.
  • data.clock: minute is the match minute at serverTime and seconds the cumulative match seconds at that moment; while running is true, current match seconds = baseSeconds + (now - updatedAt), so you can keep the clock running between pushes.
  • Basketball: data.period is the current period (Q1 to Q4, HT at half-time, OT in overtime); data.clock.direction is down and baseSeconds is the time left in the current quarter, so while running is true time left = baseSeconds - (now - updatedAt). Quarter markets exist only while that quarter is being played and disappear when it ends.
  • Cricket: there is no match clock, so data.clock is null; data.period is 1st Innings, Innings Break or 2nd Innings; data.score holds each side's current runs; data.cricket gives innings, batting (home, away or null), runs and wickets for home and away, target (the chase target) and over (the current over). Market names follow the players, so recognise markets by the type prefix, for example BATTER_RUNS:<batter>.
  • For handicap and total markets, role = MAIN is the main line (closest prices) and ALT lines are up to two on each side; handicap lines are always from the home team's view. In-play handicaps settle on goals scored after the bet.
  • Authorization is rechecked while connected; the connection closes with 4003 once Realtime Feed access is withdrawn. Updates do not consume REST quota.
Available

Subscribe to market settlements

Uses the same WebSocket connection, subscription, cursor recovery and snapshots, with a new sportsbook.settlement channel. Covers Cricket, Football (Soccer) and Basketball prematch market settlements, and Cricket in-play market settlements (market.phase is INPLAY); football and basketball matches are captured from their first subscription; prematch odds are a separate channel described in the next section.

GET/v1/realtime
Required module
Request example
{
  "action": "subscribe",
  "subscriptions": [{ "matchId": "cf12345678", "events": ["sportsbook.settlement"] }]
}

Notes

  • Requires sportsbook:read and the Settlement data module; otherwise the subscription returns channel_not_permitted. A request may combine fantasy.* channels, but every channel must be authorized or the whole request is refused.
  • The snapshot carries a settlement array per match: every currently published market settlement, in the single market settlement REST shape. A settlement that already exists at subscription time may arrive in the snapshot instead of a new published event.
  • Authorization is rechecked while connected; the connection closes with 4003 once Settlement access is withdrawn.
Available

Settlement events and withdrawals

One event per market. The first public result is sportsbook.settlement.published; later content changes are sportsbook.settlement.updated. A recalculation with identical content produces no event.

Required module

Response fields

FieldTypeDescription
data.settlementVersioninteger

Starts at 1 per market and increases. Apply by version; never overwrite a newer version with an older one. Deduplicate by eventId.

data.marketobject

Identical to the response of GET /v1/matches/:matchId/settlement/markets/:marketId. selections lists every selection; do not read only winning ones.

data.settlementUrlstring

REST path of this market, for recovery and reconciliation.

market.status = REVIEW_REQUIREDwithdrawal

A previously published result was withdrawn into manual review (published_at is null). Stop acting on the earlier result and wait for the next version after review. Markets that were never published do not produce events while under review.

Notes

  • Like REST, markets that were superseded are no longer provided and produce no events.
  • Process messages serially and persist the cursor only after business commit. Reconnects and retries may duplicate events; platform delivery does not confirm tenant processing.
Available

Settlement webhook notifications

Shares the Result Webhook endpoint, signing, retries and operations. Tenants with Settlement access also receive Cricket settlement notifications (football and basketball settlements are WebSocket only for now). They carry only the version and path; fetch REST once from settlementUrl.

PUT/v1/webhooks/result
Required module
Response example
{
  "eventId": "2daf7f9e-720d-4e47-83ca-abecbe2a919a",
  "type": "sportsbook.settlement.updated",
  "matchId": "cf12345678",
  "data": {
    "settlementVersion": 2,
    "marketId": "market_winner_1",
    "status": "SETTLED",
    "settlementUrl": "/v1/matches/cf12345678/settlement/markets/market_winner_1"
  }
}

Notes

  • Delivery follows the tenant's actual entitlements: Fantasy-only tenants receive no settlement notifications, and Settlement-only tenants receive no Fantasy results.
  • Management endpoints accept either fantasy:read or sportsbook:read.
  • The reference Webhook receivers accept sportsbook.settlement.published / updated on both /webhooks/fantasy-result and /webhooks/fantasydata. If you run your own receiver, accept these event types: an unexpected 400 triggers retries, and ten consecutive failures pause the endpoint.
07

References

Available

Field compatibility

Documented Match, Fantasy and odds fields are stable contracts; detailed scorecard statistics vary by sport.

Notes

  • Clients should tolerate unknown fields and ignore unused additions.
  • Confirm custom fields, fixed schemas or private deployment requirements before integration.
Available

Changelog

This section records new public endpoints, field updates and compatibility changes. Breaking changes will be released under a new API version and will not be introduced silently into v1.

Notes

  • Cricket Fantasy delivery: subscribe by match to prematch, live and full results, with initial snapshots, reconnect recovery and result revisions. Added Result Webhook guidance and Node/Python reference clients.
  • Cricket Fantasy pre-match data: added team and player short names, bowling style, Dream Team percentage, lineup and recent performance data.
  • Cricket Fantasy live data: enhanced live scores, current batters and bowler, innings scorecards and structured ball-by-ball data.
  • Commentary: added innings and team ownership, structured delivery results, historical pagination and incremental queries.
  • Cricket Fantasy post-match data: enhanced player FPS, Dream Team, event-level scoring breakdowns and match scorecards.