# SofaScore player statistics leaderboard API

Get SofaScore Player Stats Leaderboard data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as limit, output, raw, and retrieve structured data including requested SofaScore unique-tournament ID, resolved season identifier, count, next offset, and total pages for scout per-90 efficiency leaders, and export paginated league datasets.

Documentation: https://openany.si/sofascore/sofascore-player-statistics-leaderboard-api/bd8e6239-72fb-49da-b287-baade9ccb4ac/
API ID: bd8e6239-72fb-49da-b287-baade9ccb4ac
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/tournament/player-stats
Page update time: 2026-12-03T02:55:26.225Z
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.548Z. 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 Player Stats Leaderboard API

Pass tournament\_id with optional season\_id, order (default -rating), group (default summary), accumulation (total, perGame or per90), filters, limit (1–100) and offset. Returned results\[\] pair player and team identities with statistical breakdowns and applied\_filters metadata.

## What You Can Build

- **Build golden boot and assist tables**: Sort by order=-goals, -assists or -expectedGoals to power live competition leaderboards.
- **Scout per-90 efficiency leaders**: Set accumulation=per90 with filters such as appearances.GT.5 and position.in.F~M.
- **Export paginated league datasets**: Iterate with limit and next\_offset across total\_pages to index every ranked player.

## Returned Data

| Field | Meaning |
| --- | --- |
| `tournament_id` | Requested SofaScore unique-tournament ID |
| `season_id` | Resolved season identifier |
| `count` | Number of player rows returned on this page |
| `next_offset` | Offset to pass for the next page of results |
| `total_pages` | Total available pages for the current filter |
| `applied_filters.order` | Sort order applied to the leaderboard |
| `results[].player.name` | Ranked player display name |
| `results[].team.name` | Club name for the ranked player |
| `results[].statistics.rating` | Player average rating |
| `results[].statistics.goals` | Player goals scored |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore player statistics leaderboard 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)."
        },
        "order": {
          "type": "string",
          "description": "Sort stat, `-` for descending (default -rating): -goals, -assists, -expectedGoals, -accuratePasses, -tackles ..."
        },
        "group": {
          "type": "string",
          "description": "Stat group (default summary).",
          "enum": [
            "summary",
            "attack",
            "defence",
            "passing",
            "goalkeeper"
          ]
        },
        "accumulation": {
          "type": "string",
          "description": "total (default), perGame or per90."
        },
        "limit": {
          "type": "integer",
          "description": "Rows per page, 1-100 (default 20)."
        },
        "offset": {
          "type": "integer",
          "description": "Rows to skip (default 0)."
        },
        "filters": {
          "type": "string",
          "description": "Site filter expression, e.g. position.in.F~M, appearances.GT.5, team.in.42."
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated stat names to return."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "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": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "accumulation": {
          "type": "string"
        },
        "fields": {
          "type": "null"
        },
        "filters": {
          "type": "null"
        },
        "group": {
          "type": "string"
        },
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "order": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "next_offset": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "player": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              }
            }
          },
          "statistics": {
            "type": "object",
            "properties": {
              "accuratePassesPercentage": {
                "type": "number"
              },
              "assists": {
                "type": "integer"
              },
              "expectedGoals": {
                "type": "number"
              },
              "goals": {
                "type": "integer"
              },
              "rating": {
                "type": "number"
              },
              "successfulDribbles": {
                "type": "integer"
              },
              "tackles": {
                "type": "integer"
              }
            }
          },
          "team": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "season_id": {
      "type": "integer"
    },
    "total_pages": {
      "type": "integer"
    },
    "tournament_id": {
      "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/player-stats?limit=1&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
{
  "applied_filters": {
    "accumulation": "total",
    "fields": null,
    "filters": null,
    "group": "summary",
    "limit": 1,
    "offset": 0,
    "order": "-rating"
  },
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:23:15.876Z",
  "next_offset": 1,
  "page": 1,
  "results": [
    {
      "player": {
        "id": 962012,
        "name": "Jan Paul van Hecke",
        "slug": "jan-paul-van-hecke"
      },
      "statistics": {
        "accuratePassesPercentage": 91.18,
        "assists": 0,
        "expectedGoals": 1.7,
        "goals": 2,
        "rating": 7.87,
        "successfulDribbles": 0,
        "tackles": 16
      },
      "team": {
        "id": 33,
        "name": "Tottenham Hotspur"
      }
    }
  ],
  "season_id": 96668,
  "total_pages": 459,
  "tournament_id": 17
}
```

## 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
### How do I sort by goals, assists or expected goals?
Pass order with a leading minus sign for descending sort, such as -goals, -assists, -expectedGoals or -rating (default).

### What accumulation modes are supported?
accumulation accepts total (default), perGame or per90.

### How do filter expressions work?
Pass site-style filter expressions in filters, such as position.in.F~M, appearances.GT.5 or team.in.42.

### How do I paginate through leaderboard rows?
Use limit (1 to 100, default 20) and offset (default 0), advancing offset using next_offset.

### Can tournament_id be a SofaScore tournament link?
Yes. Pass either a numeric unique-tournament ID such as 17 or a SofaScore tournament URL.

### How do I fetch uncached standings and stat updates?
Pass fresh=1 to skip the 24-hour cache; output is JSON only and raw=0 or fields can trim payloads.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-player-statistics-leaderboard-api/bd8e6239-72fb-49da-b287-baade9ccb4ac/

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