Get one cricket player's profile by playerId: name, role, batting and bowling style, birth details, best rankings, team IDs and recent form

View all Cricket Live Scores, Scorecards & Stats API endpoints →

Returns the profile of a single cricket player. playerId is required, goes in the URL path and is a number: use the id value from the trending players or player search operations of this product. The default 6635 is an example value. A live probe for playerId 6635 returned HTTP 200 with a JSON object whose observed fields are id, name, fullName, role, bat (batting style), bowl (bowling style), height, birthPlace, intlTeam, teams (a comma-separated string of team names), DoB, DoBFormat, image (a URL string), bio, rankings, appIndex, faceImageId and intlTeamImageId (both integers), teamNameIds (an array of teamId and teamName objects), playerTeamIds (a comma-separated string of team IDs), and recentBatting and recentBowling objects that each hold a headers array and a rows array. In that probe, rankings.bat held testBestRank, odiBestRank and t20BestRank as strings while rankings.bowl and rankings.all were empty objects. Some text values carry trailing spaces, DoB includes an age in brackets, and bio contains HTML line-break tags. In the probe each row of recentBatting had five values against four headers, with the leading value looking like a match identifier and followUpLinkText holding a relative page path. The source 200 example is cut off inside bio, so fields after it are known only from the probe. Fields are coverage-dependent and a player may have empty ranking or form sections.

API Features

Profile fields in one call A single playerId request returns the name, fullName, role, bat style, bowl style, height, birthPlace and intlTeam fields, which is enough to fill a player header without joining several sources.
Two date-of-birth formats DoB carries the date with an age in brackets, and DoBFormat carries the plain date, so you can display the readable text or parse the clean value without stripping the age.
Best-rank summary object The rankings object groups bat, bowl and all sections, and the batting section in the probe held Test, ODI and T20 best ranks as strings, so a card can show career-best ranks and hide the empty sections.
Team ID links teamNameIds pairs each teamId with a teamName, and playerTeamIds repeats the IDs as a comma-separated string, giving you identifiers to open team pages instead of matching team names by text.
Recent batting and bowling tables recentBatting and recentBowling each return headers and rows with a followUpLinkText page path, so a profile can show the latest form as a table without calling a match endpoint first.
Image identifiers for portraits faceImageId and intlTeamImageId are integers that the image operation of this product accepts, so a profile can show the portrait and the national team badge by ID.
Narrative biography text The bio field holds a long career summary with HTML line breaks between paragraphs, which suits an about section once the breaks are converted into your own paragraph markup.

Live API Demo

GET /api/project/cricbuzz-cricket/players-get-info

Request cost is temporarily unavailable. No price is assumed.

View pricing

API Response (JSON)

{}
curl -X GET 'https://api.opendata-api.com/api/project/cricbuzz-cricket/players-get-info?key=<API_KEY>&playerId=6635'
📢
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Contact Us

Use Cases

Frequently asked questions

Where do I get the playerId for this endpoint?

Use the id value returned by the trending players or player search operations of this product. Those operations return it as a string of digits, while this endpoint declares playerId as a required number in the URL path. The default 6635 is only an example value.

Which response fields were actually observed?

A probe for playerId 6635 returned HTTP 200 with id, name, fullName, role, bat, bowl, height, birthPlace, intlTeam, teams, DoB, DoBFormat, image, bio, rankings, appIndex, faceImageId, intlTeamImageId, teamNameIds, playerTeamIds, recentBatting and recentBowling. The source example is cut off inside bio, so use the probe as the field reference.

Why are rankings.bowl and rankings.all empty?

In the probe for the default player, rankings.bat held testBestRank, odiBestRank and t20BestRank, while bowl and all were empty objects. Treat an empty object as no ranking data returned for that section, not as a rank of zero.

Which date-of-birth field should I store?

Store DoBFormat, which holds the plain date text. DoB includes an age in brackets that was correct only when the response was generated, so it will go out of date if you save it.

Why do recentBatting rows have more values than headers?

In the probe, each row had five values against four headers (Score, OPPN., Format, Date). The leading value looked like a match identifier, and followUpLinkText held a page path. Verify this mapping on your own sample before building a link from it.

What are the teamNameIds and playerTeamIds fields for?

teamNameIds is an array of objects with teamId and teamName, and playerTeamIds is the same set of team IDs as one comma-separated string. Use the IDs to navigate to team data of this product and keep the names for display.

Is the bio field plain text?

No. The bio contains HTML line-break tags between paragraphs, so convert or strip them before showing the text in a plain text view, and do not insert it as raw HTML without sanitizing it.

What happens for an unknown playerId?

The supplied evidence documents only the successful response, and no probe covered an invalid ID. Handle non-200 responses and empty sections in your client, and take IDs from the trending or search operations to avoid guessing.

Related operations

Guides

View Subscription Plans →