# SofaScore event incidents API

Get SofaScore Event Incidents 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, type, and is home to build live match timelines, track goal and assist contributions, and audit substitution timing.

Documentation: https://openany.si/sofascore/sofascore-event-incidents-api/1e1b308f-b1a3-4f9c-8ecd-831e7b927f07/
API ID: 1e1b308f-b1a3-4f9c-8ecd-831e7b927f07
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/incidents
Page update time: 2026-12-03T02:55:26.103Z
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.334Z. 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 Incidents API

Supply event\_id as a SofaScore event ID or match URL to pull the full incident timeline. Each entry in incidents\[\] records type, class, minute, added\_time, running home\_score and away\_score, plus player, assist, player\_in, player\_out and reason where applicable.

## What You Can Build

- **Build live match timelines**: Render chronological goal, card, VAR and substitution feeds directly from incidents\[\].
- **Track goal and assist contributions**: Filter incidents\[\] where type is goal to extract scorers, assists and stoppage-time strikes.
- **Audit substitution timing**: Inspect player\_in, player\_out and minute fields to analyze tactical changes.

## Returned Data

| Field | Meaning |
| --- | --- |
| `event_id` | Requested SofaScore event identifier |
| `count` | Total number of incident entries returned |
| `incidents[].type` | Incident category such as goal, card, substitution or period |
| `incidents[].minute` | Match minute when the incident occurred |
| `incidents[].added_time` | Stoppage time minutes if applicable |
| `incidents[].is_home` | Boolean indicating whether the incident belongs to the home side |
| `incidents[].home_score` | Running home score after the incident |
| `incidents[].away_score` | Running away score after the incident |
| `incidents[].player` | Primary player involved in the incident |
| `incidents[].text` | Short incident label or period marker text |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore event incidents 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"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "event_id": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "incidents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "added_time": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "assist": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "away_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "class": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "home_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_home": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "length": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "integer"
              }
            ]
          },
          "minute": {
            "type": "integer"
          },
          "player": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "player_in": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "player_out": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": {
            "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/incidents?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,
  "count": 22,
  "credits_used": 1,
  "event_id": 16363907,
  "fetched_at": "2026-11-19T12:22:59.475Z",
  "incidents": [
    {
      "added_time": 999,
      "assist": null,
      "away_score": 1,
      "class": null,
      "home_score": 0,
      "is_home": null,
      "length": null,
      "minute": 90,
      "player": null,
      "player_in": null,
      "player_out": null,
      "reason": null,
      "text": "FT",
      "type": "period"
    },
    {
      "added_time": 7,
      "assist": null,
      "away_score": null,
      "class": "yellow",
      "home_score": null,
      "is_home": true,
      "length": null,
      "minute": 90,
      "player": {
        "id": 151545,
        "name": "Virgil van Dijk"
      },
      "player_in": null,
      "player_out": null,
      "reason": "Argument",
      "text": null,
      "type": "card"
    },
    {
      "added_time": 3,
      "assist": null,
      "away_score": null,
      "class": "yellow",
      "home_score": null,
      "is_home": false,
      "length": null,
      "minute": 90,
      "player": {
        "id": 581310,
        "name": "David Raya"
      },
      "player_in": null,
      "player_out": null,
      "reason": "Time wasting",
      "text": null,
      "type": "card"
    },
    {
      "added_time": 0,
      "assist": null,
      "away_score": null,
      "class": null,
      "home_score": null,
      "is_home": null,
      "length": 6,
      "minute": 90,
      "player": null,
      "player_in": null,
      "player_out": null,
      "reason": null,
      "text": null,
      "type": "injuryTime"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "regular",
      "home_score": null,
      "is_home": false,
      "length": null,
      "minute": 88,
      "player": null,
      "player_in": {
        "id": 592010,
        "name": "Mikel Merino"
      },
      "player_out": {
        "id": 547410,
        "name": "Martin Ødegaard"
      },
      "reason": null,
      "text": null,
      "type": "substitution"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "regular",
      "home_score": null,
      "is_home": false,
      "length": null,
      "minute": 84,
      "player": null,
      "player_in": {
        "id": 804508,
        "name": "Viktor Gyökeres"
      },
      "player_out": {
        "id": 836705,
        "name": "Kai Havertz"
      },
      "reason": null,
      "text": null,
      "type": "substitution"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "regular",
      "home_score": null,
      "is_home": false,
      "length": null,
      "minute": 84,
      "player": null,
      "player_in": {
        "id": 1002837,
        "name": "Piero Hincapié"
      },
      "player_out": {
        "id": 1031259,
        "name": "Christos Tzolis"
      },
      "reason": null,
      "text": null,
      "type": "substitution"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "regular",
      "home_score": null,
      "is_home": true,
      "length": null,
      "minute": 81,
      "player": null,
      "player_in": {
        "id": 1403111,
        "name": "Lewis Koumas"
      },
      "player_out": {
        "id": 1019322,
        "name": "Florian Wirtz"
      },
      "reason": null,
      "text": null,
      "type": "substitution"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "regular",
      "home_score": null,
      "is_home": true,
      "length": null,
      "minute": 81,
      "player": null,
      "player_in": {
        "id": 1145642,
        "name": "Víctor Muñoz"
      },
      "player_out": {
        "id": 925097,
        "name": "Ronald Araújo"
      },
      "reason": null,
      "text": null,
      "type": "substitution"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "regular",
      "home_score": null,
      "is_home": true,
      "length": null,
      "minute": 81,
      "player": null,
      "player_in": {
        "id": 786259,
        "name": "Kostas Tsimikas"
      },
      "player_out": {
        "id": 1097425,
        "name": "Miloš Kerkez"
      },
      "reason": null,
      "text": null,
      "type": "substitution"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "yellow",
      "home_score": null,
      "is_home": false,
      "length": null,
      "minute": 80,
      "player": {
        "id": 958959,
        "name": "Jurriën Timber"
      },
      "player_in": null,
      "player_out": null,
      "reason": "Argument",
      "text": null,
      "type": "card"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "yellow",
      "home_score": null,
      "is_home": true,
      "length": null,
      "minute": 80,
      "player": {
        "id": 895324,
        "name": "Alexis Mac Allister"
      },
      "player_in": null,
      "player_out": null,
      "reason": "Argument",
      "text": null,
      "type": "card"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "yellow",
      "home_score": null,
      "is_home": false,
      "length": null,
      "minute": 72,
      "player": {
        "id": 1423711,
        "name": "Myles Lewis-Skelly"
      },
      "player_in": null,
      "player_out": null,
      "reason": "Foul",
      "text": null,
      "type": "card"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "regular",
      "home_score": null,
      "is_home": true,
      "length": null,
      "minute": 67,
      "player": null,
      "player_in": {
        "id": 1881902,
        "name": "Rio Ngumoha"
      },
      "player_out": {
        "id": 862967,
        "name": "Cody Gakpo"
      },
      "reason": null,
      "text": null,
      "type": "substitution"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "yellow",
      "home_score": null,
      "is_home": true,
      "length": null,
      "minute": 67,
      "player": {
        "id": 1097425,
        "name": "Miloš Kerkez"
      },
      "player_in": null,
      "player_out": null,
      "reason": "Foul",
      "text": null,
      "type": "card"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "regular",
      "home_score": null,
      "is_home": false,
      "length": null,
      "minute": 62,
      "player": null,
      "player_in": {
        "id": 1423711,
        "name": "Myles Lewis-Skelly"
      },
      "player_out": {
        "id": 866469,
        "name": "Bruno Guimarães"
      },
      "reason": null,
      "text": null,
      "type": "substitution"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "regular",
      "home_score": null,
      "is_home": true,
      "length": null,
      "minute": 58,
      "player": null,
      "player_in": {
        "id": 869856,
        "name": "Dominik Szoboszlai"
      },
      "player_out": {
        "id": 1445945,
        "name": "Trey Nyoni"
      },
      "reason": null,
      "text": null,
      "type": "substitution"
    },
    {
      "added_time": null,
      "assist": null,
      "away_score": null,
      "class": "yellow",
      "home_score": null,
      "is_home": false,
      "length": null,
      "minute": 55,
      "player": {
        "id": 966547,
        "name": "Noni Madueke"
      },
      "player_in": null,
      "player_out": null,
      "reason": "Foul",
      "text": null,
      "type": "card"
    },
    {
      "added_time": 999,
      "assist": null,
      "away_score": 1,
      "class": null,
      "home_score": 0,
      "is_home": null,
      "length": null,
      "minute": 45,
      "player": null,
      "player_in": null,
      "player_out": null,
      "reason": null,
      "text": "HT",
      "type": "period"
    },
    {
      "added_time": 3,
      "assist": null,
      "away_score": null,
      "class": "yellow",
      "home_score": null,
      "is_home": true,
      "length": null,
      "minute": 45,
      "player": {
        "id": 996952,
        "name": "Bradley Barcola"
      },
      "player_in": null,
      "player_out": null,
      "reason": "Foul",
      "text": null,
      "type": "card"
    },
    {
      "added_time": 0,
      "assist": null,
      "away_score": null,
      "class": null,
      "home_score": null,
      "is_home": null,
      "length": 2,
      "minute": 45,
      "player": null,
      "player_in": null,
      "player_out": null,
      "reason": null,
      "text": null,
      "type": "injuryTime"
    },
    {
      "added_time": null,
      "assist": {
        "id": 856714,
        "name": "Declan Rice"
      },
      "away_score": 1,
      "class": "regular",
      "home_score": 0,
      "is_home": false,
      "length": null,
      "minute": 16,
      "player": {
        "id": 836705,
        "name": "Kai Havertz"
      },
      "player_in": null,
      "player_out": null,
      "reason": null,
      "text": null,
      "type": "goal"
    }
  ]
}
```

## 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
### What incident types appear in incidents[]?
Common entries include goals, cards, substitutions, injury time and period markers, with fields populated according to each incident type.

### Does event_id accept a SofaScore match URL?
Yes. Provide either a numeric event ID or a full SofaScore match URL.

### Are assists and substitution pairs included?
Yes. Goal incidents can include assist details, and substitution entries include player_in and player_out.

### How are stoppage-time events represented?
Events in stoppage time include both minute (such as 45 or 90) and added_time.

### How do I get fresh incidents during an ongoing match?
Pass fresh=1 to skip the 24-hour cache and pull live incident updates.

### Can I trim bulky response fields?
Yes. Pass raw=0 to omit raw source blocks or specify a comma-separated fields list; output is JSON only.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-event-incidents-api/1e1b308f-b1a3-4f9c-8ecd-831e7b927f07/

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