Sports player profile with team information, position, physical attributes, nationality, and performance statistics (goals, assists). Used for sports databases, fantasy sports, and team management systems.
https://api.mockly.codes/players?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/playersGet a collection of players
/people/players/players/:idGet a single player by ID
/people/players/:id/players/metaGet resource metadata and schema
/people/players/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/players?q=laptopGET https://api.mockly.codes/players?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 players
fetch('https://api.mockly.codes/players?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/players?count=10'
)
data = response.json()curl "https://api.mockly.codes/players?count=10"fetch('https://api.mockly.codes/players?nocache=true')idintegerUnique identifier for the player
random_intnamestringFull name of the player
namejersey_numberintegerJersey or uniform number
random_intpositionstringPlaying position (e.g., Forward, Midfielder, Defender, Goalkeeper)
positionteam_idintegerForeign key reference to the team the player belongs to
random_intteam_namestringName of the team the player plays for
team_nameageintegerPlayer's age
random_intheightnumberPlayer height in centimeters
heightweightnumberPlayer weight in kilograms
weightnationalitystringPlayer's country of origin
countrygoalsintegerTotal number of goals scored
random_intassistsintegerTotal number of assists made
random_intphotostringURL to the player's photo
avataruricountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request