Get a team's results or fixtures (v1)
Returns a team's results (type=last) or fixtures (type=next) across all competitions, 30 per page. An unknown id returns data: null.
1 credit / requestBilled only on success
Authorization
ApiKeyAuth x-api-key<token>
In: header
Query Parameters
id*integer
Team id.
Range
1 <= valuetype?string
last for results, newest first; next for fixtures, soonest first.
Default
"last"Value in
- "last"
- "next"
page?integer
Page number, from 1 to 100. has_more says whether another page exists.
Range
1 <= value <= 100Default
1curl -X GET "https://example.com/v1/sofascore/team/events?id=42" \ -H "x-api-key: YOUR_API_KEY"{ "data": { "count": 0, "has_more": true, "events": [ { "id": 0, "slug": "string", "sport": "string", "start_time": "string", "status": { "code": 0, "type": "string", "description": "string" }, "home": { "id": 0, "name": "string", "short_name": "string", "slug": "string", "name_code": "string", "national": true, "gender": "string", "country": { "code": "string", "name": "string" }, "ranking": 0 }, "away": { "id": 0, "name": "string", "short_name": "string", "slug": "string", "name_code": "string", "national": true, "gender": "string", "country": { "code": "string", "name": "string" }, "ranking": 0 }, "home_score": { "current": 0, "display": 0, "periods": { "property1": 0, "property2": 0 }, "tiebreaks": { "property1": 0, "property2": 0 }, "normal_time": 0, "overtime": 0, "penalties": 0, "point": "string", "innings": { "property1": { "score": 0, "wickets": 0, "overs": 0, "run_rate": 0, "target_run_rate": 0 }, "property2": { "score": 0, "wickets": 0, "overs": 0, "run_rate": 0, "target_run_rate": 0 } } }, "away_score": { "current": 0, "display": 0, "periods": { "property1": 0, "property2": 0 }, "tiebreaks": { "property1": 0, "property2": 0 }, "normal_time": 0, "overtime": 0, "penalties": 0, "point": "string", "innings": { "property1": { "score": 0, "wickets": 0, "overs": 0, "run_rate": 0, "target_run_rate": 0 }, "property2": { "score": 0, "wickets": 0, "overs": 0, "run_rate": 0, "target_run_rate": 0 } } }, "winner": "home", "tournament": { "id": 0, "name": "string", "slug": "string", "stage": "string", "category": { "id": 0, "name": "string", "slug": "string", "sport": "string", "country": { "code": "string", "name": "string" } } }, "season": { "id": 0, "name": "string", "year": "string" }, "round": 0, "round_name": "string", "venue": { "name": "string", "city": "string", "country": { "code": "string", "name": "string" }, "capacity": 0 }, "referee": "string", "first_to_serve": "home", "note": "string" } ], "team_id": 0, "type": "last", "page": 0 }, "details": { "reason": "string", "message": "string" }}