For the complete documentation index, see llms.txt. This page is also available as Markdown.

GET All Stages

This endpoint returns all the stages available in our Motorsport API. A stage represents a race weekend.

https://api.sportmonks.com/v3/motorsport/stages
{
    "data": {
        "id": 77475993,
        "sport_id": 2,
        "league_id": 3468,
        "season_id": 25273,
        "type_id": 9724,
        "name": "Formula 1 Heineken Chinese Grand Prix",
        "sort_order": 2,
        "finished": true,
        "is_current": false,
        "starting_at": "2025-03-21",
        "ending_at": "2025-03-23",
        "games_in_current_week": false,
        "tie_breaker_rule_id": 573
    },
Field
Description
Type

id

Refers to the unique id of the stage

integer

sport_id

Refers to the sport of the stage

integer

league_id

Refers to the league related to the stage

integer

season_id

Refers to the season related to the stage

integer

type_id

Indicates what the stage type is

integer

name

Returns the name of the stage

string

sort_order

Returns the order of the stage

integer

finished

Indicates if the stage is finished or not

boolean

is_current

Indicates if the stage is the current stage or not

boolean

starting_at

The starting date of the stage

string

ending_at

The end date of the stage

string

games_in_current_week

Not used in the Motorsport API

boolean

tie_breaker_rule_id

Refers to the tie breaker rule related to the stage - N/A for the Motorsport API

integer

Query Parameters
Required?
Description

api_token

YES

Your unique API token

include

NO

Enrich the API with more data by using includes

select

NO

Select specific fields on the base entity

filters

NO

Filter the API response on multiple related entities. There are static filters and dynamic filters.

Please find the possibilities in the Static and Dynamic Filter tab.

Static filters are always the same and filter in one specific way without any custom options. Each static filter is listed below and has a description of how it filters. For more information, please look at our Filters page.

Not applicable for this endpoint.

Pagination

YES

Include depth

You can use a total of 4 nested includes on this endpoint

Include options

sport league season type fixtures

Related Entities:

Get an overview and explanation of all the fields returned in the API response. The related entities for the Stages endpoints are:

Code Example

require "uri"
require "net/http"

url = URI("https://api.sportmonks.com/v3/motorsport/stages?api_token={your_token}")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)

response = https.request(request)
puts response.read_body
import http.client

conn = http.client.HTTPSConnection("api.sportmonks.com")
payload = ''
headers = {}
conn.request("GET", "/v3/motorsport/stages?api_token={your_token}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

Last updated

Was this helpful?