SofaScore API endpoint
Use Crawlora's SofaScore team fixtures API to extract supported public SofaScore data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/sofascore/team-eventsReturns a page of a team's upcoming or recent fixtures from SofaScore's credential-free public JSON. The `direction` enum accepts `next` and `last`. An empty `events` list is a valid response when there is no fixture on that page. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore team id | ||
| direction | string | Yes | Fixture direction Allowed values: next, last | ||
| page | integer | No | Zero-based page number | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/team-events?direction=next&page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
- An empty `events` array is a valid response when there is no fixture on that page (not an error). - `has_next_page` indicates whether a further page (`page + 1`) has more fixtures in the requested direction. Example response: ```json { "code": 200, "msg": "OK", "data": { "team_id": 2817, "direction": "next", "page": 0, "has_next_page": true, "count": 1, "source_url": "https://api.sofascore.com/api/v1/team/2817/events/next/0", "fetched_at": "2026-07-08T16:45:00Z", "events": [ { "id": 16500000, "slug": "barcelona-real-madrid", "start_timestamp": 1757520000, "start_time": "2026-09-10T19:00:00Z", "status": { "code": 0, "description": "Not started", "type": "notstarted" }, "tournament": { "id": 52, "name": "LaLiga", "category": "Spain", "unique_tournament_id": 8, "unique_tournament_name": "LaLiga" }, "home_team": { "id": 2817, "name": "FC Barcelona", "short_name": "Barcelona", "slug": "barcelona", "country": "Spain" }, "away_team": { "id": 2829, "name": "Real Madrid", "short_name": "Real Madrid", "slug": "real-madrid", "country": "Spain" } } ] } } ```
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| 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 |
{
"code": 200,
"msg": "OK",
"data": {
"team_id": 2817,
"direction": "next",
"page": 0,
"has_next_page": true,
"count": 1,
"source_url": "https://api.sofascore.com/api/v1/team/2817/events/next/0",
"fetched_at": "2026-07-08T16:45:00Z",
"events": [
{
"id": 16500000,
"slug": "barcelona-real-madrid",
"start_timestamp": 1757520000,
"start_time": "2026-09-10T19:00:00Z",
"status": {
"code": 0,
"description": "Not started",
"type": "notstarted"
},
"tournament": {
"id": 52,
"name": "LaLiga",
"category": "Spain",
"unique_tournament_id": 8,
"unique_tournament_name": "LaLiga"
},
"home_team": {
"id": 2817,
"name": "FC Barcelona",
"short_name": "Barcelona",
"slug": "barcelona",
"country": "Spain"
},
"away_team": {
"id": 2829,
"name": "Real Madrid",
"short_name": "Real Madrid",
"slug": "real-madrid",
"country": "Spain"
}
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.teamEventsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TeamEventsResponse | No | ||||
| data.count | integer | No | ||||
| data.direction | string | No | next | |||
| data.events | array | No | ||||
| data.events[].away_score | sofascore.ScoreLine | No | ||||
| data.events[].away_score.current | integer | No | ||||
| data.events[].away_score.period1 | integer | No | ||||
| data.events[].away_score.period2 | integer | No | ||||
| data.events[].away_team | sofascore.TeamRef | No | ||||
| data.events[].away_team.country | string | No | Spain | |||
| data.events[].away_team.id | integer | No | 2817 | |||
| data.events[].away_team.name | string | No | FC Barcelona | |||
| data.events[].away_team.national | boolean | No | ||||
| data.events[].away_team.short_name | string | No | Barcelona | |||
| data.events[].away_team.slug | string | No | barcelona | |||
| data.events[].home_score | sofascore.ScoreLine | No | ||||
| data.events[].home_score.current | integer | No | ||||
| data.events[].home_score.period1 | integer | No | ||||
| data.events[].home_score.period2 | integer | No | ||||
| data.events[].home_team | sofascore.TeamRef | No | ||||
| data.events[].home_team.country | string | No | Spain | |||
| data.events[].home_team.id | integer | No | 2817 | |||
| data.events[].home_team.name | string | No | FC Barcelona | |||
| data.events[].home_team.national | boolean | No | ||||
| data.events[].home_team.short_name | string | No | Barcelona | |||
| data.events[].home_team.slug | string | No | barcelona | |||
| data.events[].id | integer | No | 14025013 | |||
| data.events[].slug | string | No | ||||
| data.events[].start_time | string | No | 2025-08-15T19:00:00Z | |||
| data.events[].start_timestamp | integer | No | ||||
| data.events[].status | sofascore.EventStatus | No | ||||
| data.events[].status.code | integer | No | ||||
| data.events[].status.description | string | No | Ended | |||
| data.events[].status.type | string | No | finished | |||
| data.events[].tournament | sofascore.TournamentRef | No | ||||
| data.events[].tournament.category | string | No | England | |||
| data.events[].tournament.id | integer | No | ||||
| data.events[].tournament.name | string | No | Premier League | |||
| data.events[].tournament.slug | string | No | premier-league | |||
| data.events[].tournament.unique_tournament_id | integer | No | 17 | |||
| data.events[].tournament.unique_tournament_name | string | No | Premier League | |||
| data.events[].winner_code | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.has_next_page | boolean | No | ||||
| data.page | integer | No | ||||
| data.source_url | string | No | ||||
| data.team_id | integer | No | ||||
| msg | string | No | OK |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/sofascore/team-events?direction=next&page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms