OpenAny
Get API keyAPI Key
APIData

sofascore logo
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.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

SofaScore Event Incidents API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
SofaScore Event Incidents API

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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: event_id (SofaScore event ID or match URL). Optional: raw=0, fields, fresh=1, output=json.
Selected implementation apish · SofaScore event incidents API
Billing See the pricing area for the selected implementation and request options

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/incidents \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode event_id=16363907 \
  --data-urlencode output=json \
  --data-urlencode raw=0

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published SofaScore Event Incidents API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
SofaScore event id or a match link (sofascore.com/football/match/liverpool-arsenal/HQfh#id:16363907). 16363907 = Liverpool v Arsenal, Premier League 26/27.
Optional parameters (5)
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
SofaScore event incidents API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/incidents
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
event_idURL query parametersquerystringYes

SofaScore event id or a match link (sofascore.com/football/match/liverpool-arsenal/HQfh#id:16363907). 16363907 = Liverpool v Arsenal, Premier League 26/27.

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • event_idinteger
  • fetched_atstring
  • incidentsobject[]
    • added_timeinteger | null
    • assistnull | object
      • idinteger
      • namestring
    • away_scoreinteger | null
    • classnull | string
    • home_scoreinteger | null
    • is_homenull | boolean
    • lengthnull | integer
    • minuteinteger
    • playernull | object
      • idinteger
      • namestring
    • player_innull | object
      • idinteger
      • namestring
    • player_outnull | object
      • idinteger
      • namestring
    • reasonnull | string
    • textstring | null
    • typestring

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 6

    Review these request fields before running. Keep the published provider and request method unchanged.

    event_id
    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
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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"
        }
      ]
    }

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.

Use SofaScore Event Incidents API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.