Tennis V1
Live Matches
Get all currently live tennis matches
GET
/
games
/
current
Live Matches
curl --request GET \
--url https://api.sportsapipro.com/v1/tennis/games/current \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sportsapipro.com/v1/tennis/games/current"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sportsapipro.com/v1/tennis/games/current', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sportsapipro.com/v1/tennis/games/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sportsapipro.com/v1/tennis/games/current"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sportsapipro.com/v1/tennis/games/current")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportsapipro.com/v1/tennis/games/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"games": [
{
"id": 123,
"statusText": "<string>",
"statusGroup": 123,
"homeCompetitor": {
"id": 123,
"name": "<string>",
"score": "<string>",
"imageUrl": "<string>"
},
"awayCompetitor": {
"id": 123,
"name": "<string>",
"score": "<string>",
"imageUrl": "<string>"
},
"competition": {
"id": 123,
"name": "<string>",
"country": {
"id": 123,
"name": "<string>"
},
"hasStandings": true
},
"startTime": "2023-11-07T05:31:56Z"
}
],
"lastUpdateId": 123
}Overview
Returns all tennis matches currently in progress with real-time scores. For Grand Slam and ATP/WTA events, data updates every ~5 seconds.Code Examples
curl -X GET "https://api.sportsapipro.com/v1/tennis/games/current" \
-H "x-api-key: YOUR_API_KEY"
const response = await fetch(
'https://api.sportsapipro.com/v1/tennis/games/current',
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const { games, lastUpdateId } = await response.json();
import requests
response = requests.get(
'https://api.sportsapipro.com/v1/tennis/games/current',
headers={'x-api-key': 'YOUR_API_KEY'}
)
data = response.json()
Efficient Polling
UselastUpdateId for efficient real-time updates:
let lastUpdateId = null;
async function poll() {
const url = lastUpdateId
? `https://api.sportsapipro.com/v1/tennis/games/current?lastUpdateId=${lastUpdateId}`
: 'https://api.sportsapipro.com/v1/tennis/games/current';
const response = await fetch(url, {
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const data = await response.json();
lastUpdateId = data.lastUpdateId;
// Only changed data is returned after first request
return data.games;
}
setInterval(poll, 5000);
Response Structure
array
Array of live tennis matches
integer
Use for subsequent polling to get only changes
Filter by tournament using
?competitions=512 for Wimbledon matches only.Authorizations
Your SportsAPI Pro API key
Query Parameters
Filter by competition ID (e.g., 512 for Wimbledon)
Example:
512
For efficient polling - returns only updates since this ID
Last modified on June 29, 2026
Was this page helpful?
⌘I
Live Matches
curl --request GET \
--url https://api.sportsapipro.com/v1/tennis/games/current \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sportsapipro.com/v1/tennis/games/current"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sportsapipro.com/v1/tennis/games/current', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sportsapipro.com/v1/tennis/games/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sportsapipro.com/v1/tennis/games/current"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sportsapipro.com/v1/tennis/games/current")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportsapipro.com/v1/tennis/games/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"games": [
{
"id": 123,
"statusText": "<string>",
"statusGroup": 123,
"homeCompetitor": {
"id": 123,
"name": "<string>",
"score": "<string>",
"imageUrl": "<string>"
},
"awayCompetitor": {
"id": 123,
"name": "<string>",
"score": "<string>",
"imageUrl": "<string>"
},
"competition": {
"id": 123,
"name": "<string>",
"country": {
"id": 123,
"name": "<string>"
},
"hasStandings": true
},
"startTime": "2023-11-07T05:31:56Z"
}
],
"lastUpdateId": 123
}