search_players
1 creditStatic referencePOST /v1/search_players
Find a player's id by name, or list a team's players
Use it when you have a name and need the player id. Cricsheet's short form ("V Kohli") and the full name both match.
Parameters
namestringoptional- Part of the name, e.g. "kohli".
team_idstringoptional- Team id from list_teams.
limitintegeroptionalleagueenum: cricket | test | odi | t20i | ipl | bbl | psl | cpl | blast | hundred | sa20 | ilt20 | county | wbbl | wpl | hundred_womenoptional- League. Defaults to cricket. One of: cricket, test, odi, t20i, ipl, bbl, psl, cpl, blast, hundred, sa20, ilt20, county, wbbl, wpl, hundred_women.
Notes
- Over MCP, ask for it in plain English and the client calls
search_playersitself. Point any MCP client athttps://mcp.yorkerapi.com/mcp?key=YOUR_API_KEY. - Each call costs 1 credit, taken before it runs and refunded if the server errors.
- Not the call you need? Find the right call by what you are trying to answer.
Request
curl -X POST https://mcp.yorkerapi.com/v1/search_players \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"name": "kohli"
}'Response
json
{
"players": [
{
"player_id": "ba607b88",
"name": "V Kohli",
"full_name": "Virat Kohli",
"matches": 837,
"last_match": "2026-10-03",
"last_team": "India"
},
{
"player_id": "eb9082b2",
"name": "A Kohli",
"full_name": null,
"matches": 41,
"last_match": "2026-08-30",
"last_team": "Germany"
},
{
"player_id": "40caa465",
"name": "T Kohli",
"full_name": "Taruwar Kohli",
"matches": 30,
"last_match": "2022-10-20",
"last_team": "Mizoram"
}
],
"count": 6
}Response fields
players[]array- List of objects
players[].player_idstringplayers[].namestringplayers[].full_namestringplayers[].matchesnumberplayers[].last_matchstringplayers[].last_teamstringcountnumber
Related endpoints
get_player5 cr
Takes the player_id this one returns.
A career by format: runs, average, strike rate, wickets, economy, hundreds, best figures
get_player_stats5 cr
Takes the player_id this one returns.
A player split by season, competition, phase (powerplay, middle, death) or format
list_competitions1 cr
Filters by the same league.
Every competition we hold with its key, format, match count and seasons
list_teams1 cr
Filters by the same league.
Team ids for international sides and franchises, men's and women's
Try it
500 free credits every month: 500 calls to search_players, and no card.