# Flashscore Scraper Team Statistic (`statanow/flashscore-scraper-team-statistic`) Actor

Use this alternative FlashScore API to scrape last any number matches any Team from FlashScore, including scores, status, league, kick-off time, detailed event history, and other stats. Export match data, run the scraper using the API, manage and schedule runs, or integrate with external tools.

- **URL**: https://apify.com/statanow/flashscore-scraper-team-statistic.md
- **Developed by:** [statanow](https://apify.com/statanow) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 47 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### ⚽ What can FlashScore Team Scraper do?

FlashScore team statistic scraper **extracts any number last matches from FlashScore**, giving you scores, timelines, and match events in a clean JSON format.

Just run the Actor and you instantly get:

🔗 Match URL and league

🏟️ Home and away teams

⏱️ Score, minutes played, and match status

📅 Kick-off time

📜 Full event history (goals, cards, substitutions, period summaries…)

♟️ Structured live football data in **JSON, CSV, Excel, or HTML**

⌚️ Scheduling, export, and integrations via **API Endpoints &** **webhooks** 

Use this scraper any number last statistics games, build dashboards, automate alerts, support betting workflows, or analyze match event data.

### 📊 What data can I scrape from FlashScore?

Each match includes structured details:

<table>
  <tr>
    <td>🏠 Home team</td>
    <td>🛫 Away team</td>
  </tr>
  <tr>
    <td>⚽ Home score</td>
    <td>🥅 Away score</td>
  </tr>
  <tr>
    <td>📡 Status</td>
    <td>⏱️ Status time</td>
  </tr>
  <tr>
    <td>📅 Start time</td>
    <td>🌍 League</td>
  </tr>
  <tr>
    <td>📄 History (summary)</td>
    <td>🏟️ Score&time</td>
  </tr>
  <tr>
    <td>🥅 Player name</td>
    <td>🏃‍♂️ Action&side</td>
  </tr>
</table>

The final output includes the `source_url`, a `scraped_at` timestamp, the number of matches, and a `matches[]` array with full match and event data.

### How to scrape FlashScore team statistic data

1. [Create](https://console.apify.com/) a free Apify account.
2. Open [FlashScore match statistic scraper](https://apify.com/statanow/flashscore-scraper-team-statistic).
3. Click **Start** and wait.
4. Download your sports dataset in **JSON, CSV, Excel, or XML**, or access it via API.
5. Schedule the scraper to extract football data automatically every minute, hour, day, etc.

### Sports available

<table>
  <tr>
    <td>🎿 Skiing</td>
    <td>🏈 American football</td>
    <td>🏸 Badminton</td>
    <td>🏒 Bandy</td>
    <td>⚾ Baseball</td>
  </tr>
  <tr>
    <td>🏀 Basketball</td>
    <td>🏖️⚽ Beach soccer</td>
    <td>🏖️🏐 Beach volleyball</td>
    <td>🎿🔫 Biathlon</td>
    <td>🥊 Boxing</td>
  </tr>
  <tr>
    <td>🎿 Cross-country skiing</td>
    <td>🚴 Cycling</td>
    <td>🎮 Esports</td>
    <td>🏑 Field hockey</td>
    <td>🥅 Floorball</td>
  </tr>
  <tr>
    <td>⚽ Football</td>
    <td>🥅 Futsal</td>
    <td>⛳ Golf</td>
    <td>🤾 Handball</td>
    <td>🏒 Hockey</td>
  </tr>
  <tr>
    <td>🥊 MMA</td>
    <td>🏎️ Motorsport</td>
    <td>🏀 Netball</td>
    <td>🏉 Rugby league</td>
    <td>🏉 Rugby union</td>
  </tr>
  <tr>
    <td>🏓 Table tennis</td>
    <td>🎾 Tennis</td>
    <td>🏐 Volleyball</td>
    <td>🤽 Water polo</td>
  </tr>
</table>

### ⬇️ Input

FlashScore Scraper works out of the box, but **requires an input that tells it which sport** to scrape.

#### In the Actor input, you may set:

Example: `{"sport": "football", "entity_name": "Barcelona", "historical_matches": 10}`

In Apify Console you can set these variables under **Actor → Settings → Environment variables**.

### ⬆️ Output

When FlashScore Scraper Team Statistic finishes the run, it saves a single JSON file under the key **Output** in the default key-value store. You can view it in the **Storage** tab, download it, or connect it to your workflow via API.

<a href="https://console.apify.com/organization/UbaEfWXBebFMjusBk/actors/bxwy9cFGmtCWAiAAV/source"> <img src="https://postimg.cc/5j3M3Wc7" alt="FlashScore Scraper Team Statistic output" style="width:100%;"> </a>

#### Sample of extracted data from FlashScore match statistic

```json
{
  "input": {
    "sport": "football",
    "normalized_sport": "football",
    "entity_name": "Barcelona",
    "historical_matches": 2
  },
  "resolved": {
    "entity_url": "https://www.flashscore.com/team/barcelona/SKbpVP5K/",
    "results_url": "https://www.flashscore.com/team/barcelona/SKbpVP5K/results/",
    "entity_type": "team",
    "display_name": "Football, Spain: Barcelona live scores, results, fixtures",
    "sport": "football",
    "page_title": "Barcelona live scores, results, fixtures, Barcelona v Newcastle Utd live | Football, Spain",
    "similarity": 100.0
  },
  "matches": {
    "history": {
      "AqHJ2tjK": {
        "url": "https://www.flashscore.com/match/football/barcelona-SKbpVP5K/sevilla-h8oAv4Ts/?mid=AqHJ2tjK#match-summary",
        "match_id": "AqHJ2tjK",
        "kickoff": "15.03.2026 15:15",
        "competition": "LaLiga - Round 28",
        "home_team": "Barcelona",
        "away_team": "Sevilla",
        "home_team_url": "https://www.flashscore.com/team/barcelona/SKbpVP5K/",
        "away_team_url": "https://www.flashscore.com/team/sevilla/h8oAv4Ts/",
        "score": "5 - 2",
        "score_full_time": null,
        "status": "Finished",
        "history": [
          {
            "type": "period_score",
            "period": "1st Half",
            "side": null,
            "minute": null,
            "action": "Period score",
            "player": "",
            "sub_out": null,
            "score_at": "3 - 1",
            "raw": "1st Half 3 - 1"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "home",
            "minute": "9'",
            "action": "Goal",
            "player": "Raphinha",
            "sub_out": null,
            "score_at": "1 - 0",
            "raw": "9' 1 - 0 Raphinha (Penalty)"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "home",
            "minute": "21'",
            "action": "Goal",
            "player": "Raphinha",
            "sub_out": null,
            "score_at": "2 - 0",
            "raw": "21' 2 - 0 Raphinha (Penalty)"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "away",
            "minute": "37'",
            "action": "Yellow card",
            "player": "Suazo G.",
            "sub_out": null,
            "score_at": null,
            "raw": "37' Suazo G. (Holding)"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "home",
            "minute": "38'",
            "action": "Goal",
            "player": "Olmo D.",
            "sub_out": null,
            "score_at": "3 - 0",
            "raw": "38' 3 - 0 Olmo D."
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "away",
            "minute": "45+3'",
            "action": "Goal",
            "player": "Oso",
            "sub_out": null,
            "score_at": "3 - 1",
            "raw": "45+3' 3 - 1 Oso ( Sanchez J. )"
          },
          {
            "type": "period_score",
            "period": "2nd Half",
            "side": null,
            "minute": null,
            "action": "Period score",
            "player": "",
            "sub_out": null,
            "score_at": "2 - 1",
            "raw": "2nd Half 2 - 1"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "46'",
            "action": "Substitution",
            "player": "Ejuke C.",
            "sub_out": "Carmona J. A.",
            "score_at": null,
            "raw": "46' Ejuke C. Carmona J. A."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "46'",
            "action": "Substitution",
            "player": "Maupay N.",
            "sub_out": "Adams A.",
            "score_at": null,
            "raw": "46' Maupay N. Adams A."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "46'",
            "action": "Substitution",
            "player": "Vargas R.",
            "sub_out": "Suazo G.",
            "score_at": null,
            "raw": "46' Vargas R. Suazo G."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "46'",
            "action": "Substitution",
            "player": "Fermín",
            "sub_out": "Pedri",
            "score_at": null,
            "raw": "46' Fermín Pedri"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "51'",
            "action": "Goal",
            "player": "Raphinha",
            "sub_out": null,
            "score_at": "4 - 1",
            "raw": "51' 4 - 1 Raphinha ( Fermín )"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "60'",
            "action": "Goal",
            "player": "Cancelo J.",
            "sub_out": null,
            "score_at": "5 - 1",
            "raw": "60' 5 - 1 Cancelo J."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "66'",
            "action": "Substitution",
            "player": "Araujo R.",
            "sub_out": "Cancelo J.",
            "score_at": null,
            "raw": "66' Araujo R. Cancelo J."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Lamine Yamal",
            "sub_out": "Bardghji R.",
            "score_at": null,
            "raw": "67' Lamine Yamal Bardghji R."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Casado M.",
            "sub_out": "Bernal M.",
            "score_at": null,
            "raw": "67' Casado M. Bernal M."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "70'",
            "action": "Substitution",
            "player": "Castrin",
            "sub_out": "Nianzou T.",
            "score_at": null,
            "raw": "70' Castrin Nianzou T."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "78'",
            "action": "Substitution",
            "player": "Bueno M.",
            "sub_out": "Agoume L.",
            "score_at": null,
            "raw": "78' Bueno M. Agoume L."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "82'",
            "action": "Substitution",
            "player": "Gavi",
            "sub_out": "Raphinha",
            "score_at": null,
            "raw": "82' Gavi Raphinha"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "90+2'",
            "action": "Goal",
            "player": "Sow D.",
            "sub_out": null,
            "score_at": "5 - 2",
            "raw": "90+2' 5 - 2 Sow D. ( Oso )"
          }
        ],
        "incidents": [
          {
            "type": "period_score",
            "period": "1st Half",
            "side": null,
            "minute": null,
            "action": "Period score",
            "player": "",
            "sub_out": null,
            "score_at": "3 - 1",
            "raw": "1st Half 3 - 1"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "home",
            "minute": "9'",
            "action": "Goal",
            "player": "Raphinha",
            "sub_out": null,
            "score_at": "1 - 0",
            "raw": "9' 1 - 0 Raphinha (Penalty)"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "home",
            "minute": "21'",
            "action": "Goal",
            "player": "Raphinha",
            "sub_out": null,
            "score_at": "2 - 0",
            "raw": "21' 2 - 0 Raphinha (Penalty)"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "away",
            "minute": "37'",
            "action": "Yellow card",
            "player": "Suazo G.",
            "sub_out": null,
            "score_at": null,
            "raw": "37' Suazo G. (Holding)"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "home",
            "minute": "38'",
            "action": "Goal",
            "player": "Olmo D.",
            "sub_out": null,
            "score_at": "3 - 0",
            "raw": "38' 3 - 0 Olmo D."
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "away",
            "minute": "45+3'",
            "action": "Goal",
            "player": "Oso",
            "sub_out": null,
            "score_at": "3 - 1",
            "raw": "45+3' 3 - 1 Oso ( Sanchez J. )"
          },
          {
            "type": "period_score",
            "period": "2nd Half",
            "side": null,
            "minute": null,
            "action": "Period score",
            "player": "",
            "sub_out": null,
            "score_at": "2 - 1",
            "raw": "2nd Half 2 - 1"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "46'",
            "action": "Substitution",
            "player": "Ejuke C.",
            "sub_out": "Carmona J. A.",
            "score_at": null,
            "raw": "46' Ejuke C. Carmona J. A."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "46'",
            "action": "Substitution",
            "player": "Maupay N.",
            "sub_out": "Adams A.",
            "score_at": null,
            "raw": "46' Maupay N. Adams A."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "46'",
            "action": "Substitution",
            "player": "Vargas R.",
            "sub_out": "Suazo G.",
            "score_at": null,
            "raw": "46' Vargas R. Suazo G."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "46'",
            "action": "Substitution",
            "player": "Fermín",
            "sub_out": "Pedri",
            "score_at": null,
            "raw": "46' Fermín Pedri"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "51'",
            "action": "Goal",
            "player": "Raphinha",
            "sub_out": null,
            "score_at": "4 - 1",
            "raw": "51' 4 - 1 Raphinha ( Fermín )"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "60'",
            "action": "Goal",
            "player": "Cancelo J.",
            "sub_out": null,
            "score_at": "5 - 1",
            "raw": "60' 5 - 1 Cancelo J."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "66'",
            "action": "Substitution",
            "player": "Araujo R.",
            "sub_out": "Cancelo J.",
            "score_at": null,
            "raw": "66' Araujo R. Cancelo J."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Lamine Yamal",
            "sub_out": "Bardghji R.",
            "score_at": null,
            "raw": "67' Lamine Yamal Bardghji R."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Casado M.",
            "sub_out": "Bernal M.",
            "score_at": null,
            "raw": "67' Casado M. Bernal M."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "70'",
            "action": "Substitution",
            "player": "Castrin",
            "sub_out": "Nianzou T.",
            "score_at": null,
            "raw": "70' Castrin Nianzou T."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "78'",
            "action": "Substitution",
            "player": "Bueno M.",
            "sub_out": "Agoume L.",
            "score_at": null,
            "raw": "78' Bueno M. Agoume L."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "82'",
            "action": "Substitution",
            "player": "Gavi",
            "sub_out": "Raphinha",
            "score_at": null,
            "raw": "82' Gavi Raphinha"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "90+2'",
            "action": "Goal",
            "player": "Sow D.",
            "sub_out": null,
            "score_at": "5 - 2",
            "raw": "90+2' 5 - 2 Sow D. ( Oso )"
          }
        ]
      },
      "pC3kZYup": {
        "url": "https://www.flashscore.com/match/football/barcelona-SKbpVP5K/newcastle-utd-p6ahwuwJ/?mid=pC3kZYup#match-summary",
        "match_id": "pC3kZYup",
        "kickoff": "10.03.2026 20:00",
        "competition": "Champions League - Play Offs - 1/8-finals",
        "home_team": "Newcastle",
        "away_team": "Barcelona",
        "home_team_url": "https://www.flashscore.com/team/newcastle-utd/p6ahwuwJ/",
        "away_team_url": "https://www.flashscore.com/team/barcelona/SKbpVP5K/",
        "score": "1 - 1",
        "score_full_time": null,
        "status": "Finished",
        "history": [
          {
            "type": "period_score",
            "period": "1st Half",
            "side": null,
            "minute": null,
            "action": "Period score",
            "player": "",
            "sub_out": null,
            "score_at": "0 - 0",
            "raw": "1st Half 0 - 0"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "home",
            "minute": "34'",
            "action": "Yellow card",
            "player": "Tonali S.",
            "sub_out": null,
            "score_at": null,
            "raw": "34' Tonali S. (Holding)"
          },
          {
            "type": "period_score",
            "period": "2nd Half",
            "side": null,
            "minute": null,
            "action": "Period score",
            "player": "",
            "sub_out": null,
            "score_at": "1 - 1",
            "raw": "2nd Half 1 - 1"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Livramento V.",
            "sub_out": "Trippier K.",
            "score_at": null,
            "raw": "67' Livramento V. Trippier K."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Gordon A.",
            "sub_out": "Osula W.",
            "score_at": null,
            "raw": "67' Gordon A. Osula W."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Murphy J.",
            "sub_out": "Elanga A.",
            "score_at": null,
            "raw": "67' Murphy J. Elanga A."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "68'",
            "action": "Yellow card",
            "player": "Cancelo J.",
            "sub_out": null,
            "score_at": null,
            "raw": "68' Cancelo J. (Roughing)"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "70'",
            "action": "Substitution",
            "player": "Olmo D.",
            "sub_out": "Pedri",
            "score_at": null,
            "raw": "70' Olmo D. Pedri"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "70'",
            "action": "Substitution",
            "player": "Rashford M.",
            "sub_out": "Lewandowski R.",
            "score_at": null,
            "raw": "70' Rashford M. Lewandowski R."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "73'",
            "action": "Substitution",
            "player": "Casado M.",
            "sub_out": "Bernal M.",
            "score_at": null,
            "raw": "73' Casado M. Bernal M. (Injury)"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "86'",
            "action": "Goal",
            "player": "Barnes H.",
            "sub_out": null,
            "score_at": "1 - 0",
            "raw": "86' 1 - 0 Barnes H. ( Murphy J. )"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "88'",
            "action": "Substitution",
            "player": "Torres F.",
            "sub_out": "Fermín",
            "score_at": null,
            "raw": "88' Torres F. Fermín"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "88'",
            "action": "Substitution",
            "player": "Espart X.",
            "sub_out": "Araujo R.",
            "score_at": null,
            "raw": "88' Espart X. Araujo R."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "90'",
            "action": "Substitution",
            "player": "Willock J.",
            "sub_out": "Barnes H.",
            "score_at": null,
            "raw": "90' Willock J. Barnes H."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "90+4'",
            "action": "Yellow card",
            "player": "Willock J.",
            "sub_out": null,
            "score_at": null,
            "raw": "90+4' Willock J. (Holding)"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "90+6'",
            "action": "Goal",
            "player": "Lamine Yamal",
            "sub_out": null,
            "score_at": "1 - 1",
            "raw": "90+6' 1 - 1 Lamine Yamal (Penalty)"
          }
        ],
        "incidents": [
          {
            "type": "period_score",
            "period": "1st Half",
            "side": null,
            "minute": null,
            "action": "Period score",
            "player": "",
            "sub_out": null,
            "score_at": "0 - 0",
            "raw": "1st Half 0 - 0"
          },
          {
            "type": "incident",
            "period": "1st Half",
            "side": "home",
            "minute": "34'",
            "action": "Yellow card",
            "player": "Tonali S.",
            "sub_out": null,
            "score_at": null,
            "raw": "34' Tonali S. (Holding)"
          },
          {
            "type": "period_score",
            "period": "2nd Half",
            "side": null,
            "minute": null,
            "action": "Period score",
            "player": "",
            "sub_out": null,
            "score_at": "1 - 1",
            "raw": "2nd Half 1 - 1"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Livramento V.",
            "sub_out": "Trippier K.",
            "score_at": null,
            "raw": "67' Livramento V. Trippier K."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Gordon A.",
            "sub_out": "Osula W.",
            "score_at": null,
            "raw": "67' Gordon A. Osula W."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "67'",
            "action": "Substitution",
            "player": "Murphy J.",
            "sub_out": "Elanga A.",
            "score_at": null,
            "raw": "67' Murphy J. Elanga A."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "68'",
            "action": "Yellow card",
            "player": "Cancelo J.",
            "sub_out": null,
            "score_at": null,
            "raw": "68' Cancelo J. (Roughing)"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "70'",
            "action": "Substitution",
            "player": "Olmo D.",
            "sub_out": "Pedri",
            "score_at": null,
            "raw": "70' Olmo D. Pedri"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "70'",
            "action": "Substitution",
            "player": "Rashford M.",
            "sub_out": "Lewandowski R.",
            "score_at": null,
            "raw": "70' Rashford M. Lewandowski R."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "73'",
            "action": "Substitution",
            "player": "Casado M.",
            "sub_out": "Bernal M.",
            "score_at": null,
            "raw": "73' Casado M. Bernal M. (Injury)"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "86'",
            "action": "Goal",
            "player": "Barnes H.",
            "sub_out": null,
            "score_at": "1 - 0",
            "raw": "86' 1 - 0 Barnes H. ( Murphy J. )"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "88'",
            "action": "Substitution",
            "player": "Torres F.",
            "sub_out": "Fermín",
            "score_at": null,
            "raw": "88' Torres F. Fermín"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "88'",
            "action": "Substitution",
            "player": "Espart X.",
            "sub_out": "Araujo R.",
            "score_at": null,
            "raw": "88' Espart X. Araujo R."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "90'",
            "action": "Substitution",
            "player": "Willock J.",
            "sub_out": "Barnes H.",
            "score_at": null,
            "raw": "90' Willock J. Barnes H."
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "home",
            "minute": "90+4'",
            "action": "Yellow card",
            "player": "Willock J.",
            "sub_out": null,
            "score_at": null,
            "raw": "90+4' Willock J. (Holding)"
          },
          {
            "type": "incident",
            "period": "2nd Half",
            "side": "away",
            "minute": "90+6'",
            "action": "Goal",
            "player": "Lamine Yamal",
            "sub_out": null,
            "score_at": "1 - 1",
            "raw": "90+6' 1 - 1 Lamine Yamal (Penalty)"
          }
        ]
      }
    }
  },
  "summary": {
    "requested_matches": 2,
    "matches_scraped": 2,
    "elapsed_seconds": 26.261
  }
}
```

### ❓ FAQ

#### Does it scrape finished or scheduled matches?

Yes. This Actor extracts **finished**  available on FlashScore.

#### Can I use this in automations or external code?

Yes. You can trigger it via API, connect it to webhooks, or integrate it using the Node.js and Python SDKs.

#### FlashScore Match Statistic Scraper not working?

We continuously update and improve scraper reliability. If you notice bugs or changes in FlashScore website structure, please report them on the Actor’s [**Issues tab**](https://apify.com/statanow/flashscore-scraper-team-statistic/issues/open) so we can fix them quickly.

# Actor input Schema

## `sport` (type: `string`):

Choose a sport from the supported list.

## `historical_matches` (type: `integer`):

How many latest completed results to scrape from the resolved results page.

## `name` (type: `string`):

For example Barcelona, Bayern Munich, Jannik Sinner, Elina Svitolina.

## Actor input object example

```json
{
  "sport": "football",
  "historical_matches": 10,
  "name": "Barcelona"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("statanow/flashscore-scraper-team-statistic").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("statanow/flashscore-scraper-team-statistic").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call statanow/flashscore-scraper-team-statistic --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,statanow/flashscore-scraper-team-statistic"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/bxwy9cFGmtCWAiAAV/builds/EQzJ67azujHHHm0lF/openapi.json
