LogoLogo
Cricket APISportMonksContactFootball API
  • Welcome
  • Getting Started
    • Getting started
    • All endpoints
    • Enriching your response
  • Our API
    • Introduction to our API
    • Continents
      • GET All Continents
      • GET Continent by ID
    • Countries
      • GET All Countries
      • GET Country by ID
    • Leagues
      • GET All Leagues
      • GET League by ID
    • Seasons
      • GET All Seasons
      • GET Season by ID
    • Fixtures
      • GET All Fixtures
      • GET Fixture by ID
    • Livescores
      • GET All Livescores
    • Teams
      • GET All Teams
      • GET Team by ID
      • GET Squad by Team and Season ID
    • Players
      • GET All Players
      • GET Player by ID
    • Officials
      • GET All Officials
      • GET Official by ID
    • Venues
      • GET All Venues
      • GET Venue by ID
    • Positions
      • GET All Positions
      • GET Position by ID
    • Stages
      • GET All Stages
      • GET Stage by ID
    • Team Rankings
      • GET Global Team Rankings
    • Standings
      • GET Standings by Season ID
      • GET Standings by Stage ID
    • Scores
      • GET All Scores
      • GET Score by ID
  • Relationships
    • Scoreboards
    • Official/Umpries
    • Results
  • API References
  • API Reference Guide
  • API Rate limit
  • Statuses and definitions
  • Demo response files
  • Events
  • Statistics
  • General
  • SportMonks
  • Plans & Pricing
  • FAQ
  • Contact
  • Changelog
    • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. Our API
  2. Players

GET All Players

GET All Players

https://cricket.sportmonks.com/api/v2.0/players

Endpoint details

Authorization

API Key

Pagination

NO

Allowed nested includes

10

Parameters

Available parameters

include

Enrich the API with more data and/or nested includes. Can be used by adding &include= etc. to your request url.

filter

Array of fields to filter on. Can be used by adding &filter[{field you want to filter}]. For example: &filter[country_id]=52126.

fields[object]

Only return fields you are interested in. Simply add &fields[object]=id,name,code to your request url.

sort

One or comma separated list of fields to sort on. Can be used by adding &sort= to your request url.

Filters

name country_id

Sort

You can sort on all fields.

Include options

career

Includes are the cornerstone of our API and allow you to enrich and customize your requests. This flexibility is what distinguishes us from our competitors.

You can learn more about what includes are and how they work here:

Example response

https://cricket.sportmonks.com/api/v2.0/players?api_token={API_TOKEN}
 "data": [
        {
            "resource": "players",
            "id": 2,
            "country_id": 52126,
            "firstname": "Ahmed",
            "lastname": "Shehzad",
            "fullname": "Ahmed Shehzad",
            "image_path": "https://cdn.sportmonks.com/images/cricket/players/2/2.png",
            "dateofbirth": "1991-11-23",
            "gender": "m",
            "battingstyle": "right-hand-bat",
            "bowlingstyle": "legbreak",
            "position": {
                "resource": "positions",
                "id": 1,
                "name": "Batsman"
            },
            "updated_at": "2020-03-31T05:00:31.000000Z"
        },
        {
            "resource": "players",
            "id": 3,
            "country_id": 52126,
            "firstname": "Anwar",
            "lastname": "Ali",
            "fullname": "Anwar Ali",
            "image_path": "https://cdn.sportmonks.com/images/cricket/players/3/3.png",
            "dateofbirth": "1987-11-25",
            "gender": "m",
            "battingstyle": "right-hand-bat",
            "bowlingstyle": "right-arm-fast-medium",
            "position": {
                "resource": "positions",
                "id": 2,
                "name": "Bowler"
            },
            "updated_at": "2020-12-14T18:58:56.000000Z"
        },
        {
            "resource": "players",
            "id": 4,
            "country_id": 52126,
            "firstname": "Sarfraz",
            "lastname": "Ahmed",
            "fullname": "Sarfraz Ahmed",
            "image_path": "https://cdn.sportmonks.com/images/cricket/players/4/4.png",
            "dateofbirth": "1987-05-22",
            "gender": "m",
            "battingstyle": "right-hand-bat",
            "bowlingstyle": "right-arm-offbreak",
            "position": {
                "resource": "positions",
                "id": 3,
                "name": "Wicketkeeper"
            },
            "updated_at": "2020-04-07T08:51:02.000000Z"
        },
        {
            "resource": "players",
            "id": 5,
            "country_id": 52126,
            "firstname": "Azhar",
            "lastname": "Ali",
            "fullname": "Azhar Ali",
            "image_path": "https://cdn.sportmonks.com/images/cricket/players/5/5.png",
            "dateofbirth": "1985-02-19",
            "gender": "m",
            "battingstyle": "right-hand-bat",
            "bowlingstyle": "legbreak",
            "position": {
                "resource": "positions",
                "id": 1,
                "name": "Batsman"
            },
            "updated_at": "2020-04-01T02:28:23.000000Z"
        },
        {
            "resource": "players",
            "id": 6,
            "country_id": 52126,
            "firstname": "Fakhar",
            "lastname": "Zaman",
            "fullname": "Fakhar Zaman",
            "image_path": "https://cdn.sportmonks.com/images/cricket/players/6/6.png",
            "dateofbirth": "1990-04-10",
            "gender": "m",
            "battingstyle": "left-hand-bat",
            "bowlingstyle": "slow-left-arm-orthodox",
            "position": {
                "resource": "positions",
                "id": 1,
                "name": "Batsman"
            },
            "updated_at": "2020-04-02T02:22:22.000000Z"
        },
PreviousPlayersNextGET Player by ID

Last updated 5 months ago

Was this helpful?

Enriching your response