SofaScore event odds

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

Betting markets for an event (full time result, double chance, both teams to score, over/under lines, Asian handicap, corners, cards ...) with fractional and decimal prices, opening price, movement and winning flags, plus the expected vs actual win rate of the favourite.

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
event_idrequired string SofaScore event id or a match link (sofascore.com/football/match/liverpool-arsenal/HQfh#id:16363907). 16363907 = Liverpool v Arsenal, Premier League 26/27. Example: 16363907
market all | featured all (default) or featured.
provider_id integer Odds provider id (default 1).

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

Example

curl "https://api.api.sh/sofascore/v1/event/odds?event_id=16363907" \
  -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)

{"event_id": 16363907,"provider_id": 1,"market": "all","count": 17,"markets": [{"id": 1,"name": "Full time","group": "1X2","period": "Full-time","is_live": false,"suspended": false,"line": null,"choices": [{"name": "1","fractional": "47/25","initial_fractional": "9/4","decimal": 2.88,"change": -1,"winning": false},{"name": "X","fractional": "5/2","initial_fractional": "5/2","decimal": 3.5,"change": 0,"winning": false},"… 1 more"]},{"id": 2,"name": "Double chance","group": "Double chance","period": "Full-time","is_live": false,"suspended": false,"line": null,"choices": [{"name": "1X","fractional": "8/15","initial_fractional": "8/13","decimal": 1.533,"change": -1,"winning": false},{"name": "X2","fractional": "2/5","initial_fractional": "4/11","decimal": 1.4,"change": 1,"winning": true},"… 1 more"]},"… 15 more"],"winning_odds": {"home": {"fractionalValue": "47/25","expected": 35,"actual": 20,"id": 26421787},"away": {"fractionalValue": "7/5","expected": 42,"actual": 33,"id": 26421788}},"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.