Get esports player head-to-head statistics

Compares two esports players over their shared matches: the shared match count and the kills and deaths of each player. A player compared with themselves answers 400 `validation_failed`. Requires the `Strave-Installation-Id` header and the `esports_data` entitlement on the Application owner. A successful call costs one `esports_calls` unit, and a failed call costs nothing.

GET/api/v2/esports/players/{playerId}/head-to-head/{opponentPlayerId}

Parameters #

PropertyTypeLocationDescription
playerIdstringRequiredpath-
opponentPlayerIdstringRequiredpath-
strave-installation-idstringRequiredheader-

Request #

curl --request GET 'https://strave.gg/api/v2/esports/players/PLAYER_ID/head-to-head/OPPONENT_PLAYER_ID' \
  --header 'Authorization: Bearer $STRAVE_ACCESS_TOKEN'

Response #

200Response for status 200
application/json
400Response for status 400
application/json
401Response for status 401
application/json
403Response for status 403
application/json
404Response for status 404
application/json
429Response for status 429
application/json
500Response for status 500
application/json
503Response for status 503
application/json
PropertyTypeDescription
dataobjectRequired-
└playerIdstringRequired-
└opponentPlayerIdstringRequired-
└sharedMatchesintegerRequired-
└playerobjectRequired-
└killsintegerRequired-
└deathsintegerRequired-
└opponentobjectRequired-
└killsintegerRequired-
└deathsintegerRequired-
└updatedAtstring | nullRequired-