OpenAny
Get API keyAPI Key
APIData

sofascore logo
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.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
1Selected implementation · last 30 days
Success rate · 30d
100.00%Selected implementation · last 30 days
USE THIS API

SofaScore Event Odds API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
SofaScore Event Odds API

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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: event_id (SofaScore event ID or match URL). Optional: market (all or featured), provider_id (integer, default 1), raw=0, fields, fresh=1, output=json.
Selected implementation apish · SofaScore event odds API
Billing See the pricing area for the selected implementation and request options

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/odds \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode event_id=16363907 \
  --data-urlencode output=json \
  --data-urlencode raw=0

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published SofaScore Event Odds API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
SofaScore event id or a match link (sofascore.com/football/match/liverpool-arsenal/HQfh#id:16363907). 16363907 = Liverpool v Arsenal, Premier League 26/27.
Optional parameters (7)
`all` (default) or `featured`.
Odds provider id (default 1).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
SofaScore event odds API · GET · View API reference
$0.002 / billing credit1
100.00%successP505.06s
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/odds
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
event_idURL query parametersquerystringYes

SofaScore event id or a match link (sofascore.com/football/match/liverpool-arsenal/HQfh#id:16363907). 16363907 = Liverpool v Arsenal, Premier League 26/27.

marketURL query parametersquerystringNo

`all` (default) or `featured`.

enum: "all", "featured"

provider_idURL query parametersqueryintegerNo

Odds provider id (default 1).

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • event_idinteger
  • fetched_atstring
  • marketstring
  • marketsobject[]
    • choicesobject[]
      • changeinteger
      • decimalnumber
      • fractionalstring
      • initial_fractionalstring
      • namestring
      • winningboolean | null
    • groupstring
    • idinteger
    • is_liveboolean
    • linenull | string
    • namestring
    • periodstring
    • suspendedboolean
  • provider_idinteger
  • winning_oddsobject
    • awayobject
      • actualinteger
      • expectedinteger
      • fractionalValuestring
      • idinteger
    • homeobject
      • actualinteger
      • expectedinteger
      • fractionalValuestring
      • idinteger

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 8

    Review these request fields before running. Keep the published provider and request method unchanged.

    event_id
    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
    `all` (default) or `featured`.
    provider_id
    Odds provider id (default 1).
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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
        }
      }
    }

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.

Use SofaScore Event Odds API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.