SofaScore search

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

Search teams, players, tournaments, managers, referees and events across every sport, best match first.

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
qrequired string Search text. Example: arsenal
type all | teams | players | unique-tournaments | managers | referees | events What to search (default all).
sport string Only this sport (e.g. football, tennis).
page integer Page, from 0. Pass next_page back as page; null on the last page.

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

Example

curl "https://api.api.sh/sofascore/v1/search?q=arsenal" \
  -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)

{"query": "real madrid","type": "all","sport": null,"page": 0,"count": 20,"next_page": 1,"results": [{"type": "team","score": 385559.44,"id": 2829,"name": "Real Madrid","slug": "real-madrid","entity": {"id": 2829,"name": "Real Madrid","nameCode": "RMA","slug": "real-madrid","national": false,"sport": {"id": 1,"slug": "football","name": "Football"},"userCount": 7678515,"type": 0,"gender": "M","country": {"alpha2": "ES","name": "Spain","slug": "spain"}}},{"type": "player","score": 182600.9,"id": 826643,"name": "Kylian Mbappé","slug": "kylian-mbappe","entity": {"id": 826643,"name": "Kylian Mbappé","slug": "kylian-mbappe","userCount": 2296355,"team": {"id": 2829,"name": "Real Madrid","nameCode": "RMA","slug": "real-madrid","national": false,"sport": {"…": "3 fields"},"userCount": 7678515,"gender": "M"},"deceased": false,"country": {"alpha2": "FR","name": "France","slug": "france"},"shortName": "K. Mbappé","position": "F","jerseyNumber": "10","sofascoreId": "uvk-fsn"}},"… 18 more"],"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.