# SofaScore player API

Get SofaScore Player 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, player_id, raw, and retrieve structured data including sofaScore player identifier, player full display name, player nationality, primary playing position code, and player preferred foot to build player profile pages, visualize player attribute radars, and surface scouting strengths.

Documentation: https://openany.si/sofascore/sofascore-player-api/4c4984c3-5f4b-4c97-8d9c-16a6d367a953/
API ID: 4c4984c3-5f4b-4c97-8d9c-16a6d367a953
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/player
Page update time: 2026-12-03T02:55:26.194Z
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.356Z. 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 API

Pass player\_id as a SofaScore numeric ID or player link to fetch profile metadata. The JSON payload returns biographical fields, market\_value, characteristics (positive/negative traits and positions) and attribute\_overviews across seasons.

## What You Can Build

- **Build player profile pages**: Render bio, photo, preferred\_foot, contract\_until and market\_value in a structured header.
- **Visualize player attribute radars**: Plot attacking, technical, tactical, defending and creativity scores from attribute\_overviews.
- **Surface scouting strengths**: Display characteristics.positive\[\] and characteristics.positions\[\] in recruitment reports.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | SofaScore player identifier |
| `name` | Player full display name |
| `country` | Player nationality |
| `position` | Primary playing position code |
| `preferred_foot` | Player preferred foot |
| `height` | Player height in centimeters |
| `date_of_birth` | Player birth date |
| `shirt_number` | Current squad shirt number |
| `market_value.value` | Estimated market value amount |
| `attribute_overviews.playerAttributeOverviews[].attacking` | Attacking attribute overview score |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore player 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": {
        "player_id": {
          "type": "string",
          "description": "SofaScore player id or a player link (sofascore.com/football/player/bukayo-saka/934235). 934235 = Bukayo Saka."
        },
        "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": [
        "player_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "attribute_overviews": {
      "type": "object",
      "properties": {
        "averageAttributeOverviews": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "attacking": {
                "type": "integer"
              },
              "creativity": {
                "type": "integer"
              },
              "defending": {
                "type": "integer"
              },
              "id": {
                "type": "integer"
              },
              "position": {
                "type": "string"
              },
              "tactical": {
                "type": "integer"
              },
              "technical": {
                "type": "integer"
              },
              "yearShift": {
                "type": "integer"
              }
            }
          }
        },
        "playerAttributeOverviews": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "attacking": {
                "type": "integer"
              },
              "creativity": {
                "type": "integer"
              },
              "defending": {
                "type": "integer"
              },
              "id": {
                "type": "integer"
              },
              "position": {
                "type": "string"
              },
              "tactical": {
                "type": "integer"
              },
              "technical": {
                "type": "integer"
              },
              "yearShift": {
                "type": "integer"
              }
            }
          }
        },
        "sportSlug": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "characteristics": {
      "type": "object",
      "properties": {
        "negative": {
          "type": "array",
          "items": {}
        },
        "positions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "positive": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "rank": {
                "type": "integer"
              },
              "type": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "contract_until": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "date_of_birth": {
      "type": "string"
    },
    "fetched_at": {
      "type": "string"
    },
    "first_name": {
      "type": "string"
    },
    "height": {
      "type": "integer"
    },
    "id": {
      "type": "integer"
    },
    "last_name": {
      "type": "string"
    },
    "market_value": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string"
        },
        "value": {
          "type": "integer"
        }
      }
    },
    "name": {
      "type": "string"
    },
    "photo": {
      "type": "string"
    },
    "position": {
      "type": "string"
    },
    "preferred_foot": {
      "type": "string"
    },
    "retired": {
      "type": "null"
    },
    "shirt_number": {
      "type": "integer"
    },
    "slug": {
      "type": "string"
    },
    "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"
        }
      }
    },
    "url": {
      "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/player?output=json&player_id=934235&raw=0' \
  -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
{
  "attribute_overviews": {
    "averageAttributeOverviews": [
      {
        "attacking": 61,
        "creativity": 45,
        "defending": 32,
        "id": 19812,
        "position": "F",
        "tactical": 43,
        "technical": 54,
        "yearShift": 0
      }
    ],
    "playerAttributeOverviews": [
      {
        "attacking": 76,
        "creativity": 76,
        "defending": 46,
        "id": 50004,
        "position": "F",
        "tactical": 59,
        "technical": 67,
        "yearShift": 0
      },
      {
        "attacking": 81,
        "creativity": 76,
        "defending": 38,
        "id": 66579,
        "position": "F",
        "tactical": 58,
        "technical": 74,
        "yearShift": 1
      },
      {
        "attacking": 84,
        "creativity": 79,
        "defending": 34,
        "id": 84292,
        "position": "F",
        "tactical": 57,
        "technical": 75,
        "yearShift": 2
      },
      {
        "attacking": 82,
        "creativity": 74,
        "defending": 35,
        "id": 101776,
        "position": "F",
        "tactical": 56,
        "technical": 71,
        "yearShift": 3
      }
    ],
    "sportSlug": "football"
  },
  "cached": false,
  "characteristics": {
    "negative": [],
    "positions": [
      "RW"
    ],
    "positive": [
      {
        "rank": 176,
        "type": 2
      },
      {
        "rank": 521,
        "type": 25
      },
      {
        "rank": 520,
        "type": 26
      }
    ]
  },
  "contract_until": "2030-06-30T00:00:00.000Z",
  "country": "England",
  "credits_used": 1,
  "date_of_birth": "2001-09-05T00:00:00.000Z",
  "fetched_at": "2026-11-19T12:23:04.898Z",
  "first_name": "Bukayo",
  "height": 178,
  "id": 934235,
  "last_name": "Saka",
  "market_value": {
    "currency": "EUR",
    "value": 115000000
  },
  "name": "Bukayo Saka",
  "photo": "https://img.sofascore.com/api/v1/player/934235/image",
  "position": "F",
  "preferred_foot": "Left",
  "retired": null,
  "shirt_number": 7,
  "slug": "bukayo-saka",
  "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"
  },
  "url": "https://www.sofascore.com/football/player/bukayo-saka/934235"
}
```

## 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 player_id be a SofaScore player URL?
Yes. Pass either a numeric player ID such as 934235 or a full SofaScore player link.

### Are player market values included?
Yes. market_value provides both value and currency when published on SofaScore.

### Does this endpoint return season-by-season match stats?
No. Use the SofaScore Player Season Stats API for detailed per-season statistics.

### How do I find a player's SofaScore ID?
Use the SofaScore Search API with type=players or read player IDs from the Team Squad API.

### How do I refresh contract or market value data?
Pass fresh=1 to skip the 24-hour cache and fetch live upstream profile data.

### Can I trim the JSON response size?
Yes. Pass raw=0 to omit raw source blocks or specify fields; output is JSON only.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-player-api/4c4984c3-5f4b-4c97-8d9c-16a6d367a953/

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