Players By Team
This endpoint allows you to retrieve the players from a specific team.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
lang
attribute. Example:lang=en
.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: The endpoint is updated every day.
Recommended Calls: Limit calls to 1 per day.
Use Cases
Get players from a specific team_idhttps://cricket.sportdevs.com/players-by-team?team_id=eq.{team_id}
Query Parameters
- team_id integer
Default value:
eq.1811
The id of the team
- offset string
Default value:
0
Limiting and Pagination
- limit string
Default value:
50
Limiting and Pagination
- lang string
Default value:
en
Multi-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- team_id integer
The id of the team
Note: This is a Foreign Key to
teams.id
. - team_name text
The name of the team
- team_hash_image character varying
Possible values:
<= 64 characters
The hash image of the team
- players jsonb
The players
[
{
"team_id": 1811,
"team_name": "Lahore Qalandars",
"team_hash_image": "6e286af00960b0f21cab128cde125f655242fdff79d7e1dd565615b6784555fd",
"players": [
{
"id": 41553,
"name": "Shaheen Afridi",
"position": "B",
"country_id": 67,
"hash_image": "0ca238941d4cf22f4a74898d2f1008c33f58bdd4db076bbbaba5c7ccdf8f827f",
"short_name": "S Afridi",
"country_name": "Pakistan",
"shirt_number": 10,
"date_of_birth": "2000-04-06T00:00:00+00:00",
"player_height": 202,
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25",
"player_jersey_number": "10"
},
{
"id": 42014,
"name": "Abdullah Shafique",
"position": "BM",
"country_id": 67,
"hash_image": "a38cdf6e97455a359ae205c292fc9a9eef1f58ccdd920fc539ea689fcb4b709f",
"short_name": "Abdullah Shafique",
"country_name": "Pakistan",
"shirt_number": 57,
"date_of_birth": "1999-11-20T00:00:00+00:00",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25",
"player_jersey_number": "57"
},
{
"id": 42510,
"name": "David Wiese",
"position": "AR",
"country_id": 169,
"hash_image": "34acf1bfb3b039960fc821720e3894e9dfbfe60ce60e1238883727ee99a0a754",
"short_name": "D Wiese",
"country_name": "Namibia",
"date_of_birth": "1985-05-18T00:00:00+00:00",
"country_hash_image": "20ef0f0c8d0eea98772412cea9b3b92612e3e53cb5e59152b5703165f56e8a53"
},
{
"id": 45053,
"name": "Ahsan Bhatti",
"position": "B",
"country_id": 67,
"hash_image": "606baf08eca2dfdc3a529a855695c409b9c6cf5d55748d135ace351ad7f55973",
"short_name": "A Bhatti",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 108220,
"name": "Sudais Khan",
"position": "BM",
"country_id": 67,
"hash_image": "5efb293c0538cbf85bd7ef80df3a53026a5cb0ceb4c85131e1e89ab9bdf5b828",
"short_name": "Sudais Khan",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 249171,
"name": "Dilbar Hussain",
"position": "B",
"country_id": 67,
"hash_image": "30586558d31fb49f27aa9621eb1bfabe5a610a7df687f383e60e6a68ec2c27a6",
"short_name": "Dilbar Hussain",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 284966,
"name": "Sohail Akhtar",
"position": "AR",
"country_id": 67,
"hash_image": "cb38e70a17175794cfab8524434b01f0478d967d9222751c20ae1d7ad71de000",
"short_name": "S Akhtar",
"country_name": "Pakistan",
"date_of_birth": "1986-03-02T00:00:00+00:00",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 285033,
"name": "Syed Faridoun",
"position": "BM",
"country_id": 67,
"hash_image": "254dbda904e3e562032f384aab453debafed7d04cfd0a7be3701c5de741f4a63",
"short_name": "Syed Faridoun",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 285228,
"name": "Salman Fayyaz",
"position": "AR",
"country_id": 67,
"hash_image": "b9c87c898ed9aa132288da1c971340dc048339e650ea2a43dd9a112cd196031f",
"short_name": "Salman Fayyaz",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 287803,
"name": "Abid Ali",
"country_id": 67,
"hash_image": "de37f0d9d27cb2888989337c8521fdcddaf28d943fb28030be83272f49dc0123",
"short_name": "A. Ali",
"country_name": "Pakistan",
"date_of_birth": "1987-10-16T00:00:00+00:00",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 290504,
"name": "Faizan Khan",
"hash_image": "81b48428c560f1b6184cdd0ee4fdd1e2a2611f5968ed83648cb44190f6f9f907",
"short_name": "F. Khan"
},
{
"id": 290521,
"name": "Callum Ferguson",
"country_id": 26,
"hash_image": "9b0894586b160583f831d38a9bd817f590ef1fbc85912bef3d3714c42b834108",
"short_name": "C. Ferguson",
"country_name": "Australia",
"date_of_birth": "1984-11-21T00:00:00+00:00",
"country_hash_image": "86936315fce40c126916c0c980e24be16cd8fd390243c6740f58c62d08cea336"
},
{
"id": 291274,
"name": "Ali Mirza",
"country_id": 74,
"hash_image": "7090de7a11648fbdd59bdabe3af0c6b2df781ca48820efea37906af4dfabfb3e",
"short_name": "A. Mirza",
"country_name": "United Arab Emirates",
"date_of_birth": "1999-11-03T00:00:00+00:00",
"country_hash_image": "bb1c202965ca241975a90c4d4db43001bad7ee64ba9b4411be5d2010ac8db164"
},
{
"id": 499907,
"name": "Jaahid Shaukat Ali",
"hash_image": "27b8330c3d7024ae5995627ecf6a41742d10a58ab06d6054ac4716678f37f4a1",
"short_name": "J. S. Ali"
},
{
"id": 510330,
"name": "Abid Ali",
"country_id": 67,
"hash_image": "de37f0d9d27cb2888989337c8521fdcddaf28d943fb28030be83272f49dc0123",
"short_name": "A. Ali",
"country_name": "Pakistan",
"date_of_birth": "1987-10-16T00:00:00+00:00",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 540737,
"name": "Raja Farzan",
"hash_image": "cebd2fa8955263bc9ef0d58b46edfac6f8496fd4b22acc4d494c35fc0e9a81b2",
"short_name": "R. Farzan"
},
{
"id": 545101,
"name": "Salman Butt",
"country_id": 67,
"hash_image": "90e6af97d0939d4fa2f89ac3ce1cc6afdabbdb17ca41088c12085253d9b9179f",
"short_name": "S. Butt",
"country_name": "Pakistan",
"date_of_birth": "1984-10-07T00:00:00+00:00",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 563807,
"name": "Aizaz Cheema",
"country_id": 67,
"hash_image": "3dea06bf7a401a082faee402a718c34eb7b7df04081c42bb156f0a7b9d8b1395",
"short_name": "A. Cheema",
"country_name": "Pakistan",
"date_of_birth": "1979-09-05T00:00:00+00:00",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 577412,
"name": "Aitizaz Khan",
"position": "AR",
"country_id": 67,
"hash_image": "614ae18fda2084690779631eea2aa1d216921310da7ad535f55aa3930620e9d7",
"short_name": "Aitizaz Khan",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 590272,
"name": "Muhammad Naeem",
"position": "BM",
"country_id": 67,
"hash_image": "794782da5026f67a8a9580f37de8ae9b3d0572b1ff61fdb008e7c54c7ebe3eef",
"short_name": "Muhammad Naeem",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 590278,
"name": "Jahanzeb Naveed",
"position": "WK",
"country_id": 35,
"hash_image": "7753c638f06a09f707ae15ba15ba0aed409b81522ffbe1955f9a247d8de58678",
"short_name": "Jahanzeb Naveed",
"country_name": "Qatar",
"country_hash_image": "48947c06d09a212ca1dcfbdf5a63d18dde8c964dbc66eea033a363eee856de21"
},
{
"id": 590281,
"name": "Ahsan Hafeez",
"position": "AR",
"country_id": 67,
"hash_image": "9a928de23c203033430487c3178f7cbd34382ed079c53d94c2009aad2148e587",
"short_name": "Ahsan Hafeez",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 590284,
"name": "Mansoor Saleem",
"position": "WK",
"country_id": 67,
"hash_image": "d9fbf145c2544d0fee8bebef5324c9997185ad6d45cb974414956fa4dacea090",
"short_name": "Mansoor Saleem",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
},
{
"id": 590302,
"name": "Mehboob Ur Rehman",
"position": "B",
"country_id": 67,
"hash_image": "aa1895628f4013c950970f03204343207c94a0c811a8b9f7001fdbeffcfa5f42",
"short_name": "Mehboob Ur Rehman",
"country_name": "Pakistan",
"country_hash_image": "fcab7fcc2b4cffd9bb45003bfc2e468a04ef6f77ca8200a7341f027631584d25"
}
]
}
]