# 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.

Documentation: https://openany.si/sofascore/sofascore-tournament-api/967702ca-06f1-4146-aee8-d0913e6aa3eb/
API ID: 967702ca-06f1-4146-aee8-d0913e6aa3eb
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/tournament
Page update time: 2026-12-03T02:55:26.337Z
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:26.020Z. 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 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.

## 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 |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore tournament 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": {
        "tournament_id": {
          "type": "string",
          "description": "SofaScore unique-tournament id or a tournament link (sofascore.com/football/tournament/england/premier-league/17). 17 = Premier League."
        },
        "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": [
        "tournament_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"
    },
    "category": {
      "type": "object",
      "properties": {
        "country_code": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "credits_used": {
      "type": "integer"
    },
    "end_date": {
      "type": "string"
    },
    "fetched_at": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "logo": {
      "type": "string"
    },
    "most_titles": {
      "type": "integer"
    },
    "most_titles_teams": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "logo": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "short_name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "name": {
      "type": "string"
    },
    "seasons": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "year": {
            "type": "string"
          }
        }
      }
    },
    "slug": {
      "type": "string"
    },
    "sport": {
      "type": "string"
    },
    "start_date": {
      "type": "string"
    },
    "tier": {
      "type": "integer"
    },
    "title_holder": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "logo": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "short_name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "title_holder_titles": {
      "type": "integer"
    },
    "url": {
      "type": "string"
    },
    "user_count": {
      "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/tournament?output=json&raw=0&tournament_id=17' \
  -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,
  "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
}
```

## 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
### Can tournament_id be a SofaScore tournament URL?
Yes. Pass either a numeric unique-tournament ID such as 17 or a SofaScore tournament link.

### How do I get season_id values for other SofaScore endpoints?
Read the seasons[] array returned by this endpoint; each object provides id, name and year.

### Are reigning champions and all-time title records included?
Yes. title_holder, title_holder_titles, most_titles and most_titles_teams[] are returned when published.

### Does this endpoint return league standings or match lists?
No. Use the SofaScore Standings API or Tournament Matches API with the same tournament_id.

### How do I refresh competition metadata for a new season?
Pass fresh=1 to skip the 24-hour cache.

### Can I trim payload size or export CSV?
Output is JSON only. Pass raw=0 to omit raw blocks or specify fields.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-tournament-api/967702ca-06f1-4146-aee8-d0913e6aa3eb/

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