A player's public profile and the clubs they rank in.
curl --request GET \
--url https://www.smashandclash.in/api/v1/players/{id}import requests
url = "https://www.smashandclash.in/api/v1/players/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.smashandclash.in/api/v1/players/{id}', 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://www.smashandclash.in/api/v1/players/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://www.smashandclash.in/api/v1/players/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.smashandclash.in/api/v1/players/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.smashandclash.in/api/v1/players/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"player": {
"id": "<string>",
"name": "<string>",
"rating": 123,
"rank": "<string>",
"provisional": true,
"games": 123,
"winRate": 123,
"favoriteChampion": {},
"recentForm": "<string>",
"updatedAt": "<string>",
"url": "<string>"
},
"movedFrom": "<string>",
"clubs": [
{}
]
}{
"status": 123,
"error": "<string>",
"code": "bad_request",
"hint": "<string>",
"type": "<string>",
"title": "<string>",
"detail": "<string>",
"docs": "<string>"
}players
A player's public profile and the clubs they rank in.
A player’s public profile (name, rating, rank, games, win rate, favourite champion, recent form) and each club they rank in, with their place. A player’s id is their friend code. A guest profile that moved to an account answers with the account (and movedFrom).
GET
/
players
/
{id}
A player's public profile and the clubs they rank in.
curl --request GET \
--url https://www.smashandclash.in/api/v1/players/{id}import requests
url = "https://www.smashandclash.in/api/v1/players/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.smashandclash.in/api/v1/players/{id}', 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://www.smashandclash.in/api/v1/players/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://www.smashandclash.in/api/v1/players/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.smashandclash.in/api/v1/players/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.smashandclash.in/api/v1/players/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"player": {
"id": "<string>",
"name": "<string>",
"rating": 123,
"rank": "<string>",
"provisional": true,
"games": 123,
"winRate": 123,
"favoriteChampion": {},
"recentForm": "<string>",
"updatedAt": "<string>",
"url": "<string>"
},
"movedFrom": "<string>",
"clubs": [
{}
]
}{
"status": 123,
"error": "<string>",
"code": "bad_request",
"hint": "<string>",
"type": "<string>",
"title": "<string>",
"detail": "<string>",
"docs": "<string>"
}