# SofaScore standings API

Get SofaScore Standings 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 requested SofaScore unique-tournament ID, resolved season identifier, standings split applied, matches played, and total wins to render live league tables, compare home vs away strength, and browse historical season tables.

Documentation: https://openany.si/sofascore/sofascore-standings-api/fff43019-771a-4f05-aaaf-d33ff3464e77/
API ID: fff43019-771a-4f05-aaaf-d33ff3464e77
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/tournament/standings
Page update time: 2026-12-03T02:55:26.277Z
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:25.713Z. 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 Standings API

Pass tournament\_id with optional season\_id (default current season) and type (total, home or away) to fetch standings tables. Returned tables\[\] include rows\[\] with position, team details, W/D/L counts, goals for/against, score\_diff, points and promotion markers.

## What You Can Build

- **Render live league tables**: Display tables\[\].rows\[\] with position, team name, goal difference, points and promotion color zones.
- **Compare home vs away strength**: Call the endpoint with type=home and type=away to analyze home-field advantage.
- **Browse historical season tables**: Pair season IDs from the SofaScore Tournament API to view past final standings.

## Returned Data

| Field | Meaning |
| --- | --- |
| `tournament_id` | Requested SofaScore unique-tournament ID |
| `season_id` | Resolved season identifier |
| `type` | Standings split applied (total, home or away) |
| `tables[].name` | League or group table name |
| `tables[].rows[].position` | Team rank position in the table |
| `tables[].rows[].matches` | Matches played |
| `tables[].rows[].wins` | Total wins |
| `tables[].rows[].draws` | Total draws |
| `tables[].rows[].losses` | Total losses |
| `tables[].rows[].points` | Total standings points |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore standings 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."
        },
        "season_id": {
          "type": "string",
          "description": "Season id from `/sofascore/v1/tournament` (default: the current season)."
        },
        "type": {
          "type": "string",
          "description": "`total` (default), `home` or `away`.",
          "enum": [
            "total",
            "home",
            "away"
          ]
        },
        "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"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "season_id": {
      "type": "integer"
    },
    "tables": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "promotions": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "text": {
                "type": "string"
              }
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "draws": {
                  "type": "integer"
                },
                "losses": {
                  "type": "integer"
                },
                "matches": {
                  "type": "integer"
                },
                "points": {
                  "type": "integer"
                },
                "position": {
                  "type": "integer"
                },
                "promotion": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "score_diff": {
                  "type": "string"
                },
                "scores_against": {
                  "type": "integer"
                },
                "scores_for": {
                  "type": "integer"
                },
                "team": {
                  "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"
                    }
                  }
                },
                "wins": {
                  "type": "integer"
                }
              }
            }
          },
          "type": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        }
      }
    },
    "tournament_id": {
      "type": "integer"
    },
    "type": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/sofascore/v1/tournament/standings?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,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:23:17.686Z",
  "season_id": 96668,
  "tables": [
    {
      "id": 280504,
      "name": "Premier League 26/27",
      "promotions": {
        "id": 17827,
        "text": "In the event that two (or more) teams have an equal number of points, the following rules break the tie:\n1. Goal difference\n2. Goals scored\n3. H2H"
      },
      "rows": [
        {
          "draws": 0,
          "losses": 1,
          "matches": 10,
          "points": 27,
          "position": 1,
          "promotion": "Champions League",
          "score_diff": "+10",
          "scores_against": 5,
          "scores_for": 15,
          "team": {
            "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"
          },
          "wins": 9
        },
        {
          "draws": 1,
          "losses": 2,
          "matches": 10,
          "points": 22,
          "position": 2,
          "promotion": "Champions League",
          "score_diff": "+19",
          "scores_against": 7,
          "scores_for": 26,
          "team": {
            "code": "BHA",
            "country": "England",
            "id": 30,
            "logo": "https://img.sofascore.com/api/v1/team/30/image",
            "name": "Brighton & Hove Albion",
            "short_name": "Brighton",
            "slug": "brighton-and-hove-albion",
            "url": "https://www.sofascore.com/football/team/brighton-and-hove-albion/30"
          },
          "wins": 7
        },
        {
          "draws": 0,
          "losses": 3,
          "matches": 10,
          "points": 21,
          "position": 3,
          "promotion": "Champions League",
          "score_diff": "+8",
          "scores_against": 13,
          "scores_for": 21,
          "team": {
            "code": "MCI",
            "country": "England",
            "id": 17,
            "logo": "https://img.sofascore.com/api/v1/team/17/image",
            "name": "Manchester City",
            "short_name": "Man City",
            "slug": "manchester-city",
            "url": "https://www.sofascore.com/football/team/manchester-city/17"
          },
          "wins": 7
        },
        {
          "draws": 3,
          "losses": 2,
          "matches": 10,
          "points": 18,
          "position": 4,
          "promotion": "Champions League",
          "score_diff": "+4",
          "scores_against": 10,
          "scores_for": 14,
          "team": {
            "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"
          },
          "wins": 5
        },
        {
          "draws": 1,
          "losses": 4,
          "matches": 10,
          "points": 16,
          "position": 5,
          "promotion": "Europa League",
          "score_diff": "+3",
          "scores_against": 16,
          "scores_for": 19,
          "team": {
            "code": "CHE",
            "country": "England",
            "id": 38,
            "logo": "https://img.sofascore.com/api/v1/team/38/image",
            "name": "Chelsea",
            "short_name": "Chelsea",
            "slug": "chelsea",
            "url": "https://www.sofascore.com/football/team/chelsea/38"
          },
          "wins": 5
        },
        {
          "draws": 4,
          "losses": 2,
          "matches": 10,
          "points": 16,
          "position": 6,
          "promotion": null,
          "score_diff": "+2",
          "scores_against": 10,
          "scores_for": 12,
          "team": {
            "code": "EVE",
            "country": "England",
            "id": 48,
            "logo": "https://img.sofascore.com/api/v1/team/48/image",
            "name": "Everton",
            "short_name": "Everton",
            "slug": "everton",
            "url": "https://www.sofascore.com/football/team/everton/48"
          },
          "wins": 4
        },
        {
          "draws": 3,
          "losses": 3,
          "matches": 10,
          "points": 15,
          "position": 7,
          "promotion": null,
          "score_diff": "+2",
          "scores_against": 14,
          "scores_for": 16,
          "team": {
            "code": "BOU",
            "country": "England",
            "id": 60,
            "logo": "https://img.sofascore.com/api/v1/team/60/image",
            "name": "Bournemouth",
            "short_name": "Bournemouth",
            "slug": "bournemouth",
            "url": "https://www.sofascore.com/football/team/bournemouth/60"
          },
          "wins": 4
        },
        {
          "draws": 5,
          "losses": 2,
          "matches": 10,
          "points": 14,
          "position": 8,
          "promotion": null,
          "score_diff": "+5",
          "scores_against": 11,
          "scores_for": 16,
          "team": {
            "code": "BRE",
            "country": "England",
            "id": 50,
            "logo": "https://img.sofascore.com/api/v1/team/50/image",
            "name": "Brentford",
            "short_name": "Brentford",
            "slug": "brentford",
            "url": "https://www.sofascore.com/football/team/brentford/50"
          },
          "wins": 3
        },
        {
          "draws": 5,
          "losses": 2,
          "matches": 10,
          "points": 14,
          "position": 9,
          "promotion": null,
          "score_diff": "+2",
          "scores_against": 8,
          "scores_for": 10,
          "team": {
            "code": "LEE",
            "country": "England",
            "id": 34,
            "logo": "https://img.sofascore.com/api/v1/team/34/image",
            "name": "Leeds United",
            "short_name": "Leeds",
            "slug": "leeds-united",
            "url": "https://www.sofascore.com/football/team/leeds-united/34"
          },
          "wins": 3
        },
        {
          "draws": 4,
          "losses": 3,
          "matches": 10,
          "points": 13,
          "position": 10,
          "promotion": null,
          "score_diff": "-3",
          "scores_against": 17,
          "scores_for": 14,
          "team": {
            "code": "AVL",
            "country": "England",
            "id": 40,
            "logo": "https://img.sofascore.com/api/v1/team/40/image",
            "name": "Aston Villa",
            "short_name": "Aston Villa",
            "slug": "aston-villa",
            "url": "https://www.sofascore.com/football/team/aston-villa/40"
          },
          "wins": 3
        },
        {
          "draws": 3,
          "losses": 4,
          "matches": 10,
          "points": 12,
          "position": 11,
          "promotion": null,
          "score_diff": "-1",
          "scores_against": 11,
          "scores_for": 10,
          "team": {
            "code": "TOT",
            "country": "England",
            "id": 33,
            "logo": "https://img.sofascore.com/api/v1/team/33/image",
            "name": "Tottenham Hotspur",
            "short_name": "Tottenham",
            "slug": "tottenham-hotspur",
            "url": "https://www.sofascore.com/football/team/tottenham-hotspur/33"
          },
          "wins": 3
        },
        {
          "draws": 3,
          "losses": 4,
          "matches": 10,
          "points": 12,
          "position": 12,
          "promotion": null,
          "score_diff": "-3",
          "scores_against": 16,
          "scores_for": 13,
          "team": {
            "code": "NEW",
            "country": "England",
            "id": 39,
            "logo": "https://img.sofascore.com/api/v1/team/39/image",
            "name": "Newcastle United",
            "short_name": "Newcastle",
            "slug": "newcastle-united",
            "url": "https://www.sofascore.com/football/team/newcastle-united/39"
          },
          "wins": 3
        },
        {
          "draws": 5,
          "losses": 3,
          "matches": 10,
          "points": 11,
          "position": 13,
          "promotion": null,
          "score_diff": "0",
          "scores_against": 11,
          "scores_for": 11,
          "team": {
            "code": "HUL",
            "country": "England",
            "id": 96,
            "logo": "https://img.sofascore.com/api/v1/team/96/image",
            "name": "Hull City",
            "short_name": "Hull",
            "slug": "hull-city",
            "url": "https://www.sofascore.com/football/team/hull-city/96"
          },
          "wins": 2
        },
        {
          "draws": 2,
          "losses": 5,
          "matches": 10,
          "points": 11,
          "position": 14,
          "promotion": null,
          "score_diff": "-5",
          "scores_against": 20,
          "scores_for": 15,
          "team": {
            "code": "IPS",
            "country": "England",
            "id": 32,
            "logo": "https://img.sofascore.com/api/v1/team/32/image",
            "name": "Ipswich Town",
            "short_name": "Ipswich",
            "slug": "ipswich-town",
            "url": "https://www.sofascore.com/football/team/ipswich-town/32"
          },
          "wins": 3
        },
        {
          "draws": 4,
          "losses": 4,
          "matches": 10,
          "points": 10,
          "position": 15,
          "promotion": null,
          "score_diff": "-2",
          "scores_against": 12,
          "scores_for": 10,
          "team": {
            "code": "FUL",
            "country": "England",
            "id": 43,
            "logo": "https://img.sofascore.com/api/v1/team/43/image",
            "name": "Fulham",
            "short_name": "Fulham",
            "slug": "fulham",
            "url": "https://www.sofascore.com/football/team/fulham/43"
          },
          "wins": 2
        },
        {
          "draws": 3,
          "losses": 5,
          "matches": 10,
          "points": 9,
          "position": 16,
          "promotion": null,
          "score_diff": "-4",
          "scores_against": 13,
          "scores_for": 9,
          "team": {
            "code": "NFO",
            "country": "England",
            "id": 14,
            "logo": "https://img.sofascore.com/api/v1/team/14/image",
            "name": "Nottingham Forest",
            "short_name": "Forest",
            "slug": "nottingham-forest",
            "url": "https://www.sofascore.com/football/team/nottingham-forest/14"
          },
          "wins": 2
        },
        {
          "draws": 0,
          "losses": 7,
          "matches": 10,
          "points": 9,
          "position": 17,
          "promotion": null,
          "score_diff": "-9",
          "scores_against": 19,
          "scores_for": 10,
          "team": {
            "code": "COC",
            "country": "England",
            "id": 11,
            "logo": "https://img.sofascore.com/api/v1/team/11/image",
            "name": "Coventry City",
            "short_name": "Coventry",
            "slug": "coventry-city",
            "url": "https://www.sofascore.com/football/team/coventry-city/11"
          },
          "wins": 3
        },
        {
          "draws": 5,
          "losses": 4,
          "matches": 10,
          "points": 8,
          "position": 18,
          "promotion": "Relegation",
          "score_diff": "-5",
          "scores_against": 19,
          "scores_for": 14,
          "team": {
            "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"
          },
          "wins": 1
        },
        {
          "draws": 2,
          "losses": 6,
          "matches": 10,
          "points": 8,
          "position": 19,
          "promotion": "Relegation",
          "score_diff": "-9",
          "scores_against": 17,
          "scores_for": 8,
          "team": {
            "code": "SUN",
            "country": "England",
            "id": 41,
            "logo": "https://img.sofascore.com/api/v1/team/41/image",
            "name": "Sunderland",
            "short_name": "Sunderland",
            "slug": "sunderland",
            "url": "https://www.sofascore.com/football/team/sunderland/41"
          },
          "wins": 2
        },
        {
          "draws": 1,
          "losses": 7,
          "matches": 10,
          "points": 7,
          "position": 20,
          "promotion": "Relegation",
          "score_diff": "-14",
          "scores_against": 24,
          "scores_for": 10,
          "team": {
            "code": "CRY",
            "country": "England",
            "id": 7,
            "logo": "https://img.sofascore.com/api/v1/team/7/image",
            "name": "Crystal Palace",
            "short_name": "Crystal Palace",
            "slug": "crystal-palace",
            "url": "https://www.sofascore.com/football/team/crystal-palace/7"
          },
          "wins": 2
        }
      ],
      "type": "total",
      "updated_at": "2026-10-12T20:52:19.000Z"
    }
  ],
  "tournament_id": 17,
  "type": "total"
}
```

## 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 type parameter accept?
type accepts total (default), home or away to inspect overall or venue-split standings.

### How do I query a previous season's standings?
Retrieve historical season IDs from the SofaScore Tournament API and pass one as season_id.

### Are multi-group competitions supported?
Yes. tables[] is an array, so group-stage tournaments return one table object per group.

### Are qualification and relegation zones included?
Yes. Each row includes promotion metadata and tables[].promotions provides zone descriptions.

### How do I get updated standings immediately after a match?
Pass fresh=1 to bypass the 24-hour cache.

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

## Available implementations
- apish: https://openany.si/sofascore/sofascore-standings-api/fff43019-771a-4f05-aaaf-d33ff3464e77/

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