ToolzerHub Docs

Get a team's events in a group (v1)

Returns one team's events in a sub-tournament season, 30 per page; span=all returns all. A page past the end returns data: null.

1 credit / requestBilled only on success
GET
/v1/sofascore/sub-tournament/season/team/events

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Query Parameters

id*integer

Sub-tournament id (tournament.id on an event): one league phase, group or bracket inside a tournament.

Range1 <= value <= 10000000000
season_id_or_url*string

Season id. List seasons with Get Sports Tournament (seasons). Or the tournament page's link, such as https://www.sofascore.com/football/tournament/england/premier-league/17#id:61627.

Length1 <= length <= 500
team_id_or_url*string

Team id (homeTeam.id or awayTeam.id on an event). Or the team's Sofascore link, such as https://www.sofascore.com/football/team/arsenal/42, or its name (the best Sofascore search match is used).

Length1 <= length <= 500
span?string

last for results, next for fixtures, all for the whole season.

Default"last"

Value in

  • "last"
  • "next"
  • "all"
page?integer

Page number, from 1. hasNextPage says whether another page exists.

Range1 <= value <= 50
Default1
curl -X GET "https://example.com/v1/sofascore/sub-tournament/season/team/events?id=1&season_id_or_url=61627&team_id_or_url=35" \  -H "x-api-key: YOUR_API_KEY"
{  "data": {    "property1": null,    "property2": null  },  "details": {    "reason": "string",    "message": "string"  }}