Endpoint Playground
Returns a team's last played match and its next scheduled match with teams, competition, status, score and start time. Either side can be missing (a team with no upcoming fixture returns only `previous_event`). Returns 404 when SofaScore has neither. For full fixture lists use team-events.
14 Oct 2026: Single record response; 20 fields had a value in every checked item.
Sample value profiles: previous_event.start_timestamp: 2026-10-11; previous_event.start_time: 2026-10-11; next_event.start_timestamp: 2026-10-14.
curl 'https://api.crawlora.net/api/v1/sofascore/team-near-events?id=17' \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| id | string | Yes | 17 | Numeric SofaScore team id |
{
"code": 200,
"msg": "OK",
"data": {
"team_id": 17,
"source_url": "https://api.sofascore.com/api/v1/team/17/near-events",
"fetched_at": "2026-10-07T00:00:00Z",
"previous_event": {
"id": 16363867,
"slug": "sunderland-manchester-city",
"start_timestamp": 1789909200,
"start_time": "2026-09-20T13:00:00Z",
"status": {
"code": 100,
"description": "Ended",
"type": "finished"
},
"winner_code": 1,
"tournament": {
"id": 1,
"name": "Premier League",
"slug": "premier-league",
"category": "England",
"unique_tournament_id": 17,
"unique_tournament_name": "Premier League"
},
"home_team": {
"id": 17,
"name": "Manchester City",
"short_name": "Man City",
"slug": "manchester-city"
},
"away_team": {
"id": 41,
"name": "Sunderland",
"short_name": "Sunderland",
"slug": "sunderland"
},
"home_score": {
"current": 5,
"period1": 3,
"period2": 2
},
"away_score": {
"current": 3,
"period1": 2,
"period2": 1
}
},
"next_event": {
"id": 16363878,
"start_timestamp": 1791732600,
"start_time": "2026-10-11T15:30:00Z",
"status": {
"code": 0,
"description": "Not started",
"type": "notstarted"
},
"tournament": {
"id": 1,
"name": "Premier League",
"unique_tournament_id": 17
},
"home_team": {
"id": 44,
"name": "Liverpool FC",
"slug": "liverpool"
},
"away_team": {
"id": 17,
"name": "Manchester City",
"short_name": "Man City",
"slug": "manchester-city"
}
}
}
}The sample response, schema and code snippets below work without an account. Sending a live request needs an API key.