Endpoint Playground
Returns each side's form going into a match: league position, points (football) or win-loss record (basketball) in `value` with the `label` that names it, the average player rating where SofaScore has one, and the recent results (`W`, `D`, `L`) in the order SofaScore returns them. Covers football and basketball; returns 404 when SofaScore has no pre-game form for the match, which includes tennis matches.
14 Oct 2026: Single record response; 10 fields had a value in every checked item.
Sample value profiles: home.position: 1; label: “Pts”; home.form: 4 entries.
curl 'https://api.crawlora.net/api/v1/sofascore/event-pregame-form?id=16363867' \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| id | string | Yes | 16363867 | Numeric SofaScore event (match) id |
{
"code": 200,
"msg": "OK",
"data": {
"event_id": 16363867,
"source_url": "https://api.sofascore.com/api/v1/event/16363867/pregame-form",
"fetched_at": "2026-07-08T00:00:00Z",
"label": "Pts",
"home": {
"position": 1,
"value": "12",
"avg_rating": 7.91,
"form": [
"W",
"W",
"W"
]
},
"away": {
"position": 15,
"value": "4",
"avg_rating": 7.13,
"form": [
"L",
"W",
"D"
]
}
}
}The sample response, schema and code snippets below work without an account. Sending a live request needs an API key.