LiveScore API endpoint
Returns the statistics section for a LiveScore match when the source exposes it.
/livescore/match-statsQuery parameters:
path (required): the five-segment relative path following /en/ from a LiveScore match URL, such as football/uefa-nations-league/league-b-group-3/austria-vs-israel/1738267.Notable response behavior: fetches the public match page to read its current Next.js build id, then requests that match's Stats page JSON. Returns the upstream initialEventData object, including its event.statistics map, when LiveScore marks stats available. Returns not found when the match does not expose statistics. The football path above was live-validated; the response remains raw because statistic names and groups vary by sport and match.
| Field | Filled in, of 11 checked | Values in the sample |
|---|---|---|
| id | 11 | |
| name | 11 | “matchTabs.Info” and 9 other values |
| href | 10 | “info/” and 8 other values |
| isVisible | 5 | true in 0 of 5 |
| subId | 2 | “Livescore_6” |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| path | string | Yes | Five-segment path after /en/ from a LiveScore match URL | football/uefa-nations-league/league-b-group-3/austria-vs-israel/1738267 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/livescore/match-stats?path=football%2Fuefa-nations-league%2Fleague-b-group-3%2Faustria-vs-israel%2F1738267" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"source_url": "https://www.livescore.com/_next/data/<current-build-id>/en/football/uefa-nations-league/league-b-group-3/austria-vs-israel/1738267/stats.json",
"data": {
"event": {
"id": "1738267",
"statistics": {
"shotsOnTarget": [
"3",
"1"
],
"possession": [
"55%",
"45%"
]
}
}
}
}
}Request schema
No body schema
Response schema
#/definitions/livescore.responseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | livescore.sourceDataDoc | No | ||||
| data.data | object | No | ||||
| data.source_url | string | No | https://www.livescore.com/en/football/uefa-nations-league/league-b-group-3/austria-vs-israel/1738267/ | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/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/livescore/match-stats?path=football%2Fuefa-nations-league%2Fleague-b-group-3%2Faustria-vs-israel%2F1738267" \
-H "x-api-key: $CRAWLORA_API_KEY"