# SofaScore event statistics API

Get SofaScore Event Statistics data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as event_id, output, raw, and retrieve structured data including requested SofaScore event identifier, name, and human-readable metric label to display match stat comparison bars, analyze first-half vs second-half shifts, and feed automated match reports.

Documentation: https://openany.si/sofascore/sofascore-event-statistics-api/8f6d25fb-a7db-478a-8204-2d8297960cc5/
API ID: 8f6d25fb-a7db-478a-8204-2d8297960cc5
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/statistics
Page update time: 2026-12-03T02:55:26.142Z
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:24.747Z. 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 Event Statistics API

Pass event\_id as a SofaScore event ID or match URL to fetch period-by-period team statistics. The response organizes metrics under periods\[\] (such as ALL, 1ST, 2ND), each containing groups\[\] and items\[\] with home and away values.

## What You Can Build

- **Display match stat comparison bars**: Render periods\[\].groups\[\].items\[\] with home\_value and away\_value for visual stat bars.
- **Analyze first-half vs second-half shifts**: Compare 1ST and 2ND period entries to quantify tactical adjustments after halftime.
- **Feed automated match reports**: Extract stable metric keys like ballPossession and expectedGoals for sports summaries.

## Returned Data

| Field | Meaning |
| --- | --- |
| `event_id` | Requested SofaScore event identifier |
| `periods[].period` | Match period code such as ALL, 1ST or 2ND |
| `periods[].groups[].name` | Statistical category name such as Match overview |
| `periods[].groups[].items[].key` | Stable metric key such as ballPossession |
| `periods[].groups[].items[].name` | Human-readable metric label |
| `periods[].groups[].items[].home` | Formatted home team display value |
| `periods[].groups[].items[].away` | Formatted away team display value |
| `periods[].groups[].items[].home_value` | Numeric home team value for calculations |
| `periods[].groups[].items[].away_value` | Numeric away team value for calculations |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore event statistics 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": {
        "event_id": {
          "type": "string",
          "description": "SofaScore event id or a match link (sofascore.com/football/match/liverpool-arsenal/HQfh#id:16363907). 16363907 = Liverpool v Arsenal, Premier League 26/27."
        },
        "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": [
        "event_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"
    },
    "credits_used": {
      "type": "integer"
    },
    "event_id": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "periods": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "away": {
                        "type": "string"
                      },
                      "away_total": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "integer"
                          }
                        ]
                      },
                      "away_value": {
                        "type": "number"
                      },
                      "compare_code": {
                        "type": "integer"
                      },
                      "home": {
                        "type": "string"
                      },
                      "home_total": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "integer"
                          }
                        ]
                      },
                      "home_value": {
                        "type": "number"
                      },
                      "key": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    }
                  }
                },
                "name": {
                  "type": "string"
                }
              }
            }
          },
          "period": {
            "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/event/statistics?event_id=16363907&output=json&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
{
  "cached": false,
  "credits_used": 1,
  "event_id": 16363907,
  "fetched_at": "2026-11-19T12:23:04.351Z",
  "periods": [
    {
      "groups": [
        {
          "items": [
            {
              "away": "44%",
              "away_total": null,
              "away_value": 44,
              "compare_code": 1,
              "home": "56%",
              "home_total": null,
              "home_value": 56,
              "key": "ballPossession",
              "name": "Ball possession",
              "type": "positive"
            },
            {
              "away": "119.6 km",
              "away_total": null,
              "away_value": 119.6336101,
              "compare_code": 2,
              "home": "111.5 km",
              "home_total": null,
              "home_value": 111.5197139,
              "key": "kilometersCovered",
              "name": "Distance covered",
              "type": "positive"
            },
            {
              "away": "0.98",
              "away_total": null,
              "away_value": 0.98,
              "compare_code": 1,
              "home": "1.05",
              "home_total": null,
              "home_value": 1.05,
              "key": "expectedGoals",
              "name": "Expected goals",
              "type": "positive"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 2,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "bigChanceCreated",
              "name": "Big chances",
              "type": "positive"
            },
            {
              "away": "10",
              "away_total": null,
              "away_value": 10,
              "compare_code": 1,
              "home": "17",
              "home_total": null,
              "home_value": 17,
              "key": "totalShotsOnGoal",
              "name": "Total shots",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "goalkeeperSaves",
              "name": "Goalkeeper saves",
              "type": "positive"
            },
            {
              "away": "114",
              "away_total": null,
              "away_value": 114,
              "compare_code": 1,
              "home": "138",
              "home_total": null,
              "home_value": 138,
              "key": "numberOfSprints",
              "name": "Number of sprints",
              "type": "positive"
            },
            {
              "away": "4",
              "away_total": null,
              "away_value": 4,
              "compare_code": 1,
              "home": "7",
              "home_total": null,
              "home_value": 7,
              "key": "cornerKicks",
              "name": "Corner kicks",
              "type": "positive"
            },
            {
              "away": "10",
              "away_total": null,
              "away_value": 10,
              "compare_code": 1,
              "home": "18",
              "home_total": null,
              "home_value": 18,
              "key": "fouls",
              "name": "Fouls",
              "type": "negative"
            },
            {
              "away": "372",
              "away_total": null,
              "away_value": 372,
              "compare_code": 1,
              "home": "464",
              "home_total": null,
              "home_value": 464,
              "key": "passes",
              "name": "Passes",
              "type": "positive"
            },
            {
              "away": "24",
              "away_total": null,
              "away_value": 24,
              "compare_code": 2,
              "home": "17",
              "home_total": null,
              "home_value": 17,
              "key": "totalTackle",
              "name": "Tackles",
              "type": "positive"
            },
            {
              "away": "18",
              "away_total": null,
              "away_value": 18,
              "compare_code": 2,
              "home": "10",
              "home_total": null,
              "home_value": 10,
              "key": "freeKicks",
              "name": "Free kicks",
              "type": "positive"
            },
            {
              "away": "4",
              "away_total": null,
              "away_value": 4,
              "compare_code": 3,
              "home": "4",
              "home_total": null,
              "home_value": 4,
              "key": "yellowCards",
              "name": "Yellow cards",
              "type": "negative"
            },
            {
              "away": "8.04",
              "away_total": null,
              "away_value": 8.04,
              "compare_code": 2,
              "home": "7.32",
              "home_total": null,
              "home_value": 7.32,
              "key": "avgRating",
              "name": "Average rating",
              "type": "positive"
            }
          ],
          "name": "Match overview"
        },
        {
          "items": [
            {
              "away": "10",
              "away_total": null,
              "away_value": 10,
              "compare_code": 1,
              "home": "17",
              "home_total": null,
              "home_value": 17,
              "key": "totalShotsOnGoal",
              "name": "Total shots",
              "type": "positive"
            },
            {
              "away": "3",
              "away_total": null,
              "away_value": 3,
              "compare_code": 2,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "shotsOnGoal",
              "name": "Shots on target",
              "type": "positive"
            },
            {
              "away": "0.98",
              "away_total": null,
              "away_value": 0.98,
              "compare_code": 1,
              "home": "1.05",
              "home_total": null,
              "home_value": 1.05,
              "key": "expectedGoals",
              "name": "Expected goals",
              "type": "positive"
            },
            {
              "away": "1.44",
              "away_total": null,
              "away_value": 1.44,
              "compare_code": 2,
              "home": "0.00",
              "home_total": null,
              "home_value": 0,
              "key": "expectedGoalsOnTarget",
              "name": "Expected goals on target",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "hitWoodwork",
              "name": "Hit woodwork",
              "type": "negative"
            },
            {
              "away": "4",
              "away_total": null,
              "away_value": 4,
              "compare_code": 1,
              "home": "8",
              "home_total": null,
              "home_value": 8,
              "key": "shotsOffGoal",
              "name": "Shots off target",
              "type": "negative"
            },
            {
              "away": "3",
              "away_total": null,
              "away_value": 3,
              "compare_code": 1,
              "home": "9",
              "home_total": null,
              "home_value": 9,
              "key": "blockedScoringAttempt",
              "name": "Blocked shots",
              "type": "negative"
            },
            {
              "away": "6",
              "away_total": null,
              "away_value": 6,
              "compare_code": 1,
              "home": "14",
              "home_total": null,
              "home_value": 14,
              "key": "totalShotsInsideBox",
              "name": "Shots inside box",
              "type": "positive"
            },
            {
              "away": "4",
              "away_total": null,
              "away_value": 4,
              "compare_code": 2,
              "home": "3",
              "home_total": null,
              "home_value": 3,
              "key": "totalShotsOutsideBox",
              "name": "Shots outside box",
              "type": "positive"
            }
          ],
          "name": "Shots"
        },
        {
          "items": [
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 2,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "bigChanceScored",
              "name": "Big chances scored",
              "type": "positive"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 3,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "bigChanceMissed",
              "name": "Big chances missed",
              "type": "negative"
            },
            {
              "away": "24",
              "away_total": null,
              "away_value": 24,
              "compare_code": 1,
              "home": "52",
              "home_total": null,
              "home_value": 52,
              "key": "touchesInOppBox",
              "name": "Touches in penalty area",
              "type": "positive"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 1,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "fouledFinalThird",
              "name": "Fouled in final third",
              "type": "positive"
            },
            {
              "away": "3",
              "away_total": null,
              "away_value": 3,
              "compare_code": 2,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "offsides",
              "name": "Offsides",
              "type": "negative"
            }
          ],
          "name": "Attack"
        },
        {
          "items": [
            {
              "away": "269",
              "away_total": null,
              "away_value": 269,
              "compare_code": 1,
              "home": "380",
              "home_total": null,
              "home_value": 380,
              "key": "accuratePasses",
              "name": "Accurate passes",
              "type": "positive"
            },
            {
              "away": "18",
              "away_total": null,
              "away_value": 18,
              "compare_code": 1,
              "home": "25",
              "home_total": null,
              "home_value": 25,
              "key": "throwIns",
              "name": "Throw-ins",
              "type": "positive"
            },
            {
              "away": "45",
              "away_total": null,
              "away_value": 45,
              "compare_code": 1,
              "home": "72",
              "home_total": null,
              "home_value": 72,
              "key": "finalThirdEntries",
              "name": "Final third entries",
              "type": "positive"
            },
            {
              "away": "86/129 (67%)",
              "away_total": 129,
              "away_value": 86,
              "compare_code": 1,
              "home": "150/201 (75%)",
              "home_total": 201,
              "home_value": 150,
              "key": "finalThirdPhaseStatistic",
              "name": "Final third phase",
              "type": "positive"
            },
            {
              "away": "23/65 (35%)",
              "away_total": 65,
              "away_value": 23,
              "compare_code": 2,
              "home": "11/44 (25%)",
              "home_total": 44,
              "home_value": 11,
              "key": "accurateLongBalls",
              "name": "Long balls",
              "type": "positive"
            },
            {
              "away": "4/10 (40%)",
              "away_total": 10,
              "away_value": 4,
              "compare_code": 2,
              "home": "5/33 (15%)",
              "home_total": 33,
              "home_value": 5,
              "key": "accurateCross",
              "name": "Crosses",
              "type": "positive"
            }
          ],
          "name": "Passes"
        },
        {
          "items": [
            {
              "away": "54%",
              "away_total": null,
              "away_value": 54,
              "compare_code": 2,
              "home": "46%",
              "home_total": null,
              "home_value": 46,
              "key": "duelWonPercent",
              "name": "Duels",
              "type": "positive"
            },
            {
              "away": "9",
              "away_total": null,
              "away_value": 9,
              "compare_code": 1,
              "home": "13",
              "home_total": null,
              "home_value": 13,
              "key": "dispossessed",
              "name": "Dispossessed",
              "type": "negative"
            },
            {
              "away": "48/81 (59%)",
              "away_total": 81,
              "away_value": 48,
              "compare_code": 2,
              "home": "33/81 (41%)",
              "home_total": 81,
              "home_value": 33,
              "key": "groundDuelsPercentage",
              "name": "Ground duels",
              "type": "positive"
            },
            {
              "away": "19/44 (43%)",
              "away_total": 44,
              "away_value": 19,
              "compare_code": 1,
              "home": "25/44 (57%)",
              "home_total": 44,
              "home_value": 25,
              "key": "aerialDuelsPercentage",
              "name": "Aerial duels",
              "type": "positive"
            },
            {
              "away": "7/15 (47%)",
              "away_total": 15,
              "away_value": 7,
              "compare_code": 2,
              "home": "6/17 (35%)",
              "home_total": 17,
              "home_value": 6,
              "key": "dribblesPercentage",
              "name": "Dribbles",
              "type": "positive"
            }
          ],
          "name": "Duels"
        },
        {
          "items": [
            {
              "away": "71%",
              "away_total": 24,
              "away_value": 17,
              "compare_code": 2,
              "home": "65%",
              "home_total": 17,
              "home_value": 11,
              "key": "wonTacklePercent",
              "name": "Tackles won",
              "type": "positive"
            },
            {
              "away": "24",
              "away_total": null,
              "away_value": 24,
              "compare_code": 2,
              "home": "17",
              "home_total": null,
              "home_value": 17,
              "key": "totalTackle",
              "name": "Total tackles",
              "type": "positive"
            },
            {
              "away": "6",
              "away_total": null,
              "away_value": 6,
              "compare_code": 1,
              "home": "12",
              "home_total": null,
              "home_value": 12,
              "key": "interceptionWon",
              "name": "Interceptions",
              "type": "positive"
            },
            {
              "away": "55",
              "away_total": null,
              "away_value": 55,
              "compare_code": 2,
              "home": "49",
              "home_total": null,
              "home_value": 49,
              "key": "ballRecovery",
              "name": "Recoveries",
              "type": "positive"
            },
            {
              "away": "38",
              "away_total": null,
              "away_value": 38,
              "compare_code": 2,
              "home": "23",
              "home_total": null,
              "home_value": 23,
              "key": "totalClearance",
              "name": "Clearances",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "errorsLeadToShot",
              "name": "Errors lead to a shot",
              "type": "negative"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "errorsLeadToGoal",
              "name": "Errors lead to a goal",
              "type": "negative"
            }
          ],
          "name": "Defending"
        },
        {
          "items": [
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "goalkeeperSaves",
              "name": "Total saves",
              "type": "positive"
            },
            {
              "away": "0.00",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "0.44",
              "home_total": null,
              "home_value": 0.4432,
              "key": "goalsPrevented",
              "name": "Goals prevented",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "diveSaves",
              "name": "Big saves",
              "type": "positive"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 2,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "highClaims",
              "name": "High claims",
              "type": "positive"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 2,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "punches",
              "name": "Punches",
              "type": "positive"
            },
            {
              "away": "11",
              "away_total": null,
              "away_value": 11,
              "compare_code": 2,
              "home": "4",
              "home_total": null,
              "home_value": 4,
              "key": "goalKicks",
              "name": "Goal kicks",
              "type": "positive"
            }
          ],
          "name": "Goalkeeping"
        }
      ],
      "period": "ALL"
    },
    {
      "groups": [
        {
          "items": [
            {
              "away": "44%",
              "away_total": null,
              "away_value": 44,
              "compare_code": 1,
              "home": "56%",
              "home_total": null,
              "home_value": 56,
              "key": "ballPossession",
              "name": "Ball possession",
              "type": "positive"
            },
            {
              "away": "58.3 km",
              "away_total": null,
              "away_value": 58.3350478,
              "compare_code": 2,
              "home": "54.2 km",
              "home_total": null,
              "home_value": 54.218895,
              "key": "kilometersCovered",
              "name": "Distance covered",
              "type": "positive"
            },
            {
              "away": "0.81",
              "away_total": null,
              "away_value": 0.81,
              "compare_code": 2,
              "home": "0.40",
              "home_total": null,
              "home_value": 0.4,
              "key": "expectedGoals",
              "name": "Expected goals",
              "type": "positive"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 2,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "bigChanceCreated",
              "name": "Big chances",
              "type": "positive"
            },
            {
              "away": "5",
              "away_total": null,
              "away_value": 5,
              "compare_code": 1,
              "home": "8",
              "home_total": null,
              "home_value": 8,
              "key": "totalShotsOnGoal",
              "name": "Total shots",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "goalkeeperSaves",
              "name": "Goalkeeper saves",
              "type": "positive"
            },
            {
              "away": "62",
              "away_total": null,
              "away_value": 62,
              "compare_code": 1,
              "home": "79",
              "home_total": null,
              "home_value": 79,
              "key": "numberOfSprints",
              "name": "Number of sprints",
              "type": "positive"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 1,
              "home": "6",
              "home_total": null,
              "home_value": 6,
              "key": "cornerKicks",
              "name": "Corner kicks",
              "type": "positive"
            },
            {
              "away": "6",
              "away_total": null,
              "away_value": 6,
              "compare_code": 2,
              "home": "5",
              "home_total": null,
              "home_value": 5,
              "key": "fouls",
              "name": "Fouls",
              "type": "negative"
            },
            {
              "away": "179",
              "away_total": null,
              "away_value": 179,
              "compare_code": 1,
              "home": "214",
              "home_total": null,
              "home_value": 214,
              "key": "passes",
              "name": "Passes",
              "type": "positive"
            },
            {
              "away": "11",
              "away_total": null,
              "away_value": 11,
              "compare_code": 2,
              "home": "9",
              "home_total": null,
              "home_value": 9,
              "key": "totalTackle",
              "name": "Tackles",
              "type": "positive"
            },
            {
              "away": "5",
              "away_total": null,
              "away_value": 5,
              "compare_code": 1,
              "home": "6",
              "home_total": null,
              "home_value": 6,
              "key": "freeKicks",
              "name": "Free kicks",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "yellowCards",
              "name": "Yellow cards",
              "type": "negative"
            }
          ],
          "name": "Match overview"
        },
        {
          "items": [
            {
              "away": "5",
              "away_total": null,
              "away_value": 5,
              "compare_code": 1,
              "home": "8",
              "home_total": null,
              "home_value": 8,
              "key": "totalShotsOnGoal",
              "name": "Total shots",
              "type": "positive"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 2,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "shotsOnGoal",
              "name": "Shots on target",
              "type": "positive"
            },
            {
              "away": "0.81",
              "away_total": null,
              "away_value": 0.81,
              "compare_code": 2,
              "home": "0.40",
              "home_total": null,
              "home_value": 0.4,
              "key": "expectedGoals",
              "name": "Expected goals",
              "type": "positive"
            },
            {
              "away": "1.08",
              "away_total": null,
              "away_value": 1.08,
              "compare_code": 2,
              "home": "0.00",
              "home_total": null,
              "home_value": 0,
              "key": "expectedGoalsOnTarget",
              "name": "Expected goals on target",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "hitWoodwork",
              "name": "Hit woodwork",
              "type": "negative"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 1,
              "home": "6",
              "home_total": null,
              "home_value": 6,
              "key": "shotsOffGoal",
              "name": "Shots off target",
              "type": "negative"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 1,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "blockedScoringAttempt",
              "name": "Blocked shots",
              "type": "negative"
            },
            {
              "away": "3",
              "away_total": null,
              "away_value": 3,
              "compare_code": 1,
              "home": "6",
              "home_total": null,
              "home_value": 6,
              "key": "totalShotsInsideBox",
              "name": "Shots inside box",
              "type": "positive"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 3,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "totalShotsOutsideBox",
              "name": "Shots outside box",
              "type": "positive"
            }
          ],
          "name": "Shots"
        },
        {
          "items": [
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 2,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "bigChanceScored",
              "name": "Big chances scored",
              "type": "positive"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 3,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "bigChanceMissed",
              "name": "Big chances missed",
              "type": "negative"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "fouledFinalThird",
              "name": "Fouled in final third",
              "type": "positive"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 2,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "offsides",
              "name": "Offsides",
              "type": "negative"
            }
          ],
          "name": "Attack"
        },
        {
          "items": [
            {
              "away": "137",
              "away_total": null,
              "away_value": 137,
              "compare_code": 1,
              "home": "178",
              "home_total": null,
              "home_value": 178,
              "key": "accuratePasses",
              "name": "Accurate passes",
              "type": "positive"
            },
            {
              "away": "13",
              "away_total": null,
              "away_value": 13,
              "compare_code": 2,
              "home": "10",
              "home_total": null,
              "home_value": 10,
              "key": "throwIns",
              "name": "Throw-ins",
              "type": "positive"
            },
            {
              "away": "17",
              "away_total": null,
              "away_value": 17,
              "compare_code": 1,
              "home": "31",
              "home_total": null,
              "home_value": 31,
              "key": "finalThirdEntries",
              "name": "Final third entries",
              "type": "positive"
            },
            {
              "away": "9/24 (38%)",
              "away_total": 24,
              "away_value": 9,
              "compare_code": 2,
              "home": "5/19 (26%)",
              "home_total": 19,
              "home_value": 5,
              "key": "accurateLongBalls",
              "name": "Long balls",
              "type": "positive"
            },
            {
              "away": "2/4 (50%)",
              "away_total": 4,
              "away_value": 2,
              "compare_code": 2,
              "home": "4/18 (22%)",
              "home_total": 18,
              "home_value": 4,
              "key": "accurateCross",
              "name": "Crosses",
              "type": "positive"
            }
          ],
          "name": "Passes"
        },
        {
          "items": [
            {
              "away": "43%",
              "away_total": null,
              "away_value": 43,
              "compare_code": 1,
              "home": "57%",
              "home_total": null,
              "home_value": 57,
              "key": "duelWonPercent",
              "name": "Duels",
              "type": "positive"
            },
            {
              "away": "5",
              "away_total": null,
              "away_value": 5,
              "compare_code": 1,
              "home": "6",
              "home_total": null,
              "home_value": 6,
              "key": "dispossessed",
              "name": "Dispossessed",
              "type": "negative"
            },
            {
              "away": "20/40 (50%)",
              "away_total": 40,
              "away_value": 20,
              "compare_code": 3,
              "home": "20/40 (50%)",
              "home_total": 40,
              "home_value": 20,
              "key": "groundDuelsPercentage",
              "name": "Ground duels",
              "type": "positive"
            },
            {
              "away": "3/13 (23%)",
              "away_total": 13,
              "away_value": 3,
              "compare_code": 1,
              "home": "10/13 (77%)",
              "home_total": 13,
              "home_value": 10,
              "key": "aerialDuelsPercentage",
              "name": "Aerial duels",
              "type": "positive"
            },
            {
              "away": "4/8 (50%)",
              "away_total": 8,
              "away_value": 4,
              "compare_code": 1,
              "home": "5/10 (50%)",
              "home_total": 10,
              "home_value": 5,
              "key": "dribblesPercentage",
              "name": "Dribbles",
              "type": "positive"
            }
          ],
          "name": "Duels"
        },
        {
          "items": [
            {
              "away": "64%",
              "away_total": 11,
              "away_value": 7,
              "compare_code": 1,
              "home": "67%",
              "home_total": 9,
              "home_value": 6,
              "key": "wonTacklePercent",
              "name": "Tackles won",
              "type": "positive"
            },
            {
              "away": "11",
              "away_total": null,
              "away_value": 11,
              "compare_code": 2,
              "home": "9",
              "home_total": null,
              "home_value": 9,
              "key": "totalTackle",
              "name": "Total tackles",
              "type": "positive"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 1,
              "home": "8",
              "home_total": null,
              "home_value": 8,
              "key": "interceptionWon",
              "name": "Interceptions",
              "type": "positive"
            },
            {
              "away": "26",
              "away_total": null,
              "away_value": 26,
              "compare_code": 2,
              "home": "25",
              "home_total": null,
              "home_value": 25,
              "key": "ballRecovery",
              "name": "Recoveries",
              "type": "positive"
            },
            {
              "away": "18",
              "away_total": null,
              "away_value": 18,
              "compare_code": 2,
              "home": "12",
              "home_total": null,
              "home_value": 12,
              "key": "totalClearance",
              "name": "Clearances",
              "type": "positive"
            }
          ],
          "name": "Defending"
        },
        {
          "items": [
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "goalkeeperSaves",
              "name": "Total saves",
              "type": "positive"
            },
            {
              "away": "7",
              "away_total": null,
              "away_value": 7,
              "compare_code": 2,
              "home": "3",
              "home_total": null,
              "home_value": 3,
              "key": "goalKicks",
              "name": "Goal kicks",
              "type": "positive"
            }
          ],
          "name": "Goalkeeping"
        }
      ],
      "period": "1ST"
    },
    {
      "groups": [
        {
          "items": [
            {
              "away": "43%",
              "away_total": null,
              "away_value": 43,
              "compare_code": 1,
              "home": "57%",
              "home_total": null,
              "home_value": 57,
              "key": "ballPossession",
              "name": "Ball possession",
              "type": "positive"
            },
            {
              "away": "61.3 km",
              "away_total": null,
              "away_value": 61.2985623,
              "compare_code": 2,
              "home": "57.3 km",
              "home_total": null,
              "home_value": 57.3008189,
              "key": "kilometersCovered",
              "name": "Distance covered",
              "type": "positive"
            },
            {
              "away": "0.17",
              "away_total": null,
              "away_value": 0.17,
              "compare_code": 1,
              "home": "0.64",
              "home_total": null,
              "home_value": 0.64,
              "key": "expectedGoals",
              "name": "Expected goals",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 3,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "bigChanceCreated",
              "name": "Big chances",
              "type": "positive"
            },
            {
              "away": "5",
              "away_total": null,
              "away_value": 5,
              "compare_code": 1,
              "home": "9",
              "home_total": null,
              "home_value": 9,
              "key": "totalShotsOnGoal",
              "name": "Total shots",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "goalkeeperSaves",
              "name": "Goalkeeper saves",
              "type": "positive"
            },
            {
              "away": "52",
              "away_total": null,
              "away_value": 52,
              "compare_code": 1,
              "home": "59",
              "home_total": null,
              "home_value": 59,
              "key": "numberOfSprints",
              "name": "Number of sprints",
              "type": "positive"
            },
            {
              "away": "3",
              "away_total": null,
              "away_value": 3,
              "compare_code": 2,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "cornerKicks",
              "name": "Corner kicks",
              "type": "positive"
            },
            {
              "away": "4",
              "away_total": null,
              "away_value": 4,
              "compare_code": 1,
              "home": "13",
              "home_total": null,
              "home_value": 13,
              "key": "fouls",
              "name": "Fouls",
              "type": "negative"
            },
            {
              "away": "193",
              "away_total": null,
              "away_value": 193,
              "compare_code": 1,
              "home": "250",
              "home_total": null,
              "home_value": 250,
              "key": "passes",
              "name": "Passes",
              "type": "positive"
            },
            {
              "away": "13",
              "away_total": null,
              "away_value": 13,
              "compare_code": 2,
              "home": "8",
              "home_total": null,
              "home_value": 8,
              "key": "totalTackle",
              "name": "Tackles",
              "type": "positive"
            },
            {
              "away": "13",
              "away_total": null,
              "away_value": 13,
              "compare_code": 2,
              "home": "4",
              "home_total": null,
              "home_value": 4,
              "key": "freeKicks",
              "name": "Free kicks",
              "type": "positive"
            },
            {
              "away": "4",
              "away_total": null,
              "away_value": 4,
              "compare_code": 2,
              "home": "3",
              "home_total": null,
              "home_value": 3,
              "key": "yellowCards",
              "name": "Yellow cards",
              "type": "negative"
            }
          ],
          "name": "Match overview"
        },
        {
          "items": [
            {
              "away": "5",
              "away_total": null,
              "away_value": 5,
              "compare_code": 1,
              "home": "9",
              "home_total": null,
              "home_value": 9,
              "key": "totalShotsOnGoal",
              "name": "Total shots",
              "type": "positive"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 2,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "shotsOnGoal",
              "name": "Shots on target",
              "type": "positive"
            },
            {
              "away": "0.17",
              "away_total": null,
              "away_value": 0.17,
              "compare_code": 1,
              "home": "0.64",
              "home_total": null,
              "home_value": 0.64,
              "key": "expectedGoals",
              "name": "Expected goals",
              "type": "positive"
            },
            {
              "away": "0.36",
              "away_total": null,
              "away_value": 0.36,
              "compare_code": 2,
              "home": "0.00",
              "home_total": null,
              "home_value": 0,
              "key": "expectedGoalsOnTarget",
              "name": "Expected goals on target",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 3,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "hitWoodwork",
              "name": "Hit woodwork",
              "type": "negative"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 3,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "shotsOffGoal",
              "name": "Shots off target",
              "type": "negative"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 1,
              "home": "7",
              "home_total": null,
              "home_value": 7,
              "key": "blockedScoringAttempt",
              "name": "Blocked shots",
              "type": "negative"
            },
            {
              "away": "3",
              "away_total": null,
              "away_value": 3,
              "compare_code": 1,
              "home": "8",
              "home_total": null,
              "home_value": 8,
              "key": "totalShotsInsideBox",
              "name": "Shots inside box",
              "type": "positive"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 2,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "totalShotsOutsideBox",
              "name": "Shots outside box",
              "type": "positive"
            }
          ],
          "name": "Shots"
        },
        {
          "items": [
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 3,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "bigChanceScored",
              "name": "Big chances scored",
              "type": "positive"
            },
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 3,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "bigChanceMissed",
              "name": "Big chances missed",
              "type": "negative"
            },
            {
              "away": "1",
              "away_total": null,
              "away_value": 1,
              "compare_code": 2,
              "home": "0",
              "home_total": null,
              "home_value": 0,
              "key": "fouledFinalThird",
              "name": "Fouled in final third",
              "type": "positive"
            },
            {
              "away": "2",
              "away_total": null,
              "away_value": 2,
              "compare_code": 3,
              "home": "2",
              "home_total": null,
              "home_value": 2,
              "key": "offsides",
              "name": "Offsides",
              "type": "negative"
            }
          ],
          "name": "Attack"
        },
        {
          "items": [
            {
              "away": "132",
              "away_total": null,
              "away_value": 132,
              "compare_code": 1,
              "home": "202",
              "home_total": null,
              "home_value": 202,
              "key": "accuratePasses",
              "name": "Accurate passes",
              "type": "positive"
            },
            {
              "away": "5",
              "away_total": null,
              "away_value": 5,
              "compare_code": 1,
              "home": "15",
              "home_total": null,
              "home_value": 15,
              "key": "throwIns",
              "name": "Throw-ins",
              "type": "positive"
            },
            {
              "away": "28",
              "away_total": null,
              "away_value": 28,
              "compare_code": 1,
              "home": "41",
              "home_total": null,
              "home_value": 41,
              "key": "finalThirdEntries",
              "name": "Final third entries",
              "type": "positive"
            },
            {
              "away": "14/41 (34%)",
              "away_total": 41,
              "away_value": 14,
              "compare_code": 2,
              "home": "6/25 (24%)",
              "home_total": 25,
              "home_value": 6,
              "key": "accurateLongBalls",
              "name": "Long balls",
              "type": "positive"
            },
            {
              "away": "2/6 (33%)",
              "away_total": 6,
              "away_value": 2,
              "compare_code": 2,
              "home": "1/15 (7%)",
              "home_total": 15,
              "home_value": 1,
              "key": "accurateCross",
              "name": "Crosses",
              "type": "positive"
            }
          ],
          "name": "Passes"
        },
        {
          "items": [
            {
              "away": "61%",
              "away_total": null,
              "away_value": 61,
              "compare_code": 2,
              "home": "39%",
              "home_total": null,
              "home_value": 39,
              "key": "duelWonPercent",
              "name": "Duels",
              "type": "positive"
            },
            {
              "away": "4",
              "away_total": null,
              "away_value": 4,
              "compare_code": 1,
              "home": "7",
              "home_total": null,
              "home_value": 7,
              "key": "dispossessed",
              "name": "Dispossessed",
              "type": "negative"
            },
            {
              "away": "28/41 (68%)",
              "away_total": 41,
              "away_value": 28,
              "compare_code": 2,
              "home": "13/41 (32%)",
              "home_total": 41,
              "home_value": 13,
              "key": "groundDuelsPercentage",
              "name": "Ground duels",
              "type": "positive"
            },
            {
              "away": "16/31 (52%)",
              "away_total": 31,
              "away_value": 16,
              "compare_code": 2,
              "home": "15/31 (48%)",
              "home_total": 31,
              "home_value": 15,
              "key": "aerialDuelsPercentage",
              "name": "Aerial duels",
              "type": "positive"
            },
            {
              "away": "3/7 (43%)",
              "away_total": 7,
              "away_value": 3,
              "compare_code": 2,
              "home": "1/7 (14%)",
              "home_total": 7,
              "home_value": 1,
              "key": "dribblesPercentage",
              "name": "Dribbles",
              "type": "positive"
            }
          ],
          "name": "Duels"
        },
        {
          "items": [
            {
              "away": "77%",
              "away_total": 13,
              "away_value": 10,
              "compare_code": 2,
              "home": "63%",
              "home_total": 8,
              "home_value": 5,
              "key": "wonTacklePercent",
              "name": "Tackles won",
              "type": "positive"
            },
            {
              "away": "13",
              "away_total": null,
              "away_value": 13,
              "compare_code": 2,
              "home": "8",
              "home_total": null,
              "home_value": 8,
              "key": "totalTackle",
              "name": "Total tackles",
              "type": "positive"
            },
            {
              "away": "4",
              "away_total": null,
              "away_value": 4,
              "compare_code": 3,
              "home": "4",
              "home_total": null,
              "home_value": 4,
              "key": "interceptionWon",
              "name": "Interceptions",
              "type": "positive"
            },
            {
              "away": "29",
              "away_total": null,
              "away_value": 29,
              "compare_code": 2,
              "home": "24",
              "home_total": null,
              "home_value": 24,
              "key": "ballRecovery",
              "name": "Recoveries",
              "type": "positive"
            },
            {
              "away": "20",
              "away_total": null,
              "away_value": 20,
              "compare_code": 2,
              "home": "11",
              "home_total": null,
              "home_value": 11,
              "key": "totalClearance",
              "name": "Clearances",
              "type": "positive"
            }
          ],
          "name": "Defending"
        },
        {
          "items": [
            {
              "away": "0",
              "away_total": null,
              "away_value": 0,
              "compare_code": 1,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "goalkeeperSaves",
              "name": "Total saves",
              "type": "positive"
            },
            {
              "away": "4",
              "away_total": null,
              "away_value": 4,
              "compare_code": 2,
              "home": "1",
              "home_total": null,
              "home_value": 1,
              "key": "goalKicks",
              "name": "Goal kicks",
              "type": "positive"
            }
          ],
          "name": "Goalkeeping"
        }
      ],
      "period": "2ND"
    }
  ]
}
```

## 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
### Which periods are included in the response?
periods[] typically includes ALL for full-match totals alongside 1ST and 2ND for individual halves.

### Are numeric values provided alongside formatted percentage strings?
Yes. Each item provides display strings (home, away) as well as numeric home_value and away_value fields.

### Can I pass a SofaScore match URL as event_id?
Yes. event_id accepts either a numeric event ID or a SofaScore match link.

### Does this endpoint include individual player stats?
No. It returns team-level match statistics; use the SofaScore Event Line-ups API for per-player match statistics.

### How do I pull live statistics during an in-progress fixture?
Pass fresh=1 to bypass the 24-hour cache and fetch live upstream statistics.

### Can I select specific fields or get CSV output?
Output is JSON only. Pass raw=0 to drop bulky raw blocks or specify fields to trim the JSON response.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-event-statistics-api/8f6d25fb-a7db-478a-8204-2d8297960cc5/

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