Head to head Matches
List of Matches that are played against two teams in a competition
Match History for head-to-head of two teams
Return the Matches for a two specific teams in a competition.
- : Read any data from the organization down
You can create a JSON Web Token (JWT) using the token API call. Each token is given a set of scopes/permissions. Each endpoint has a scope/permission that it requires to run. If your token does not possess the correct scope then you will be unable to make the API call.
The unique identifier of the competition
009e9276-5c80-11e8-9c2d-fa7ae01bbebcThe unique identifier of the entitiy
009e9276-5c80-11e8-9c2d-fa7ae01bbebcThe unique identifier of the entitiy
009e9276-5c80-11e8-9c2d-fa7ae01bbebcThe unique identifier of the organization
b1a23Record was added after this date/time. In UTC.
2018-08-16T02:10:48A comma separated list of fields that will instead be interpreted as an externalId. See External Ids for more information.
entityId,personIdA comma separated list of fields to display. The response will only display these fields. See Partial Response section for more information.
dob,firstName,organization(id),organizations[name], teams[name,details/metrics/*,tags(id)]Type of Fixture
ALL_STARAll StarDEMONSTRATIONDemonstrationFINALFinalFRIENDLYFriendlyPLAYOFFPlayoffPRESEASONPre SeasonREGULARRegular
REGULARPossible values: Where match start time (in local time) >= this value
2018-08-16T18:00:00Where match start time (in UTC) >= this value
2018-08-16T18:00:00Don't display data fields with null values or empty structures
trueA comma separated list of resource types to include. See Resource Inclusion for more information.
organizations,fixtures,entitiesThe maximum number of records to return. See Pagination for more information.
10Example: 10The offset of the records. See Pagination for more information.
10The unique identifier of the season
009e9276-5c80-11e8-9c2d-fa7ae01bbebcFixture status. Can specify multiple, delimited by comma.
ABANDONEDAbandonedABOUT_TO_STARTAbout to StartBYEByeCANCELLEDCancelledCONFIRMEDConfirmedDRAFTDraftFINISHEDFinishedIF_NEEDEDIf NeededIN_PROGRESSIn ProgressON_PITCHOn PitchPENDINGPendingPOSTPONEDPostponedSCHEDULEDScheduledWARM_UPWarm Up
SCHEDULEDPossible values: Fixture status to not include. Can specify multiple, delimited by comma.
ABANDONEDAbandonedABOUT_TO_STARTAbout to StartBYEByeCANCELLEDCancelledCONFIRMEDConfirmedDRAFTDraftFINISHEDFinishedIF_NEEDEDIf NeededIN_PROGRESSIn ProgressON_PITCHOn PitchPENDINGPendingPOSTPONEDPostponedSCHEDULEDScheduledWARM_UPWarm Up
SCHEDULEDPossible values: Where match start time (in local time) <= this value
2018-08-16T18:00:00Where match start time (in UTC) <= this value
2018-08-16T18:00:00Record was modified after this date/time. In UTC.
2018-08-16T02:11:48Successful operation
Error
GET /v1/basketball/o/{organizationId}/competitions/{competitionId}/headToHead/fixtures/entities/{entityId1}/{entityId2} HTTP/1.1
Host: api.dc.connect.sportradar.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"meta": {
"version": 1,
"codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
"code": 200,
"time": "2018-06-05 23:43:41.227584+00:00",
"fromCache": false,
"count": 7,
"limit": 10,
"offset": 10,
"generationTime": 0.011604
},
"links": {
"self": "https://example.com",
"next": "https://example.com",
"previous": "https://example.com"
},
"included": {
"resources": {
"ANY_ADDITIONAL_PROPERTY": "league"
}
},
"data": [
{
"organizationId": "9",
"organization": {
"resourceType": "organizations",
"id": "9"
},
"fixtureId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"fixture": {
"resourceType": "fixtures",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"seasonId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"season": {
"resourceType": "seasons",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"competitionId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"competition": {
"resourceType": "competitions",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
}
}
]
}Match History for head-to-head of two teams across multiple seasons or competitions
Return the Matches for a two specific teams in multiple seasons or competitions.
- : Read any data from the organization down
You can create a JSON Web Token (JWT) using the token API call. Each token is given a set of scopes/permissions. Each endpoint has a scope/permission that it requires to run. If your token does not possess the correct scope then you will be unable to make the API call.
The unique identifier of the organization
b1a23The unique identifier of the person
009e9276-5c80-11e8-9c2d-fa7ae01bbebcThe unique identifier of the person
009e9276-5c80-11e8-9c2d-fa7ae01bbebcRecord was added after this date/time. In UTC.
2018-08-16T02:10:48The unique identifiers of the competitions (comma-delimited).
009e9276-5c80-11e8-9c2d-fa7ae01bbebc,de83c6a8-3b29-11eb-bdb7-0242ac130005A comma separated list of fields that will instead be interpreted as an externalId. See External Ids for more information.
entityId,personIdA comma separated list of fields to display. The response will only display these fields. See Partial Response section for more information.
dob,firstName,organization(id),organizations[name], teams[name,details/metrics/*,tags(id)]Type of Fixture
ALL_STARAll StarDEMONSTRATIONDemonstrationFINALFinalFRIENDLYFriendlyPLAYOFFPlayoffPRESEASONPre SeasonREGULARRegular
REGULARPossible values: Where match start time (in local time) >= this value
2018-08-16T18:00:00Where match start time (in UTC) >= this value
2018-08-16T18:00:00Don't display data fields with null values or empty structures
trueA comma separated list of resource types to include. See Resource Inclusion for more information.
organizations,fixtures,entitiesThe maximum number of records to return. See Pagination for more information.
10Example: 10The offset of the records. See Pagination for more information.
10The unique identifier of the season
009e9276-5c80-11e8-9c2d-fa7ae01bbebcThe unique identifiers of the seasons (comma-delimited).
009e9276-5c80-11e8-9c2d-fa7ae01bbebc,de83c6a8-3b29-11eb-bdb7-0242ac130005Fixture status. Can specify multiple, delimited by comma.
ABANDONEDAbandonedABOUT_TO_STARTAbout to StartBYEByeCANCELLEDCancelledCONFIRMEDConfirmedDRAFTDraftFINISHEDFinishedIF_NEEDEDIf NeededIN_PROGRESSIn ProgressON_PITCHOn PitchPENDINGPendingPOSTPONEDPostponedSCHEDULEDScheduledWARM_UPWarm Up
SCHEDULEDPossible values: Fixture status to not include. Can specify multiple, delimited by comma.
ABANDONEDAbandonedABOUT_TO_STARTAbout to StartBYEByeCANCELLEDCancelledCONFIRMEDConfirmedDRAFTDraftFINISHEDFinishedIF_NEEDEDIf NeededIN_PROGRESSIn ProgressON_PITCHOn PitchPENDINGPendingPOSTPONEDPostponedSCHEDULEDScheduledWARM_UPWarm Up
SCHEDULEDPossible values: Where match start time (in local time) <= this value
2018-08-16T18:00:00Where match start time (in UTC) <= this value
2018-08-16T18:00:00Record was modified after this date/time. In UTC.
2018-08-16T02:11:48Successful operation
Error
GET /v1/basketball/o/{organizationId}/headToHead/fixtures/persons/{personId1}/{personId2} HTTP/1.1
Host: api.dc.connect.sportradar.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"meta": {
"version": 1,
"codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
"code": 200,
"time": "2018-06-05 23:43:41.227584+00:00",
"fromCache": false,
"count": 7,
"limit": 10,
"offset": 10,
"generationTime": 0.011604
},
"links": {
"self": "https://example.com",
"next": "https://example.com",
"previous": "https://example.com"
},
"included": {
"resources": {
"ANY_ADDITIONAL_PROPERTY": "league"
}
},
"data": [
{
"organizationId": "9",
"organization": {
"resourceType": "organizations",
"id": "9"
},
"fixtureId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"fixture": {
"resourceType": "fixtures",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"seasonId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"season": {
"resourceType": "seasons",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"competitionId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"competition": {
"resourceType": "competitions",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
}
}
]
}Last updated
Was this helpful?