Introduction
This section covers everything you need to get up and running with the Motorsport API v3. Work through these pages in order if you are new to the API. If you are migrating from the Formula One API v1, start with the Migration Guide instead.
In this section
Authentication - How to generate your API token and attach it to requests.
Make your first request - A step-by-step walkthrough of your first live API call.
Pagination - How to page through large result sets using cursor-based pagination.
Set your time zone - How
starting_attimestamps work and how to convert them to a local time zone.
Before you start
You need a Sportmonks account and an active Motorsport API subscription. Sign up at my.sportmonks.com/register. Your API token is generated immediately and is available under API > Tokens in your dashboard.
The base URL for all Motorsport API v3 requests is:
https://api.sportmonks.com/v3/motorsportEvery request must include your api_token. You can attach it as a query parameter:
https://api.sportmonks.com/v3/motorsport/fixtures?api_token=YOUR_TOKENOr as an Authorization request header:
Authorization: YOUR_TOKENBoth approaches are covered in full on the Authentication page.
Related
Last updated
Was this helpful?