SofaScore Tournament API
Get SofaScore Tournament data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as output, raw, tournament_id, and retrieve structured data including sofaScore unique-tournament identifier, official tournament display name, sport of the competition, competition tier level, and current season start date to resolve historical season_id values, build competition overview cards, and anchor tournament workflows.
- 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 Tournament 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 Tournament API
Pass tournament_id as a SofaScore unique-tournament ID or tournament URL to fetch competition metadata. Returned fields include category, sport, tier, start_date, end_date, title_holder, most_titles_teams[] and the complete seasons[] array needed for historical queries.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Required query: tournament_id (SofaScore unique-tournament ID or tournament URL). Optional: raw=0, fields, fresh=1, output=json. |
| Selected implementation | apish · SofaScore tournament API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Resolve historical season_id values: Read seasons[].id and seasons[].year to query past Standings, Rounds or Player Stats Leaderboards.
- Build competition overview cards: Display logo, category, start_date, end_date, title_holder and most_titles_teams[].
- Anchor tournament workflows: Pass tournament_id into Tournament Matches, Tournament Rounds and Standings APIs.
Returned Data
| Field | Meaning |
|---|---|
id |
SofaScore unique-tournament identifier |
name |
Official tournament display name |
sport |
Sport of the competition |
category.name |
Country or region category name |
tier |
Competition tier level |
start_date |
Current season start date |
end_date |
Current season end date |
title_holder.name |
Reigning champion team name |
most_titles |
Record number of titles won |
seasons[].id |
Season ID for querying standings, rounds and matches |
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/tournament \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode output=json \
--data-urlencode raw=0 \
--data-urlencode tournament_id=17
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 Tournament 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 tournament API · GET · View API reference | $0.002 / billing credit | 1 | 100.00%successP506.44s |
- 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/tournament- 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 |
|---|---|---|---|---|
tournament_id | URL query parametersquery | string | Yes | SofaScore unique-tournament id or a tournament link (sofascore.com/football/tournament/england/premier-league/17). 17 = Premier League. |
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
cachedbooleancategoryobjectcountry_codestringidintegernamestring
credits_usedintegerend_datestringfetched_atstringidintegerlogostringmost_titlesintegermost_titles_teamsobject[]codestringcountrystringidintegerlogostringnamestringshort_namestringslugstringurlstring
namestringseasonsobject[]idintegernamestringyearstring
slugstringsportstringstart_datestringtierintegertitle_holderobjectcodestringcountrystringidintegerlogostringnamestringshort_namestringslugstringurlstring
title_holder_titlesintegerurlstringuser_countinteger
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 6
Review these request fields before running. Keep the published provider and request method unchanged.
tournament_id- SofaScore unique-tournament id or a tournament link (sofascore.com/football/tournament/england/premier-league/17). 17 = Premier League.
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/tournament?output=json&raw=0&tournament_id=17' \ -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, "category": { "country_code": "EN", "id": 1, "name": "England" }, "credits_used": 1, "end_date": "2027-05-30T00:00:00.000Z", "fetched_at": "2026-11-19T12:23:12.898Z", "id": 17, "logo": "https://img.sofascore.com/api/v1/unique-tournament/17/image", "most_titles": 20, "most_titles_teams": [ { "code": "MUN", "country": "England", "id": 35, "logo": "https://img.sofascore.com/api/v1/team/35/image", "name": "Manchester United", "short_name": "Man Utd", "slug": "manchester-united", "url": "https://www.sofascore.com/football/team/manchester-united/35" }, { "code": "LIV", "country": "England", "id": 44, "logo": "https://img.sofascore.com/api/v1/team/44/image", "name": "Liverpool FC", "short_name": "Liverpool", "slug": "liverpool", "url": "https://www.sofascore.com/football/team/liverpool/44" } ], "name": "Premier League", "seasons": [ { "id": 96668, "name": "Premier League 26/27", "year": "26/27" }, { "id": 76986, "name": "Premier League 25/26", "year": "25/26" }, { "id": 61627, "name": "Premier League 24/25", "year": "24/25" }, { "id": 52186, "name": "Premier League 23/24", "year": "23/24" }, { "id": 41886, "name": "Premier League 22/23", "year": "22/23" }, { "id": 37036, "name": "Premier League 21/22", "year": "21/22" }, { "id": 29415, "name": "Premier League 20/21", "year": "20/21" }, { "id": 23776, "name": "Premier League 19/20", "year": "19/20" }, { "id": 17359, "name": "Premier League 18/19", "year": "18/19" }, { "id": 13380, "name": "Premier League 17/18", "year": "17/18" }, { "id": 11733, "name": "Premier League 16/17", "year": "16/17" }, { "id": 10356, "name": "Premier League 15/16", "year": "15/16" }, { "id": 8186, "name": "Premier League 14/15", "year": "14/15" }, { "id": 6311, "name": "Premier League 13/14", "year": "13/14" }, { "id": 4710, "name": "Premier League 12/13", "year": "12/13" }, { "id": 3391, "name": "Premier League 11/12", "year": "11/12" }, { "id": 2746, "name": "Premier League 10/11", "year": "10/11" }, { "id": 2139, "name": "Premier League 09/10", "year": "09/10" }, { "id": 1544, "name": "Premier League 08/09", "year": "08/09" }, { "id": 581, "name": "Premier League 07/08", "year": "07/08" }, { "id": 4, "name": "Premier League 06/07", "year": "06/07" }, { "id": 3, "name": "Premier League 05/06", "year": "05/06" }, { "id": 2, "name": "Premier League 04/05", "year": "04/05" }, { "id": 1, "name": "Premier League 03/04", "year": "03/04" }, { "id": 46, "name": "Premier League 02/03", "year": "02/03" }, { "id": 47, "name": "Premier League 01/02", "year": "01/02" }, { "id": 48, "name": "Premier League 00/01", "year": "00/01" }, { "id": 49, "name": "Premier League 99/00", "year": "99/00" }, { "id": 50, "name": "Premier League 98/99", "year": "98/99" }, { "id": 51, "name": "Premier League 97/98", "year": "97/98" }, { "id": 25682, "name": "Premier League 96/97", "year": "96/97" }, { "id": 25681, "name": "Premier League 95/96", "year": "95/96" }, { "id": 29167, "name": "Premier League 94/95", "year": "94/95" }, { "id": 25680, "name": "Premier League 93/94", "year": "93/94" }, { "id": 13043, "name": "Premier League 92/93", "year": "92/93" } ], "slug": "premier-league", "sport": "football", "start_date": "2026-08-21T00:00:00.000Z", "tier": 1, "title_holder": { "code": "ARS", "country": "England", "id": 42, "logo": "https://img.sofascore.com/api/v1/team/42/image", "name": "Arsenal", "short_name": "Arsenal", "slug": "arsenal", "url": "https://www.sofascore.com/football/team/arsenal/42" }, "title_holder_titles": 14, "url": "https://www.sofascore.com/football/tournament/england/premier-league/17", "user_count": 1180825 }