# SofaScore event detail API

Get SofaScore Event Detail 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 sofaScore event identifier, status, scheduled kickoff timestamp, home team display name, and away team display name to render full match headers, power pre-match and post-match summaries, and anchor deeper match endpoints.

Documentation: https://openany.si/sofascore/sofascore-event-detail-api/02b9db1a-f85d-4b05-a318-e04d152df4c4/
API ID: 02b9db1a-f85d-4b05-a318-e04d152df4c4
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event
Page update time: 2026-12-03T02:55:26.094Z
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.256Z. 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 Detail API

Pass event\_id as a SofaScore numeric ID or match URL to retrieve full match metadata. The response includes home\_team, away\_team, score breakdowns, status, venue, referee, tournament, season and fan\_votes.

## What You Can Build

- **Render full match headers**: Display team logos, scores, kickoff time, venue capacity and referee info on a match center page.
- **Power pre-match and post-match summaries**: Combine winner, period score details and fan\_votes for editorial match cards.
- **Anchor deeper match endpoints**: Use event ID, team IDs and tournament ID from this payload to call line-ups, stats, odds and shot maps.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | SofaScore event identifier |
| `status` | Normalized match status such as finished or inprogress |
| `start_time` | Scheduled kickoff timestamp |
| `home_team.name` | Home team display name |
| `away_team.name` | Away team display name |
| `home_score` | Current or final home team score |
| `away_score` | Current or final away team score |
| `venue.name` | Stadium or venue name |
| `referee.name` | Assigned match referee name |
| `tournament.name` | Competition name for the event |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore event detail 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": {
    "away_score": {
      "type": "integer"
    },
    "away_score_detail": {
      "type": "object",
      "properties": {
        "current": {
          "type": "integer"
        },
        "display": {
          "type": "integer"
        },
        "normaltime": {
          "type": "integer"
        },
        "period1": {
          "type": "integer"
        },
        "period2": {
          "type": "integer"
        }
      }
    },
    "away_team": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "logo": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "short_name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "category": {
      "type": "object",
      "properties": {
        "country_code": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "credits_used": {
      "type": "integer"
    },
    "custom_id": {
      "type": "string"
    },
    "fan_votes": {
      "type": "object",
      "properties": {
        "bothTeamsToScoreVote": {
          "type": "object",
          "properties": {
            "voteNo": {
              "type": "integer"
            },
            "voteYes": {
              "type": "integer"
            }
          }
        },
        "firstTeamToScoreVote": {
          "type": "object",
          "properties": {
            "voteAway": {
              "type": "integer"
            },
            "voteHome": {
              "type": "integer"
            },
            "voteNoGoal": {
              "type": "integer"
            }
          }
        },
        "vote": {
          "type": "object",
          "properties": {
            "vote1": {
              "type": "integer"
            },
            "vote2": {
              "type": "integer"
            },
            "voteX": {
              "type": "integer"
            }
          }
        },
        "whoShouldHaveWonVote": {
          "type": "object",
          "properties": {
            "vote1": {
              "type": "integer"
            },
            "vote2": {
              "type": "integer"
            }
          }
        }
      }
    },
    "fetched_at": {
      "type": "string"
    },
    "home_score": {
      "type": "integer"
    },
    "home_score_detail": {
      "type": "object",
      "properties": {
        "current": {
          "type": "integer"
        },
        "display": {
          "type": "integer"
        },
        "normaltime": {
          "type": "integer"
        },
        "period1": {
          "type": "integer"
        },
        "period2": {
          "type": "integer"
        }
      }
    },
    "home_team": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "logo": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "short_name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "id": {
      "type": "integer"
    },
    "managers": {
      "type": "object",
      "properties": {
        "away": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "shortName": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            }
          }
        },
        "home": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "shortName": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            }
          }
        }
      }
    },
    "referee": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "round": {
      "type": "integer"
    },
    "season": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "year": {
          "type": "string"
        }
      }
    },
    "slug": {
      "type": "string"
    },
    "sport": {
      "type": "string"
    },
    "start_time": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "status_code": {
      "type": "integer"
    },
    "status_description": {
      "type": "string"
    },
    "tournament": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      }
    },
    "url": {
      "type": "string"
    },
    "venue": {
      "type": "object",
      "properties": {
        "capacity": {
          "type": "integer"
        },
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "winner": {
      "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?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
{
  "away_score": 1,
  "away_score_detail": {
    "current": 1,
    "display": 1,
    "normaltime": 1,
    "period1": 1,
    "period2": 0
  },
  "away_team": {
    "code": "ARS",
    "country": "England",
    "id": 42,
    "logo": "https://img.sofascore.com/api/v1/team/42/image",
    "name": "Arsenal",
    "short_name": "Arsenal",
    "slug": "arsenal",
    "url": "https://www.sofascore.com/football/team/arsenal/42"
  },
  "cached": false,
  "category": {
    "country_code": "EN",
    "id": 1,
    "name": "England"
  },
  "credits_used": 1,
  "custom_id": "HQfh",
  "fan_votes": {
    "bothTeamsToScoreVote": {
      "voteNo": 2720,
      "voteYes": 21520
    },
    "firstTeamToScoreVote": {
      "voteAway": 9000,
      "voteHome": 7652,
      "voteNoGoal": 681
    },
    "vote": {
      "vote1": 46940,
      "vote2": 51824,
      "voteX": 18875
    },
    "whoShouldHaveWonVote": {
      "vote1": 0,
      "vote2": 0
    }
  },
  "fetched_at": "2026-11-19T12:22:57.559Z",
  "home_score": 0,
  "home_score_detail": {
    "current": 0,
    "display": 0,
    "normaltime": 0,
    "period1": 0,
    "period2": 0
  },
  "home_team": {
    "code": "LIV",
    "country": "England",
    "id": 44,
    "logo": "https://img.sofascore.com/api/v1/team/44/image",
    "name": "Liverpool FC",
    "short_name": "Liverpool",
    "slug": "liverpool",
    "url": "https://www.sofascore.com/football/team/liverpool/44"
  },
  "id": 16363907,
  "managers": {
    "away": {
      "id": 794075,
      "name": "Mikel Arteta",
      "shortName": "M. Arteta",
      "slug": "mikel-arteta"
    },
    "home": {
      "id": 790205,
      "name": "Andoni Iraola",
      "shortName": "A. Iraola",
      "slug": "andoni-iraola"
    }
  },
  "referee": {
    "country": "England",
    "id": 79884,
    "name": "Andy Madley"
  },
  "round": 9,
  "season": {
    "id": 96668,
    "name": "Premier League 26/27",
    "year": "26/27"
  },
  "slug": "liverpool-fc-arsenal",
  "sport": "football",
  "start_time": "2026-11-01T16:30:00.000Z",
  "status": "finished",
  "status_code": 100,
  "status_description": "Ended",
  "tournament": {
    "id": 17,
    "name": "Premier League",
    "slug": "premier-league"
  },
  "url": "https://www.sofascore.com/football/match/liverpool-fc-arsenal/HQfh#id:16363907",
  "venue": {
    "capacity": 61276,
    "city": "Liverpool",
    "country": "England",
    "id": 579,
    "name": "Anfield"
  },
  "winner": "away"
}
```

## 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 event_id be a SofaScore match URL?
Yes. You can pass either a numeric event ID such as 16363907 or a SofaScore match link.

### Does this endpoint include period-by-period scores?
Yes. home_score_detail and away_score_detail provide period1, period2, normaltime, current and display scores.

### Are venue and referee fields always populated?
They are included when published on SofaScore; check for null or missing values on lower-tier or unscheduled fixtures.

### Does Event Detail include line-ups or detailed match stats?
No. Call the SofaScore Event Line-ups API or Event Statistics API with the same event_id for those datasets.

### How do I get live score updates without waiting for cache expiry?
Pass fresh=1 to skip the 24-hour cache and fetch current upstream data.

### How can I minimize JSON payload size?
Pass raw=0 to drop raw source blocks or use fields to return only selected top-level and nested keys.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-event-detail-api/02b9db1a-f85d-4b05-a318-e04d152df4c4/

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