Career Statistics
A person can have statistics associated with their participation in multiple teams/seasons over their career.
Return a list of person statistic totals for their career covering all 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 entity
009e9276-5c80-11e8-9c2d-fa7ae01bbebcA 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: Don't display data fields with null values or empty structures
trueWhere the result was
AWAYAwayHOMEHome
A comma separated list of resource types to include. See Resource Inclusion for more information.
organizations,fixtures,entitiesIs the person a player?
Is the person a team official?
The 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 person
009e9276-5c80-11e8-9c2d-fa7ae01bbebcThe unique identifiers of the persons (comma-delimited).
009e9276-5c80-11e8-9c2d-fa7ae01bbebc,de83c6a8-3b29-11eb-bdb7-0242ac130005Is the person a starter in the match ?
What the result was
DRAWDrawLOSSLossWINWin
Successful operation
Error
GET /v1/baseball/o/{organizationId}/statistics/for/person/in/career 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": [
{
"personId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"person": {
"resourceType": "persons",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"organizationId": "9",
"organization": {
"resourceType": "organizations",
"id": "9"
},
"statistics": {}
}
]
}Person career representational statistics
Return a list of person statistic totals for their career covering all competitions, groupped by their discipline, age group, and representation
- : 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 age group of the season
JUNIORJuniorMASTERSMastersSENIORSeniorUNDER_15Under 15UNDER_16Under 16UNDER_17Under 17UNDER_18Under 18UNDER_19Under 19UNDER_20Under 20UNDER_21Under 21UNDER_22Under 22UNDER_23Under 23YOUTHYouth
SENIORPossible values: The discipline for a match
BEACHBeachHOCKEY5SHockey5sINDOORIndoorOUTDOOROutdoorPARAHOCKEYPara hockey
INDOORPossible values: The unique identifier of the entity
009e9276-5c80-11e8-9c2d-fa7ae01bbebcA 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: Don't display data fields with null values or empty structures
trueWhere the result was
AWAYAwayHOMEHome
A comma separated list of resource types to include. See Resource Inclusion for more information.
organizations,fixtures,entitiesIs the person a player?
Is the person a team official?
The 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 person
009e9276-5c80-11e8-9c2d-fa7ae01bbebcThe unique identifiers of the persons (comma-delimited).
009e9276-5c80-11e8-9c2d-fa7ae01bbebc,de83c6a8-3b29-11eb-bdb7-0242ac130005What level are the competitors representing
CLUBClubCOUNTRYCountryPERSONPerson
CLUBPossible values: Who the person was representing
AUSTRALIAWhat country representation is used
ANYAny countryNONENo country
The unique identifier of the season
009e9276-5c80-11e8-9c2d-fa7ae01bbebcIs the person a starter in the match ?
What the result was
DRAWDrawLOSSLossWINWin
Successful operation
Error
GET /v1/baseball/o/{organizationId}/statistics/for/person/in/career/representing 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": [
{
"personId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"person": {
"resourceType": "persons",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"organizationId": "9",
"organization": {
"resourceType": "organizations",
"id": "9"
},
"ageGroup": "SENIOR",
"discipline": "INDOOR",
"representing": "AUSTRALIA",
"statistics": {}
}
]
}Statistics for a person in their career
Return the statistics for a specific person in their career.
- : 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-fa7ae01bbebcA 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: Don't display data fields with null values or empty structures
trueWhere the result was
AWAYAwayHOMEHome
A comma separated list of resource types to include. See Resource Inclusion for more information.
organizations,fixtures,entitiesIs the person a player?
Is the person a team official?
The maximum number of records to return. See Pagination for more information.
10Example: 10The offset of the records. See Pagination for more information.
10Is the person a starter in the match ?
What the result was
DRAWDrawLOSSLossWINWin
Successful operation
Error
GET /v1/baseball/o/{organizationId}/statistics/for/person/in/career/persons/{personId} 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": [
{
"personId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"person": {
"resourceType": "persons",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"organizationId": "9",
"organization": {
"resourceType": "organizations",
"id": "9"
},
"statistics": {}
}
]
}Statistics for a person in their career by season and entity
Return the statistics for a specific person in their career by season and entity.
- : 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-fa7ae01bbebcA 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: Don't display data fields with null values or empty structures
trueWhere the result was
AWAYAwayHOMEHome
A comma separated list of resource types to include. See Resource Inclusion for more information.
organizations,fixtures,entitiesIs the person a player?
Is the person a team official?
The maximum number of records to return. See Pagination for more information.
10Example: 10The offset of the records. See Pagination for more information.
10Is the person a starter in the match ?
What the result was
DRAWDrawLOSSLossWINWin
Successful operation
Error
GET /v1/baseball/o/{organizationId}/statistics/for/person/in/career/seasons/persons/{personId} 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": [
{
"personId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"person": {
"resourceType": "persons",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"organizationId": "9",
"organization": {
"resourceType": "organizations",
"id": "9"
},
"seasonId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"season": {
"resourceType": "seasons",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"entityId": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc",
"entity": {
"resourceType": "entities",
"id": "009e9276-5c80-11e8-9c2d-fa7ae01bbebc"
},
"statistics": {}
}
]
}Last updated
Was this helpful?