/hockey/h2h/{a}/{b}Head-to-head of two teams (all competitions)
Insights plan feature (403 FEATURE_NOT_IN_PLAN without it). Every meeting of two teams in our data (friendlies left out), any team sport with results: won, drawn and lost from team a's side (home_team_* = team a, away_team_* = team b), goals (the sport's score: points, runs, sets won in volleyball, maps in esports), each side's biggest win (largest margin), the last 5 meetings, and history_from (our data starts there: nothing is claimed before). Meetings without a result are counted apart. With sentences (lang de, es, it, fr). Facts only. Tennis: /tennis/h2h/{a}/{b} (players).
Parameters
ainteger · pathrequiredTeam A ID
binteger · pathrequiredTeam B ID
langstring · queryLanguage of sentences and names: de, es, it, fr
Response
JSON with success, the result in data, and where the endpoint pages its results meta.
dataobjectfactsarray of objectbased_onarray of integerhistory_fromstringimportanceintegerincompletebooleana match without a result cuts it: no sentence
opponentobjectplayer_idintegersincestringteamobjectteam_idintegerFlat fields for consumers that do not read values: the team's and player's id, the fact's main number, the day a run or "first since" reaches back to, and the start of our data (no claim reaches further).
textstringtypestringvalueintegervaluesobjecthead_to_headobjecthome_team = team_a, away_team = team_b
away_team_goalsintegeraway_team_winsintegerbiggest_away_team_winobjectbiggest_home_team_winobjectdrawsintegerhistory_fromstringour results start here: no claim reaches further back
home_team_goalsintegerGoals over the counted meetings, and each side's biggest win (largest margin, the latest of equal ones; a shoot-out is no win).
home_team_winsintegermeetingsarray of objectlatest first, at most 5
meetings_without_resultintegerMeetings in the past without a result: the counts leave them out, so a summary is incomplete; LatestMissing: the most recent one is among them.
playedintegerall meetings in our data
team_aobjectidintegernamestringteam_bobjectidintegernamestringerrorobjectcodestringmessagestringmetaobjectattributionstringAttribution a data source's licence asks for (Cricsheet's history).
limitintegeroffsetintegertotalintegersuccessboolean
Errors
| Status | Code | When |
|---|---|---|
| 400 | INVALID_PARAM | A parameter is missing or wrong, and the message names it. Fix the request; do not retry it. |
| 402 | x402 offers | No key and no valid payment: the body lists what to pay. Only a 200 answer is charged. |
| 403 | FORBIDDEN | The sport or feature is not in your plan (FEATURE_NOT_IN_PLAN for Insights and other plan features). |
| 404 | NOT_FOUND | No record with that id. |
All errors have the shape described in Errors and limits.
Generated from the OpenAPI file, version 1.0. See it as JSON