# Flashscore API

> Flashscore provides live match scores and details as a workflow and API.

Flashscore returns in-progress matches grouped by league, with scores, periods, status, teams, and match identifiers. Get live matches requires a sport and optionally accepts a result limit and country or league filter.

- Page: https://fous.com/workflows/flashscore
- Handle: `@flashscore`
- Category: [Sports](https://fous.com/workflows/category/sports)
- Source website: https://flashscore.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Flashscore.

## Methods

### Get live matches

Operation `get_live_matches`, version 1. 1 credit per call.

Get matches currently being played in a sport on Flashscore, in league order. Filter by country or league; scores and periods reflect the live page at the time of the request.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sport` | string | yes | `"football"` | Sport to check, for example football. |
| `max_results` | integer | no | `10` | Maximum number of matches to return, for example 100. |
| `country_or_league` | string | no | `"Mexico"` | Country or league name to match, for example England or Premier League. Leave blank for all. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "sport"
  ],
  "properties": {
    "sport": {
      "enum": [
        "football",
        "tennis",
        "basketball",
        "ice_hockey",
        "baseball",
        "american_football",
        "cricket",
        "rugby",
        "volleyball",
        "handball"
      ],
      "type": "string",
      "description": "Sport to check, for example football.",
      "examples": [
        "football",
        "rugby",
        "tennis"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 100,
      "maximum": 500,
      "minimum": 1,
      "description": "Maximum number of matches to return, for example 100.",
      "x-fous-developer": true,
      "examples": [
        10
      ]
    },
    "country_or_league": {
      "type": "string",
      "default": "",
      "description": "Country or league name to match, for example England or Premier League. Leave blank for all.",
      "examples": [
        "Mexico"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "sport": "football",
      "max_results": 10,
      "country_or_league": "Mexico"
    },
    {
      "sport": "football"
    },
    {
      "sport": "rugby"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `matches` | array |  | In-progress matches, kept together by league in Flashscore order. |
| `matches[].away` | string | `"Racing de Veracruz"` | Away team or second player. |
| `matches[].home` | string | `"Chiapas"` | Home team or first player. |
| `matches[].score` | string or null | `"0-1"` | Current score as text; for tennis, includes games in the current set. |
| `matches[].league` | string | `"Primera Premier"` | League or tournament. |
| `matches[].period` | string or null | `"14"` | Match minute or period as displayed on Flashscore. |
| `matches[].status` | string | `"Live"` | Current match status. |
| `matches[].country` | string or null | `"MEXICO"` | Country or regional category of the league. |
| `matches[].match_id` | string | `"MR5y59hC"` | Flashscore match identifier. |
| `matches[].match_url` | string | `"https://www.flashscore.com/match/football/jaguares-de-chiapas-CdS3LvlD/racing-de-veracruz-jiCRZYPS/?mid=MR5y59hC"` | Flashscore match page. |

**Example input**

```json
{
  "sport": "football",
  "max_results": 10,
  "country_or_league": "Mexico"
}
```

**Example output**

```json
{
  "matches": [
    {
      "away": "Racing de Veracruz",
      "home": "Chiapas",
      "score": "0-1",
      "league": "Primera Premier",
      "period": "14",
      "status": "Live",
      "country": "MEXICO",
      "match_id": "MR5y59hC",
      "match_url": "https://www.flashscore.com/match/football/jaguares-de-chiapas-CdS3LvlD/racing-de-veracruz-jiCRZYPS/?mid=MR5y59hC"
    },
    {
      "away": "Toluca W",
      "home": "Necaxa W",
      "score": "0-2",
      "league": "Liga MX Women - Apertura",
      "period": "55",
      "status": "Live",
      "country": "MEXICO",
      "match_id": "zqaKTEkD",
      "match_url": "https://www.flashscore.com/match/football/necaxa-hdZ3sISr/toluca-dnXZML8p/?mid=zqaKTEkD"
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@flashscore",
  "visibility": "public",
  "operation": "get_live_matches",
  "version": 1,
  "input": {
    "sport": "football",
    "max_results": 10,
    "country_or_league": "Mexico"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@flashscore\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_live_matches\",\n  \"version\": 1,\n  \"input\": {\n    \"sport\": \"football\",\n    \"max_results\": 10,\n    \"country_or_league\": \"Mexico\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@flashscore",
  "visibility": "public",
  "operation": "get_live_matches",
  "version": 1,
  "input": {
    "sport": "football",
    "max_results": 10,
    "country_or_league": "Mexico"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@flashscore","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Monitor live scores across a sport.
- Track match status by country or league.
- Group in-progress matches by league.
- Review live scores and periods for matches.

## FAQ

### Is Fous affiliated with Flashscore?

No. Fous is not affiliated with Flashscore. This workflow reads the public flashscore.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Flashscore account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from flashscore.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### Which matches are currently live?

Get live matches returns in-progress matches for the selected sport, optionally filtered by country or league.

### What is the current score of a live match?

Get live matches includes the current score and match period for each returned match.

### Which league is each live match in?

Get live matches returns each match’s league and country or regional category.

## Related

- [SofaScore API](https://fous.com/workflows/sofascore.md): SofaScore provides live sports scores and match statistics, plus football match details for the most recent played or live match and player season statistics.
- [ESPN API](https://fous.com/workflows/espn.md): ESPN provides daily scores and schedules, team results, player statistics, matchup summaries, and latest topic-specific headlines; coverage and published details vary, especially for college and soccer.
- [Premier League API](https://fous.com/workflows/premier-league.md): Premier League provides current/chosen-season tables and recent form, date-range fixtures/results (up to 380), player profiles and stats, and seasonal leaders; older-season stats may be limited.
- [Cricbuzz API](https://fous.com/workflows/cricbuzz.md): Cricbuzz provides cricket scores limited to current listings, full scorecards for selected or most recent matches including live play, and player profiles, current ICC rankings, and career statistics.
- [Yahoo Sports API](https://fous.com/workflows/yahoo-sports.md): Yahoo Sports returns date-based scores and schedules, seasonal standings, and player regular-season and career stats when Yahoo provides them; unavailable data may be missing.
- [UEFA API](https://fous.com/workflows/uefa.md): UEFA provides football competitions, matches and results, including club competition fixtures and scores by date range and current league-phase or group-stage tables.
- [FIFA API](https://fous.com/workflows/fifa.md): FIFA provides official men’s and women’s national-team rankings, excluding unranked teams, and year-specific tournament matches with scores, teams, stages and venues.
- [MLB API](https://fous.com/workflows/mlb.md): MLB provides scores, schedules and game details for one date or up to seven days, regular-season division standings defaulting to the current year, and player profiles with regular-season stats for a selected season and career.
- [All Sports workflows](https://fous.com/workflows/category/sports)
