SofaScore API endpoint
Returns a match's community vote tallies: the match result vote (`match_result` with `home`, `away`, `total` and `draw`, where `draw` is absent for two-way sports such as basketball and tennis), both teams to score, which team scores first and who should have won (when SofaScore has opened that vote). A block that holds no votes is omitted. Returns 404 when SofaScore has no votes for the match.
/sofascore/event-votesQuery parameters:
id: required. Numeric SofaScore event (match) id, e.g. 16363867.Notable response behavior:
match_result has home, away and total; draw is present only for sports with a draw (football) and absent for two-way sports such as basketball and tennis.both_teams_to_score, first_to_score and who_should_have_won are omitted when they hold no votes (they are all zero for basketball and tennis, and who_should_have_won was zero for every football match checked).404 when SofaScore has no votes for the event (an unknown event id). A missing vote block is reported as an upstream error rather than an empty success.| Field | In the sample | Value in the sample |
|---|---|---|
| event_id | Has a value | |
| match_result.home | Has a value | 52,785 |
| match_result.draw | Has a value | 3,713 |
| match_result.away | Has a value | 2,503 |
| match_result.total | Has a value | 59,001 |
| both_teams_to_score.yes | Has a value | 5,882 |
| both_teams_to_score.no | Has a value | 4,381 |
| first_to_score.home | Has a value | 8,908 |
| first_to_score.no_goal | Has a value | 159 |
| first_to_score.away | Has a value | 457 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore event (match) id | 16363867 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/event-votes?id=16363867" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"event_id": 16363867,
"source_url": "https://api.sofascore.com/api/v1/event/16363867/votes",
"fetched_at": "2026-07-08T00:00:00Z",
"match_result": {
"home": 52785,
"draw": 3713,
"away": 2503,
"total": 59001
},
"both_teams_to_score": {
"yes": 5882,
"no": 4381
},
"first_to_score": {
"home": 8908,
"no_goal": 159,
"away": 457
}
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.eventVotesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.EventVotesResponse | No | ||||
| data.both_teams_to_score | sofascore.VoteBothTeamsToScore | No | ||||
| data.both_teams_to_score.no | integer | No | 4381 | |||
| data.both_teams_to_score.yes | integer | No | 5882 | |||
| data.event_id | integer | No | 16363867 | |||
| data.fetched_at | string | No | ||||
| data.first_to_score | sofascore.VoteFirstToScore | No | ||||
| data.first_to_score.away | integer | No | 457 | |||
| data.first_to_score.home | integer | No | 8908 | |||
| data.first_to_score.no_goal | integer | No | 159 | |||
| data.match_result | sofascore.VoteMatchResult | No | ||||
| data.match_result.away | integer | No | 2503 | |||
| data.match_result.draw | integer | No | 3713 | |||
| data.match_result.home | integer | No | 52785 | |||
| data.match_result.total | integer | No | 59001 | |||
| data.source_url | string | No | ||||
| data.who_should_have_won | sofascore.VoteWhoShouldHaveWon | No | ||||
| data.who_should_have_won.away | integer | No | ||||
| data.who_should_have_won.home | integer | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/sofascore/event-votes?id=16363867" \
-H "x-api-key: $CRAWLORA_API_KEY"