SofaScore player

GET https://api.api.sh/sofascore/v1/player
1 credit / call sports try it in the playground →

A player: name, team, position, shirt number, height, preferred foot, nationality, date of birth, contract end, market value, attribute overview (attacking, technical, tactical, defending, creativity) and strengths/weaknesses.

Every response includes credits_used: the credits this call cost.

Part of the SofaScore API: 28 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
player_idrequired string SofaScore player id or a player link (sofascore.com/football/player/bukayo-saka/934235). 934235 = Bukayo Saka. Example: 934235

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/sofascore/v1/player?player_id=934235" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"id": 934235,"name": "Bukayo Saka","first_name": "Bukayo","last_name": "Saka","slug": "bukayo-saka","url": "https://www.sofascore.com/football/player/bukayo-saka/934235","photo": "https://img.sofascore.com/api/v1/player/934235/image","team": {"id": 42,"name": "Arsenal","short_name": "Arsenal","code": "ARS","slug": "arsenal","country": "England","url": "https://www.sofascore.com/football/team/arsenal/42","logo": "https://img.sofascore.com/api/v1/team/42/image"},"position": "F","shirt_number": 7,"height": 178,"preferred_foot": "Left","country": "England","date_of_birth": "2001-09-05T00:00:00.000Z","contract_until": "2030-06-30T00:00:00.000Z","market_value": {"value": 115000000,"currency": "EUR"},"retired": null,"attribute_overviews": {"playerAttributeOverviews": [{"id": 50004,"attacking": 76,"technical": 67,"tactical": 59,"defending": 46,"creativity": 76,"position": "F","yearShift": 0},{"id": 66579,"attacking": 81,"technical": 74,"tactical": 58,"defending": 38,"creativity": 76,"position": "F","yearShift": 1},"… 2 more"],"averageAttributeOverviews": [{"id": 19812,"attacking": 61,"technical": 54,"tactical": 43,"defending": 32,"creativity": 45,"position": "F","yearShift": 0}],"sportSlug": "football"},"characteristics": {"positive": [{"type": 2,"rank": 190},{"type": 25,"rank": 465},"… 1 more"],"negative": [],"positions": ["RW"]},"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.