curl --request GET \
--url https://padelapi.org/api/players/{player}/rivals \
--header 'Authorization: Bearer <token>'import requests
url = "https://padelapi.org/api/players/{player}/rivals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://padelapi.org/api/players/{player}/rivals', 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://padelapi.org/api/players/{player}/rivals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://padelapi.org/api/players/{player}/rivals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://padelapi.org/api/players/{player}/rivals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://padelapi.org/api/players/{player}/rivals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 123,
"self": "<string>",
"rivals_count": "<string>",
"rivals": [
{
"id": 123,
"self": "<string>",
"name": "<string>",
"nationality": "<string>",
"matches_played": 123,
"matches_won": 123,
"win_percentage": 123,
"titles": 123,
"finals": 123,
"first_match_at": "<string>",
"last_match_at": "<string>",
"connections": {
"stats": "<string>"
}
}
],
"connections": {
"player": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Show Player Rivals
Retrieve the players a professional padel player has faced most, with the record against each one whoever the partners were on either side. Use it to power rivalry sections in player profiles and match previews.
๐ This endpoint requires a Pro subscription.
Returns the 10 most frequent rivals, sorted by matches_played and then by the most
recent match. Only finished and retired matches count, and qualification matches and
team tournaments are left out, so the record describes main draw play only. It spans
the whole history covered, so it surfaces historical rivalries too: in the seasons
where only finals are covered, only finals count.
curl --request GET \
--url https://padelapi.org/api/players/{player}/rivals \
--header 'Authorization: Bearer <token>'import requests
url = "https://padelapi.org/api/players/{player}/rivals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://padelapi.org/api/players/{player}/rivals', 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://padelapi.org/api/players/{player}/rivals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://padelapi.org/api/players/{player}/rivals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://padelapi.org/api/players/{player}/rivals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://padelapi.org/api/players/{player}/rivals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 123,
"self": "<string>",
"rivals_count": "<string>",
"rivals": [
{
"id": 123,
"self": "<string>",
"name": "<string>",
"nationality": "<string>",
"matches_played": 123,
"matches_won": 123,
"win_percentage": 123,
"titles": 123,
"finals": 123,
"first_match_at": "<string>",
"last_match_at": "<string>",
"connections": {
"stats": "<string>"
}
}
],
"connections": {
"player": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The player ID
Query Parameters
Date after to calculate the rivals in YYYY-MM-DD format.
Date before to calculate the rivals in YYYY-MM-DD format.
Tournament level(s) to scope the rivals. Accepts one or multiple comma-separated values (e.g. major,p1,p2 for all Premier Padel matches) or repeated parameters (e.g. level[]=major&level[]=p1). Valid values are the level codes in the coverage tables.
Round of the match to calculate the rivals (1 = Final, 2 = Semifinal, 4 = Quarterfinal, 8 = Round of 16, 16 = Round of 32, 32 = Round of 64)
1, 2, 4, 8, 16, 32 Response
PlayerRivalsResource
Unique identifier of the player these rivals belong to.
Path to this endpoint, relative to https://padelapi.org.
Number of distinct rival players within the filters. Can be larger than the length of rivals, which holds the 10 most frequent.
Rival players, on the opposite side in every counted match whoever the partners were. matches_won, win_percentage and titles are counted from the side of this player. finals are the finals played against the rival and titles the ones won.
Show child attributes
Show child attributes
Related endpoints.
Show child attributes
Show child attributes