curl --request GET \
--url https://padelapi.org/api/pairs/{player1}-{player2}/rivals \
--header 'Authorization: Bearer <token>'import requests
url = "https://padelapi.org/api/pairs/{player1}-{player2}/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/pairs/{player1}-{player2}/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/pairs/{player1}-{player2}/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/pairs/{player1}-{player2}/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/pairs/{player1}-{player2}/rivals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://padelapi.org/api/pairs/{player1}-{player2}/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": "<string>",
"self": "<string>",
"rivals_count": "<string>",
"rivals": [
{
"id": "<string>",
"self": "<string>",
"name": "<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": {
"pair": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Show Pair Rivals
Retrieve the pairs a padel pair has faced most, with the record against each one.
🔒 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/pairs/{player1}-{player2}/rivals \
--header 'Authorization: Bearer <token>'import requests
url = "https://padelapi.org/api/pairs/{player1}-{player2}/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/pairs/{player1}-{player2}/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/pairs/{player1}-{player2}/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/pairs/{player1}-{player2}/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/pairs/{player1}-{player2}/rivals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://padelapi.org/api/pairs/{player1}-{player2}/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": "<string>",
"self": "<string>",
"rivals_count": "<string>",
"rivals": [
{
"id": "<string>",
"self": "<string>",
"name": "<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": {
"pair": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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
PairRivalsResource
Unique identifier of the pair these rivals belong to.
Path to this endpoint, relative to https://padelapi.org.
Number of distinct rival pairs within the filters. Can be larger than the length of rivals, which holds the 10 most frequent.
Rival pairs, with both players together on the opposite side in every counted match. id is the two player IDs joined by a hyphen (e.g. 12-34). matches_won, win_percentage and titles are counted from the side of this pair. 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