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
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
On this page
Overview
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
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
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
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent SofaScore event odds API · GET · View API reference | $0.002 / billing credit | 1 | 100.00%successP505.06s |
- 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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
event_id | URL query parametersquery | string | Yes | 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 | URL query parametersquery | string | No | `all` (default) or `featured`. enum: "all", "featured" |
provider_id | URL query parametersquery | integer | No | Odds provider id (default 1). |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | 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
cachedbooleancountintegercredits_usedintegerevent_idintegerfetched_atstringmarketstringmarketsobject[]choicesobject[]changeintegerdecimalnumberfractionalstringinitial_fractionalstringnamestringwinningboolean | null
groupstringidintegeris_livebooleanlinenull | stringnamestringperiodstringsuspendedboolean
provider_idintegerwinning_oddsobjectawayobjectactualintegerexpectedintegerfractionalValuestringidinteger
homeobjectactualintegerexpectedintegerfractionalValuestringidinteger
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 item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 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.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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'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 } } }