# SofaScore event odds API

Get SofaScore Event Odds data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as event_id, output, raw, and retrieve structured data including requested SofaScore event identifier, requested market scope, odds provider identifier applied, market grouping label, and is live to compare market lines, monitor market availability, and contextualize implied probabilities.

Documentation: https://openany.si/sofascore/sofascore-event-odds-api/40060c35-935e-45e6-bbda-aef59537fe2f/
API ID: 40060c35-935e-45e6-bbda-aef59537fe2f
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/odds
Page update time: 2026-12-03T02:55:26.123Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:55:24.595Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## SofaScore Event Odds API

Pass event\_id with optional market (all or featured) and provider\_id (default 1) to retrieve match betting markets. The payload returns markets\[\] with choices\[\] pricing plus winning\_odds home and away expected-versus-actual indicators.

## What You Can Build

- **Compare market lines**: Read markets\[\].choices\[\].decimal and fractional alongside initial\_fractional to track odds drift.
- **Monitor market availability**: Check markets\[\].suspended and is\_live before displaying odds in match widgets.
- **Contextualize implied probabilities**: Use winning\_odds.home and winning\_odds.away expected versus actual metrics alongside pre-match form.

## Returned Data

| Field | Meaning |
| --- | --- |
| `event_id` | Requested SofaScore event identifier |
| `market` | Requested market scope (all or featured) |
| `provider_id` | Odds provider identifier applied |
| `count` | Number of betting markets returned |
| `markets[].name` | Betting market title such as Full time |
| `markets[].group` | Market grouping label |
| `markets[].is_live` | Whether the market is a live in-play market |
| `markets[].suspended` | Whether betting on the market is currently suspended |
| `markets[].choices[].decimal` | Decimal odds price for the selection |
| `winning_odds.home.expected` | Historical expected win percentage for the home odds |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore event odds API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string",
          "description": "SofaScore event id or a match link (sofascore.com/football/match/liverpool-arsenal/HQfh#id:16363907). 16363907 = Liverpool v Arsenal, Premier League 26/27."
        },
        "market": {
          "type": "string",
          "description": "`all` (default) or `featured`.",
          "enum": [
            "all",
            "featured"
          ]
        },
        "provider_id": {
          "type": "integer",
          "description": "Odds provider id (default 1)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "event_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "event_id": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "market": {
      "type": "string"
    },
    "markets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "choices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "change": {
                  "type": "integer"
                },
                "decimal": {
                  "type": "number"
                },
                "fractional": {
                  "type": "string"
                },
                "initial_fractional": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "winning": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "group": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "is_live": {
            "type": "boolean"
          },
          "line": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "period": {
            "type": "string"
          },
          "suspended": {
            "type": "boolean"
          }
        }
      }
    },
    "provider_id": {
      "type": "integer"
    },
    "winning_odds": {
      "type": "object",
      "properties": {
        "away": {
          "type": "object",
          "properties": {
            "actual": {
              "type": "integer"
            },
            "expected": {
              "type": "integer"
            },
            "fractionalValue": {
              "type": "string"
            },
            "id": {
              "type": "integer"
            }
          }
        },
        "home": {
          "type": "object",
          "properties": {
            "actual": {
              "type": "integer"
            },
            "expected": {
              "type": "integer"
            },
            "fractionalValue": {
              "type": "string"
            },
            "id": {
              "type": "integer"
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/odds?event_id=16363907&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 17,
  "credits_used": 1,
  "event_id": 16363907,
  "fetched_at": "2026-11-19T12:23:01.484Z",
  "market": "all",
  "markets": [
    {
      "choices": [
        {
          "change": -1,
          "decimal": 2.88,
          "fractional": "47/25",
          "initial_fractional": "9/4",
          "name": "1",
          "winning": false
        },
        {
          "change": 0,
          "decimal": 3.5,
          "fractional": "5/2",
          "initial_fractional": "5/2",
          "name": "X",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 2.4,
          "fractional": "7/5",
          "initial_fractional": "11/10",
          "name": "2",
          "winning": true
        }
      ],
      "group": "1X2",
      "id": 1,
      "is_live": false,
      "line": null,
      "name": "Full time",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 1.533,
          "fractional": "8/15",
          "initial_fractional": "8/13",
          "name": "1X",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 1.4,
          "fractional": "2/5",
          "initial_fractional": "4/11",
          "name": "X2",
          "winning": true
        },
        {
          "change": -1,
          "decimal": 1.286,
          "fractional": "2/7",
          "initial_fractional": "3/10",
          "name": "12",
          "winning": true
        }
      ],
      "group": "Double chance",
      "id": 2,
      "is_live": false,
      "line": null,
      "name": "Double chance",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 3.25,
          "fractional": "9/4",
          "initial_fractional": "12/5",
          "name": "1",
          "winning": false
        },
        {
          "change": 0,
          "decimal": 2.3,
          "fractional": "13/10",
          "initial_fractional": "13/10",
          "name": "X",
          "winning": false
        },
        {
          "change": 0,
          "decimal": 2.875,
          "fractional": "15/8",
          "initial_fractional": "15/8",
          "name": "2",
          "winning": true
        }
      ],
      "group": "1X2",
      "id": 3,
      "is_live": false,
      "line": null,
      "name": "1st half",
      "period": "1st half",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 2,
          "fractional": "1/1",
          "initial_fractional": "6/5",
          "name": "1",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 1.727,
          "fractional": "8/11",
          "initial_fractional": "8/13",
          "name": "2",
          "winning": true
        }
      ],
      "group": "Draw no bet",
      "id": 4,
      "is_live": false,
      "line": null,
      "name": "Draw no bet",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 1.571,
          "fractional": "4/7",
          "initial_fractional": "8/13",
          "name": "Yes",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 2.25,
          "fractional": "5/4",
          "initial_fractional": "6/5",
          "name": "No",
          "winning": true
        }
      ],
      "group": "Both teams to score",
      "id": 5,
      "is_live": false,
      "line": null,
      "name": "Both teams to score",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": 0,
          "decimal": 1.04,
          "fractional": "1/25",
          "initial_fractional": "1/25",
          "name": "Over",
          "winning": true
        },
        {
          "change": 0,
          "decimal": 13,
          "fractional": "12/1",
          "initial_fractional": "12/1",
          "name": "Under",
          "winning": false
        }
      ],
      "group": "Match goals",
      "id": 9,
      "is_live": false,
      "line": "0.5",
      "name": "Match goals",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 1.2,
          "fractional": "1/5",
          "initial_fractional": "2/9",
          "name": "Over",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 4.5,
          "fractional": "7/2",
          "initial_fractional": "10/3",
          "name": "Under",
          "winning": true
        }
      ],
      "group": "Match goals",
      "id": 9,
      "is_live": false,
      "line": "1.5",
      "name": "Match goals",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 1.667,
          "fractional": "4/6",
          "initial_fractional": "11/10",
          "name": "Over",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 2.2,
          "fractional": "6/5",
          "initial_fractional": "8/11",
          "name": "Under",
          "winning": true
        }
      ],
      "group": "Match goals",
      "id": 9,
      "is_live": false,
      "line": "2.5",
      "name": "Match goals",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 2.625,
          "fractional": "13/8",
          "initial_fractional": "7/4",
          "name": "Over",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 1.5,
          "fractional": "1/2",
          "initial_fractional": "4/9",
          "name": "Under",
          "winning": true
        }
      ],
      "group": "Match goals",
      "id": 9,
      "is_live": false,
      "line": "3.5",
      "name": "Match goals",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 4.5,
          "fractional": "7/2",
          "initial_fractional": "4/1",
          "name": "Over",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 1.2,
          "fractional": "1/5",
          "initial_fractional": "1/6",
          "name": "Under",
          "winning": true
        }
      ],
      "group": "Match goals",
      "id": 9,
      "is_live": false,
      "line": "4.5",
      "name": "Match goals",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 9,
          "fractional": "8/1",
          "initial_fractional": "9/1",
          "name": "Over",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 1.071,
          "fractional": "1/14",
          "initial_fractional": "1/16",
          "name": "Under",
          "winning": true
        }
      ],
      "group": "Match goals",
      "id": 9,
      "is_live": false,
      "line": "5.5",
      "name": "Match goals",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 19,
          "fractional": "18/1",
          "initial_fractional": "20/1",
          "name": "Over",
          "winning": false
        },
        {
          "change": 0,
          "decimal": 1.02,
          "fractional": "1/50",
          "initial_fractional": "1/66",
          "name": "Under",
          "winning": true
        }
      ],
      "group": "Match goals",
      "id": 9,
      "is_live": false,
      "line": "6.5",
      "name": "Match goals",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 34,
          "fractional": "33/1",
          "initial_fractional": "40/1",
          "name": "Over",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 1.005,
          "fractional": "1/200",
          "initial_fractional": "1/250",
          "name": "Under",
          "winning": true
        }
      ],
      "group": "Match goals",
      "id": 9,
      "is_live": false,
      "line": "7.5",
      "name": "Match goals",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": 1,
          "decimal": 2.05,
          "fractional": "21/20",
          "initial_fractional": "7/8",
          "name": "(0) Liverpool FC",
          "winning": null
        },
        {
          "change": -1,
          "decimal": 1.8,
          "fractional": "4/5",
          "initial_fractional": "39/40",
          "name": "(-0) Arsenal",
          "winning": null
        }
      ],
      "group": "Asian Handicap",
      "id": 17,
      "is_live": false,
      "line": null,
      "name": "Asian handicap",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": 1,
          "decimal": 2.2,
          "fractional": "6/5",
          "initial_fractional": "4/6",
          "name": "Over",
          "winning": null
        },
        {
          "change": -1,
          "decimal": 1.615,
          "fractional": "8/13",
          "initial_fractional": "11/10",
          "name": "Under",
          "winning": null
        }
      ],
      "group": "Total Cards",
      "id": 20,
      "is_live": false,
      "line": "4.5",
      "name": "Cards in match",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": 0,
          "decimal": 1.833,
          "fractional": "5/6",
          "initial_fractional": "5/6",
          "name": "Over",
          "winning": true
        },
        {
          "change": 0,
          "decimal": 1.833,
          "fractional": "5/6",
          "initial_fractional": "5/6",
          "name": "Under",
          "winning": false
        }
      ],
      "group": "Corners 2-Way",
      "id": 21,
      "is_live": false,
      "line": "9.5",
      "name": "Corners 2-Way",
      "period": "Full-time",
      "suspended": false
    },
    {
      "choices": [
        {
          "change": -1,
          "decimal": 2,
          "fractional": "1/1",
          "initial_fractional": "21/20",
          "name": "Liverpool FC",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 15,
          "fractional": "14/1",
          "initial_fractional": "12/1",
          "name": "No goal",
          "winning": false
        },
        {
          "change": 1,
          "decimal": 1.833,
          "fractional": "5/6",
          "initial_fractional": "4/5",
          "name": "Arsenal",
          "winning": true
        }
      ],
      "group": "First team to score",
      "id": 6,
      "is_live": false,
      "line": null,
      "name": "First team to score",
      "period": "Full-time",
      "suspended": false
    }
  ],
  "provider_id": 1,
  "winning_odds": {
    "away": {
      "actual": 33,
      "expected": 42,
      "fractionalValue": "7/5",
      "id": 26421788
    },
    "home": {
      "actual": 20,
      "expected": 35,
      "fractionalValue": "47/25",
      "id": 26421787
    }
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What values does the market parameter accept?
market accepts all (default) to return all available markets or featured for main highlighted markets.

### How do I select a specific odds provider?
Pass provider_id as an integer; the default value is 1.

### Are both decimal and fractional odds returned?
Yes. Each entry in markets[].choices[] includes decimal, fractional and initial_fractional values.

### How can I detect whether a market is suspended?
Check the boolean markets[].suspended field on each market object.

### How do I retrieve live odds movement without stale cache?
Pass fresh=1 to skip the 24-hour cache and fetch current upstream odds.

### Can I filter returned fields or request CSV?
Output is JSON only. Pass raw=0 to omit raw blocks or use fields to return selected keys.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-event-odds-api/40060c35-935e-45e6-bbda-aef59537fe2f/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
