Player Data API

Player Details

get

Get Player Details

This endpoint retrieves detailed information about a specific cricket player based on their unique player ID.

Request

  • Method: GET

  • Endpoint: https://apiv3.sportsapi360.com/cricket/api/v2/player/:playerId

  • Path Parameter:

    • playerId (string): The unique identifier for the player whose details are being requested.

Response

  • Status Code: 200 OK

  • Content-Type: text/xml

  • Response Format: The response will be in JSON format containing the following fields:

    • image: URL of the player's image.

    • playerID: Unique identifier for the player.

    • fullName: Full name of the player.

    • nationality: Nationality of the player.

    • nationalityId: Identifier for the nationality.

    • nickName: Nickname of the player.

    • name: Name of the player.

    • teamID: Identifier for the team the player belongs to.

    • birthPlace: Place of birth of the player.

    • dob: Date of birth of the player.

    • battingStyle: Style of batting.

    • bowlingStyle: Style of bowling.

    • role: Role of the player in the team.

    • playerIPLTeam: The IPL team the player is associated with.

    • playerIPLBid: The IPL bid amount for the player.

    • description: Additional description of the player.

    • battingStats: Array containing various batting statistics.

    • bowlingStats: Array containing various bowling statistics.

    • fieldingStats: Array containing various fielding statistics.

    • socialDetails: Array containing social media details.

    • trophyDetails: Array containing details about trophies won.

    • teams: Array containing details about the teams the player has been a part of.

Authorizations
HTTPRequired
Path parameters
playerIdstringRequired
Header parameters
x-api-keystringOptionalExample: {API_KEY}
Responses
200

OK

application/json
Responseobject
get
/cricket/api/v2/player/{playerId}
200

OK

Player Recent Matches

get

Get Recent Matches for a Player

This endpoint retrieves the recent match statistics for a specific cricket player identified by their playerId. It provides detailed information about matches played across different formats including All, T20, ODI, Test, and T20 Domestic.

Request

  • Method: GET

  • Endpoint: https://apiv3.sportsapi360.com/cricket/api/v2/player/:playerId/recent

  • Path Parameters:

    • playerId: The unique identifier for the player whose recent matches are being queried.

Response Format

The response will be a JSON object containing the following keys:

  • all: An array of objects representing all recent matches.

  • t20: An array of objects representing recent T20 matches.

  • odi: An array of objects representing recent ODI matches.

  • test: An array of objects representing recent Test matches.

  • t20Domestic: An array of objects representing recent T20 Domestic matches.

Each match object within these arrays may include the following fields:

  • homeTeamShortName: Short name of the home team.

  • awayTeamShortName: Short name of the away team.

  • homeTeamID: Unique identifier for the home team.

  • awayTeamID: Unique identifier for the away team.

  • matchDate: The date of the match.

  • matchID: Unique identifier for the match.

  • matchType: Type of the match (e.g., T20, ODI).

  • opposition: Name of the opposing team.

  • battingStats: Statistics related to batting performance in the match.

  • bowlingStats: Statistics related to bowling performance in the match.

Additional Notes

  • Ensure that the playerId is valid to receive accurate match data.

  • The response will contain empty strings for fields where data is not available.

  • This endpoint is useful for applications that require up-to-date information on player performances in recent matches.

Authorizations
HTTPRequired
Path parameters
playerIdstringRequired
Header parameters
x-api-keystringOptionalExample: {API_KEY}
Responses
200

OK

application/json
Responseobject
get
/cricket/api/v2/player/{playerId}/recent
200

OK

Player Fantasy

get

Get Fantasy Matches for a Player

This endpoint retrieves fantasy match information for a specific player in various formats including T20, Test, ODI, and T20 Domestic.

Request

  • Method: GET

  • Endpoint: https://apiv3.sportsapi360.com/cricket/api/v2/player/:playerId/fantasy/matches

Path Parameters

  • playerId (string): The unique identifier for the player whose fantasy match details are being requested.

Response Format

The response will be a JSON object containing the following keys:

  • t20: An array of match objects for T20 matches.

  • test: An array of match objects for Test matches.

  • odi: An array of match objects for ODI matches.

  • t20Domestic: An array of match objects for T20 Domestic matches.

  • all: An array of match objects for all match types.

Each match object includes the following fields:

  • opposition: The team the player is facing.

  • battingStats: The player's batting statistics for the match.

  • bowlingStats: The player's bowling statistics for the match.

  • points: The fantasy points earned by the player in the match.

  • isDreamTeam: A boolean indicating if the player is part of the Dream Team for that match.

  • matchType: The type of match (e.g., T20, Test).

Authorizations
HTTPRequired
Path parameters
playerIdstringRequired
Header parameters
x-api-keystringOptionalExample: {API_KEY}
Responses
200

OK

application/json
Responseobject
get
/cricket/api/v2/player/{playerId}/fantasy/matches
200

OK

Last updated