Create Liveblog from external source
This endpoint is only available for customers who have booked this feature. Please ensure your organization has access before using this API.
Overview
This endpoint allows you to create a liveblog for a sports event using data fetched from an external provider. The API pre-fills the liveblog with match data such as teams, players, and scoreboard information. Additionally, automatic posting of events like goals, cards, or substitutions can be configured.
Endpoint
POST /apigw/sports/v2/{organizationId}/liveblog/createFromExternal
Path Parameters
organizationId(string, required): The ID of your organization.
Request Body
The request body should contain the following fields:
provider(string, required): The name of the external data provider. Supported values aregn-gsd(Gracenote),heim(Heimspiel),sportcc(PlanetSport SportCC) andhneeds(PlanetSport hneeds, cricket); see the provider sections below for the sport types and events each supports.matchId(string, optional): The ID of the match to fetch from the provider. EithermatchId,phaseIdoroverallIdmust be provided.phaseId(string, optional): The ID of the phase to fetch from the provider. EithermatchId,phaseIdoroverallIdmust be provided.overallId(string, optional): The ID of the overall to fetch from the provider. EithermatchId,phaseIdoroverallIdmust be provided. IfphaseIdandoverallIdare supplied at the same time,phaseIdis preferred.title(string, optional): Custom title for the liveblog. If not provided, a default title will be generated based on the match data.locale(string, optional): The locale for the liveblog content. Defaults to “en”.includeTextContent(boolean, optional): Whether to include editorial text content from the provider (e.g. Heimspiel liveticker commentary) in the created content stream — standalone commentary posts as well as narrative attached to match events. WhenautoPostEnabledis set, the text content is posted automatically too. Defaults tofalse. Only available for providerheimwith sport typessoccer,icehockey,tennis,american_football,motorsportsandski_alpine, and only when your organization’s Heimspiel endpoint delivers liveticker content, and for providersportccwith English Premier League, UEFA Champions League, CAF Africa Cup of Nations and South African Premier Soccer League, Carling Knockout, MTN 8 and Nedbank Cup soccer matches and World Rugby Nations Championship rugby union matches — requesting it otherwise is rejected with400 Bad Request. Contact Tickaroo support if you are unsure whether your setup includes it.autoPostEnabled(boolean, optional): Whether automatic posting of match events is enabled.autoPostConfiguration(AutoPostConfiguration, optional): Configuration for automatic posting ifautoPostEnabledis set to true. The configuration can include options to exclude specific events or scoreboards. Everything will be synced if object is missing.
AutoPostConfiguration
excludeScoreboard(boolean, optional): Whether to exclude the scoreboard from automatic posting.excludeEvents(string[], optional): An array of event types to exclude from automatic posting.
Auto Post Configuration Example
If you enable automatic posting, the autoPostConfiguration field can be structured like this:
{
"excludeScoreboard": true,
"excludeEvents": ["soccer.goal"]
}
Provider
Provider: Heimspiel
- ID:
heim - Supported Sport Types:
- soccer
- Supported Events:
soccer.goalsoccer.own-goalsoccer.yellow-cardsoccer.red-cardsoccer.yellow-red-cardsoccer.penalty-kick-missedsoccer.substitutionsoccer.startsoccer.pause-halvessoccer.resume-halvessoccer.end-of-regular-playsoccer.start-overtimesoccer.pause-overtimesoccer.resume-overtimesoccer.end-of-overtimesoccer.start-shootoutsoccer.end
- Scoreboard:
true
- Supported Events:
- handball
- Supported Events:
handball.goalhandball.seven-meterhandball.yellow-cardhandball.suspension-twohandball.red-cardhandball.starthandball.pause-halveshandball.resume-halveshandball.end
- Scoreboard:
true
- Supported Events:
- icehockey
- Supported Events:
icehockey.goalicehockey.penaltiesicehockey.minutes-2plus2icehockey.minutes-5icehockey.minutes-5plus-game-misconduct-penaltyicehockey.penalty-missedicehockey.starticehockey.pause-periodsicehockey.resume-periodsicehockey.end-of-regular-playicehockey.start-overtimeicehockey.end-of-overtimeicehockey.start-shootouticehockey.end
- Scoreboard:
true
- Supported Events:
- tennis
- Supported Events:
tennis.game-wintennis.starttennis.end
- Scoreboard:
true
- Supported Events:
- american_football
- Supported Events: (No events supported yet)
- Scoreboard:
true
- motorsports
- Supported Events:
motorsports.crashmotorsports.overtakemotorsports.pit-stopmotorsports.fastest-lapmotorsports.penaltymotorsports.team-radiomotorsports.weather-infomotorsports.safety-carmotorsports.virtual-safety-carmotorsports.red-flagmotorsports.yellow-flagmotorsports.startmotorsports.endmotorsports.podium
- Scoreboard:
false
- Supported Events:
- ski_alpine
- Supported Events:
ski_alpine.startski_alpine.end
- Scoreboard:
false
- Supported Events:
- soccer
Provider: Gracenote
- ID:
gn-gsd - Supported Sport Types:
- soccer
- Supported Events:
soccer.goalsoccer.yellow-cardsoccer.red-cardsoccer.substitutionsoccer.penalty-kick-missed
- Scoreboard:
true
- Supported Events:
- cycling
- Supported Events: (No events supported yet)
- Scoreboard:
false
- soccer
Provider: PlanetSport (SportCC)
- ID:
sportcc - Match ID format:
football-m<id>for soccer,rugby-union-m<id>for rugby union andtennis-m<id>for tennis, where<id>is the SportCC match id (for example"matchId": "football-m412233"). For Formula 1 the match is one session of a Grand Prix:motorsport-e<raceRoundId>, where<raceRoundId>is the SportCC race-round id (for example"matchId": "motorsport-e268"). - Supported Sport Types:
- soccer
- Supported Events:
soccer.goalsoccer.own-goalsoccer.yellow-cardsoccer.red-cardsoccer.yellow-red-cardsoccer.penalty-kick-missed(missed penalties during play and in a penalty shootout)soccer.substitutionsoccer.startsoccer.pause-halvessoccer.resume-halvessoccer.end-of-regular-playsoccer.start-overtimesoccer.pause-overtimesoccer.resume-overtimesoccer.end-of-overtimesoccer.start-shootoutsoccer.end
- Scoreboard:
true - Text content: for English Premier League, UEFA Champions League and South African Carling Knockout matches,
includeTextContentadds PlanetSport’s English match commentary (shots, offsides, counter attacks, VAR checks, injuries and match notes) as text posts with the match minute. For CAF Africa Cup of Nations and South African Premier Soccer League, MTN 8 and Nedbank Cup matches it is available too, but commentary posts appear only for the matches PlanetSport writes commentary for.
- Supported Events:
- rugby_union
- Supported Events:
rugby_union.tryrugby_union.conversionrugby_union.conversion-missedrugby_union.penalty-kick-maderugby_union.penalty-tryrugby_union.drop-goalrugby_union.yellow-cardrugby_union.red-cardrugby_union.substitutionrugby_union.startrugby_union.end
- Scoreboard:
true - Text content: for World Rugby Nations Championship matches,
includeTextContentadds PlanetSport’s English match commentary (play-by-play, tries, cards, kick-offs, half time and full time) as text posts with the match minute.
- Supported Events:
- tennis
- Supported Events: (none: only the scoreboard is synced, no posts are created)
- Scoreboard:
true(set-based: one score per set; a set won in a tiebreak shows the loser’s tiebreak points, e.g.7–6⁴) - Tournaments: the ITF World Tennis Tour (tournaments whose draws are named
M15 …,M25 …,W35 …and so on) is not offered. The ATP, WTA and ATP Challenger tournaments, the Grand Slams (also those listed asITF - …) and Davis Cup are.
- motorsports
- Supported Events:
motorsports.end(every session; for the race and the sprint with the classification as text: every classified driver with team and the winner’s time or the gap, then the drivers who did not finish with their laps, and the Driver of the Day when SportCC names one)motorsports.podium(race and sprint: places 1 to 3)motorsports.fastest-lap(race and sprint, with the lap time)
- Scoreboard:
false - Timing: posts are created only after a session has ended, from SportCC’s final results; nothing is posted during a session. The liveblog gets the session’s title (
<Grand Prix>: <session>), start time and scheduled laps. - Series: only Formula 1 is covered; other motorsport series are not offered.
- Supported Events:
- soccer
Provider: PlanetSport (hneeds, cricket)
- ID:
hneeds - Match ID format:
cricket-m<id>, where<id>is the hneeds match id (for example"matchId": "cricket-m91374"). - Supported Sport Types:
- cricket
- Supported Events:
cricket.toss(with the winner’s choice to bat or field, when PlanetSport states it)cricket.wicketcricket.innings-endcricket.five-wicket-haulcricket.fiftycricket.centurycricket.end(the result)
- Scoreboard:
true(one entry per innings with the batting team, runs, wickets, overs and all out; declarations are not marked, because PlanetSport does not report them. The status line is PlanetSport’s English match status, also in liveblogs in other languages.)
- Supported Events:
- cricket
Responses
Success
- Status:
200 OK - Body: Tik::Model::Game Object
Errors
Error responses carry a JSON body:
{
"code": "not_found",
"message": "Match not found",
"field": "configuration.matchId",
"retryable": false
}
code(string): Stable machine-readable error code:invalid_request,not_found,forbidden,downstream_rejected,upstream_unavailableorinternal.message(string): Human-readable description.field(string, optional): The request field that caused the error, if attributable.retryable(boolean): Whether retrying the same request later can succeed.falsemeans the request itself must be changed — do not retry unchanged.
Status codes:
400 Bad Request: The request is malformed, required data is missing, or the referenced sport/operation is not supported.403 Forbidden: Your organization is not authorized for the requested data source.404 Not Found: The specified route, data source provider, or match is not found.422 Unprocessable Entity: Validation of the request data fails (e.g.,matchId,phaseIdandoverallIdare missing).503 Service Unavailable: The external sport data provider is temporarily unavailable. Retry later (retryable: true).500 Internal Server Error: Unexpected error on our side.
Example Request
POST /apigw/sports/v2/YOUR_ORGANIZATION_ID/liveblog/createFromExternal
{
"provider": "gn-gsd",
"matchId": "12345",
"locale": "en",
"autoPostEnabled": true
}