# Flashscore match statistics API

Get Flashscore match statistics by period and category via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as match_id, output, raw, and retrieve structured data including source statistic-period label, source statistic category, home-side metric value, and away-side metric value for sports display, and record linkage.

Documentation: https://openany.si/flashscore/flashscore-match-statistics-api/7b3928ab-4d29-4105-aebc-dddb92b2b216/
API ID: 7b3928ab-4d29-4105-aebc-dddb92b2b216
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/flashscore/v1/match/statistics
Page update time: 2026-12-03T02:47:39.683Z
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:47:35.447Z. 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
## Flashscore Match Statistics API

Pass match\_id. Keep periods, groups and statistic items nested; home and away can be display strings, and expected goals is distinct from the actual score.

## What You Can Build

- **Sports display**: Keep source identities and status labels attached.
- **Record linkage**: Use the exact source reference for a focused detail request.

## Returned Data

| Field | Meaning |
| --- | --- |
| `periods[].period` | Source statistic-period label |
| `periods[].groups[].name` | Source statistic category |
| `periods[].groups[].items[].home` | Home-side metric value as returned |
| `periods[].groups[].items[].away` | Away-side metric value as returned |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Flashscore match 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": {
        "match_id": {
          "type": "string",
          "description": "Flashscore match id or a match link (flashscore.com/match/YceoIxQh/ or .../?mid=YceoIxQh). YceoIxQh = Newcastle v Everton, Premier League, 2 Nov 2026."
        },
        "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": [
        "match_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"
    },
    "fetched_at": {
      "type": "string"
    },
    "match_id": {
      "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"
                      },
                      "home": {
                        "type": "string"
                      },
                      "id": {
                        "type": "integer"
                      },
                      "name": {
                        "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/flashscore/v1/match/statistics?match_id=YceoIxQh&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,
  "fetched_at": "2026-11-19T12:21:43.985Z",
  "match_id": "YceoIxQh",
  "periods": [
    {
      "groups": [
        {
          "items": [
            {
              "away": "2.34",
              "home": "1.29",
              "id": 432,
              "name": "Expected goals (xG)"
            },
            {
              "away": "48%",
              "home": "52%",
              "id": 12,
              "name": "Ball possession"
            },
            {
              "away": "16",
              "home": "17",
              "id": 34,
              "name": "Total shots"
            },
            {
              "away": "5",
              "home": "2",
              "id": 13,
              "name": "Shots on target"
            },
            {
              "away": "4",
              "home": "2",
              "id": 459,
              "name": "Big chances"
            },
            {
              "away": "5",
              "home": "4",
              "id": 16,
              "name": "Corner kicks"
            },
            {
              "away": "80% (315/396)",
              "home": "80% (342/428)",
              "id": 342,
              "name": "Passes"
            },
            {
              "away": "2",
              "home": "4",
              "id": 23,
              "name": "Yellow cards"
            },
            {
              "away": "0",
              "home": "1",
              "id": 22,
              "name": "Red cards"
            }
          ],
          "name": "Top stats"
        },
        {
          "items": [
            {
              "away": "2.34",
              "home": "1.29",
              "id": 432,
              "name": "Expected goals (xG)"
            },
            {
              "away": "2.38",
              "home": "0.20",
              "id": 499,
              "name": "xG on target (xGOT)"
            },
            {
              "away": "16",
              "home": "17",
              "id": 34,
              "name": "Total shots"
            },
            {
              "away": "5",
              "home": "2",
              "id": 13,
              "name": "Shots on target"
            },
            {
              "away": "10",
              "home": "9",
              "id": 14,
              "name": "Shots off target"
            },
            {
              "away": "1",
              "home": "6",
              "id": 158,
              "name": "Blocked shots"
            },
            {
              "away": "11",
              "home": "7",
              "id": 461,
              "name": "Shots inside the box"
            },
            {
              "away": "5",
              "home": "10",
              "id": 463,
              "name": "Shots outside the box"
            },
            {
              "away": "0",
              "home": "1",
              "id": 457,
              "name": "Hit the woodwork"
            }
          ],
          "name": "Shots"
        },
        {
          "items": [
            {
              "away": "4",
              "home": "2",
              "id": 459,
              "name": "Big chances"
            },
            {
              "away": "5",
              "home": "4",
              "id": 16,
              "name": "Corner kicks"
            },
            {
              "away": "30",
              "home": "28",
              "id": 471,
              "name": "Touches in opposition box"
            },
            {
              "away": "1",
              "home": "0",
              "id": 521,
              "name": "Accurate through passes"
            },
            {
              "away": "2",
              "home": "0",
              "id": 17,
              "name": "Offsides"
            },
            {
              "away": "13",
              "home": "9",
              "id": 15,
              "name": "Free kicks"
            }
          ],
          "name": "Attack"
        },
        {
          "items": [
            {
              "away": "80% (315/396)",
              "home": "80% (342/428)",
              "id": 342,
              "name": "Passes"
            },
            {
              "away": "42% (26/62)",
              "home": "24% (13/55)",
              "id": 517,
              "name": "Long passes"
            },
            {
              "away": "76% (100/131)",
              "home": "76% (106/140)",
              "id": 467,
              "name": "Passes in final third"
            },
            {
              "away": "32% (7/22)",
              "home": "29% (7/24)",
              "id": 433,
              "name": "Crosses"
            },
            {
              "away": "0.97",
              "home": "0.64",
              "id": 503,
              "name": "Expected assists (xA)"
            },
            {
              "away": "12",
              "home": "17",
              "id": 18,
              "name": "Throw ins"
            }
          ],
          "name": "Passes"
        },
        {
          "items": [
            {
              "away": "9",
              "home": "13",
              "id": 21,
              "name": "Fouls"
            },
            {
              "away": "40% (4/10)",
              "home": "50% (4/8)",
              "id": 475,
              "name": "Tackles"
            },
            {
              "away": "56",
              "home": "31",
              "id": 513,
              "name": "Duels won"
            },
            {
              "away": "26",
              "home": "33",
              "id": 479,
              "name": "Clearances"
            },
            {
              "away": "6",
              "home": "2",
              "id": 434,
              "name": "Interceptions"
            },
            {
              "away": "0",
              "home": "1",
              "id": 507,
              "name": "Errors leading to shot"
            },
            {
              "away": "0",
              "home": "1",
              "id": 509,
              "name": "Errors leading to goal"
            }
          ],
          "name": "Defense"
        },
        {
          "items": [
            {
              "away": "2",
              "home": "4",
              "id": 19,
              "name": "Goalkeeper saves"
            },
            {
              "away": "0.20",
              "home": "2.38",
              "id": 501,
              "name": "xGOT faced"
            },
            {
              "away": "0.20",
              "home": "1.38",
              "id": 511,
              "name": "Goals prevented"
            },
            {
              "away": "12",
              "home": "8",
              "id": 20,
              "name": "Goal kicks"
            }
          ],
          "name": "Goalkeeping"
        }
      ],
      "period": "Match"
    },
    {
      "groups": [
        {
          "items": [
            {
              "away": "1.13",
              "home": "0.24",
              "id": 432,
              "name": "Expected goals (xG)"
            },
            {
              "away": "50%",
              "home": "50%",
              "id": 12,
              "name": "Ball possession"
            },
            {
              "away": "10",
              "home": "5",
              "id": 34,
              "name": "Total shots"
            },
            {
              "away": "0",
              "home": "0",
              "id": 13,
              "name": "Shots on target"
            },
            {
              "away": "2",
              "home": "0",
              "id": 459,
              "name": "Big chances"
            },
            {
              "away": "0",
              "home": "2",
              "id": 16,
              "name": "Corner kicks"
            },
            {
              "away": "79% (164/207)",
              "home": "76% (158/209)",
              "id": 342,
              "name": "Passes"
            },
            {
              "away": "0",
              "home": "1",
              "id": 23,
              "name": "Yellow cards"
            }
          ],
          "name": "Top stats"
        },
        {
          "items": [
            {
              "away": "1.13",
              "home": "0.24",
              "id": 432,
              "name": "Expected goals (xG)"
            },
            {
              "away": "0.00",
              "home": "0.00",
              "id": 499,
              "name": "xG on target (xGOT)"
            },
            {
              "away": "10",
              "home": "5",
              "id": 34,
              "name": "Total shots"
            },
            {
              "away": "0",
              "home": "0",
              "id": 13,
              "name": "Shots on target"
            },
            {
              "away": "9",
              "home": "2",
              "id": 14,
              "name": "Shots off target"
            },
            {
              "away": "1",
              "home": "3",
              "id": 158,
              "name": "Blocked shots"
            },
            {
              "away": "6",
              "home": "1",
              "id": 461,
              "name": "Shots inside the box"
            },
            {
              "away": "4",
              "home": "4",
              "id": 463,
              "name": "Shots outside the box"
            },
            {
              "away": "0",
              "home": "0",
              "id": 457,
              "name": "Hit the woodwork"
            }
          ],
          "name": "Shots"
        },
        {
          "items": [
            {
              "away": "2",
              "home": "0",
              "id": 459,
              "name": "Big chances"
            },
            {
              "away": "0",
              "home": "2",
              "id": 16,
              "name": "Corner kicks"
            },
            {
              "away": "17",
              "home": "8",
              "id": 471,
              "name": "Touches in opposition box"
            },
            {
              "away": "0",
              "home": "0",
              "id": 521,
              "name": "Accurate through passes"
            },
            {
              "away": "1",
              "home": "0",
              "id": 17,
              "name": "Offsides"
            },
            {
              "away": "7",
              "home": "7",
              "id": 15,
              "name": "Free kicks"
            }
          ],
          "name": "Attack"
        },
        {
          "items": [
            {
              "away": "79% (164/207)",
              "home": "76% (158/209)",
              "id": 342,
              "name": "Passes"
            },
            {
              "away": "39% (12/31)",
              "home": "22% (9/41)",
              "id": 517,
              "name": "Long passes"
            },
            {
              "away": "77% (40/52)",
              "home": "71% (45/63)",
              "id": 467,
              "name": "Passes in final third"
            },
            {
              "away": "36% (4/11)",
              "home": "29% (2/7)",
              "id": 433,
              "name": "Crosses"
            },
            {
              "away": "0.49",
              "home": "0.18",
              "id": 503,
              "name": "Expected assists (xA)"
            },
            {
              "away": "3",
              "home": "8",
              "id": 18,
              "name": "Throw ins"
            }
          ],
          "name": "Passes"
        },
        {
          "items": [
            {
              "away": "7",
              "home": "7",
              "id": 21,
              "name": "Fouls"
            },
            {
              "away": "0% (0/1)",
              "home": "40% (2/5)",
              "id": 475,
              "name": "Tackles"
            },
            {
              "away": "32",
              "home": "18",
              "id": 513,
              "name": "Duels won"
            },
            {
              "away": "9",
              "home": "15",
              "id": 479,
              "name": "Clearances"
            },
            {
              "away": "2",
              "home": "0",
              "id": 434,
              "name": "Interceptions"
            },
            {
              "away": "0",
              "home": "1",
              "id": 507,
              "name": "Errors leading to shot"
            },
            {
              "away": "0",
              "home": "0",
              "id": 509,
              "name": "Errors leading to goal"
            }
          ],
          "name": "Defense"
        },
        {
          "items": [
            {
              "away": "0",
              "home": "0",
              "id": 19,
              "name": "Goalkeeper saves"
            },
            {
              "away": "0.00",
              "home": "0.00",
              "id": 501,
              "name": "xGOT faced"
            },
            {
              "away": "0.00",
              "home": "0.00",
              "id": 511,
              "name": "Goals prevented"
            },
            {
              "away": "6",
              "home": "7",
              "id": 20,
              "name": "Goal kicks"
            }
          ],
          "name": "Goalkeeping"
        }
      ],
      "period": "1st Half"
    },
    {
      "groups": [
        {
          "items": [
            {
              "away": "1.21",
              "home": "1.05",
              "id": 432,
              "name": "Expected goals (xG)"
            },
            {
              "away": "46%",
              "home": "54%",
              "id": 12,
              "name": "Ball possession"
            },
            {
              "away": "6",
              "home": "12",
              "id": 34,
              "name": "Total shots"
            },
            {
              "away": "5",
              "home": "2",
              "id": 13,
              "name": "Shots on target"
            },
            {
              "away": "2",
              "home": "2",
              "id": 459,
              "name": "Big chances"
            },
            {
              "away": "5",
              "home": "2",
              "id": 16,
              "name": "Corner kicks"
            },
            {
              "away": "80% (151/189)",
              "home": "84% (184/219)",
              "id": 342,
              "name": "Passes"
            },
            {
              "away": "2",
              "home": "3",
              "id": 23,
              "name": "Yellow cards"
            },
            {
              "away": "0",
              "home": "1",
              "id": 22,
              "name": "Red cards"
            }
          ],
          "name": "Top stats"
        },
        {
          "items": [
            {
              "away": "1.21",
              "home": "1.05",
              "id": 432,
              "name": "Expected goals (xG)"
            },
            {
              "away": "2.38",
              "home": "0.20",
              "id": 499,
              "name": "xG on target (xGOT)"
            },
            {
              "away": "6",
              "home": "12",
              "id": 34,
              "name": "Total shots"
            },
            {
              "away": "5",
              "home": "2",
              "id": 13,
              "name": "Shots on target"
            },
            {
              "away": "1",
              "home": "7",
              "id": 14,
              "name": "Shots off target"
            },
            {
              "away": "0",
              "home": "3",
              "id": 158,
              "name": "Blocked shots"
            },
            {
              "away": "5",
              "home": "6",
              "id": 461,
              "name": "Shots inside the box"
            },
            {
              "away": "1",
              "home": "6",
              "id": 463,
              "name": "Shots outside the box"
            },
            {
              "away": "0",
              "home": "1",
              "id": 457,
              "name": "Hit the woodwork"
            }
          ],
          "name": "Shots"
        },
        {
          "items": [
            {
              "away": "2",
              "home": "2",
              "id": 459,
              "name": "Big chances"
            },
            {
              "away": "5",
              "home": "2",
              "id": 16,
              "name": "Corner kicks"
            },
            {
              "away": "13",
              "home": "20",
              "id": 471,
              "name": "Touches in opposition box"
            },
            {
              "away": "1",
              "home": "0",
              "id": 521,
              "name": "Accurate through passes"
            },
            {
              "away": "1",
              "home": "0",
              "id": 17,
              "name": "Offsides"
            },
            {
              "away": "6",
              "home": "2",
              "id": 15,
              "name": "Free kicks"
            }
          ],
          "name": "Attack"
        },
        {
          "items": [
            {
              "away": "80% (151/189)",
              "home": "84% (184/219)",
              "id": 342,
              "name": "Passes"
            },
            {
              "away": "45% (14/31)",
              "home": "29% (4/14)",
              "id": 517,
              "name": "Long passes"
            },
            {
              "away": "76% (60/79)",
              "home": "79% (61/77)",
              "id": 467,
              "name": "Passes in final third"
            },
            {
              "away": "27% (3/11)",
              "home": "29% (5/17)",
              "id": 433,
              "name": "Crosses"
            },
            {
              "away": "0.48",
              "home": "0.46",
              "id": 503,
              "name": "Expected assists (xA)"
            },
            {
              "away": "9",
              "home": "9",
              "id": 18,
              "name": "Throw ins"
            }
          ],
          "name": "Passes"
        },
        {
          "items": [
            {
              "away": "2",
              "home": "6",
              "id": 21,
              "name": "Fouls"
            },
            {
              "away": "44% (4/9)",
              "home": "67% (2/3)",
              "id": 475,
              "name": "Tackles"
            },
            {
              "away": "24",
              "home": "13",
              "id": 513,
              "name": "Duels won"
            },
            {
              "away": "17",
              "home": "18",
              "id": 479,
              "name": "Clearances"
            },
            {
              "away": "4",
              "home": "2",
              "id": 434,
              "name": "Interceptions"
            },
            {
              "away": "0",
              "home": "0",
              "id": 507,
              "name": "Errors leading to shot"
            },
            {
              "away": "0",
              "home": "1",
              "id": 509,
              "name": "Errors leading to goal"
            }
          ],
          "name": "Defense"
        },
        {
          "items": [
            {
              "away": "2",
              "home": "4",
              "id": 19,
              "name": "Goalkeeper saves"
            },
            {
              "away": "0.20",
              "home": "2.38",
              "id": 501,
              "name": "xGOT faced"
            },
            {
              "away": "0.20",
              "home": "1.38",
              "id": 511,
              "name": "Goals prevented"
            },
            {
              "away": "6",
              "home": "1",
              "id": 20,
              "name": "Goal kicks"
            }
          ],
          "name": "Goalkeeping"
        }
      ],
      "period": "2nd Half"
    }
  ]
}
```

## 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 periods be combined into one total?
Retain source period labels; match and subperiod values can overlap.

### Are all statistic values integers?
No. Preserve display strings, percentages and metric-specific units.

### Is xG the actual score?
No. Expected goals and scored goals are different measures.

### Does every match expose every statistic?
Coverage is source-dependent. Preserve the returned categories rather than adding absent measures.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/flashscore/flashscore-match-statistics-api/7b3928ab-4d29-4105-aebc-dddb92b2b216/

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