Tennis API request template generator
Start with the exact REST calls for your tennis project. Pick a workflow and download a request file for the REST Client extension in VS Code.
Live scores and fixtures
# Live scores and fixtures
# Set LIVE_TENNIS_API_KEY before starting the editor.
@base = https://api.livetennisapi.com/api/public/v1
### List live matches
GET {{base}}/matches?status=live
X-API-Key: {{$processEnv LIVE_TENNIS_API_KEY}}
Accept: application/json
### List upcoming matches
GET {{base}}/matches?status=upcoming
X-API-Key: {{$processEnv LIVE_TENNIS_API_KEY}}
Accept: application/json
Run the requests in your editor
Set LIVE_TENNIS_API_KEY in your local environment before starting the editor.
The generated file reads this variable when you send a request. This page never asks for your key.
Open the downloaded file with REST Client. For the player and tape workflows, run the first request, then use an ID from its results in the second request.
Read the REST reference for request parameters and access by plan.