CricketLineAPI

Cricket player stats API for career and recent form

Look up a player once and get the profile, format-wise batting and bowling record, and recent scores needed for selection tools, fantasy research, and player pages.

Player data included

Career record

Runs, wickets, averages, strike rate, and economy are split by format.

Recent form

Latest match scores or bowling returns support selection decisions.

Player profile

Name, role, batting and bowling style, and team information identify the player.

Search

Find matching players by name before requesting a full profile.

Example player record

{"player_id":"virat-kohli","name":"Virat Kohli","role":"batter","odi":{"matches":292,"runs":13906,"average":57.32},"recent_form":[72,0,113,45]}

Player stats use cases

Player pages

Publish a stable profile with career totals and recent form.

Fantasy research

Compare batters and bowlers before a match starts.

Selection tools

Filter players by role, format, and recent returns.

Search boxes

Resolve a typed player name to a player ID.

Player endpoints

GET /api/player/{id}

Returns the full player profile and summary record.

GET /api/player/{id}/batting

Returns batting totals by format.

GET /api/player/{id}/bowling

Returns bowling totals by format.

GET /api/player/search

Searches players by name.

Implementation notes

Search should be used before a profile request. Display the returned name and team so the user can confirm the player, then store the player ID. Do not build long-term records from a name string because more than one player can share a name.

Career totals update after completed matches are processed. Recent form is a short list and should not replace the career record. A batter may have bowling data and a bowler may have batting data, so render only the sections that contain values.

For a pre-match fantasy page, combine player stats with the schedule and series endpoints. The player endpoint explains the career record, while the schedule endpoint identifies the next match in which those stats matter.

Player stats questions

Which statistics are included?

The API includes career batting and bowling totals plus a recent form list.

When are records updated?

Records change after completed matches are processed.

Can I search by name?

Yes. Use player search to resolve a name to a player ID.

Related cricket APIs

Start with the free cricket data tier

Create an API key, call the endpoint with a match, player, or series ID, and upgrade only when your traffic grows.

Compare API plans