Get player stats
curl --request GET \
--url https://api.skytools.app/v1/player/{username} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.skytools.app/v1/player/{username}"
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.skytools.app/v1/player/{username}', 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.skytools.app/v1/player/{username}",
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.skytools.app/v1/player/{username}"
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.skytools.app/v1/player/{username}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.skytools.app/v1/player/{username}")
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{
"success": true,
"data": {
"uuid": "b876ec32e396476ba1158438d83c67d4",
"username": "Technoblade",
"rank": "MVP_PLUS",
"rankFormatted": "MVP+",
"level": 256.72,
"karma": 12500000,
"achievementPoints": 8450,
"questsCompleted": 123,
"challengesCompleted": 123,
"giftsGiven": 15,
"ranksGiven": 3,
"firstLogin": 123,
"lastLogin": 123,
"lastLogout": 123,
"online": true,
"totalExp": 123
},
"meta": {
"cached": true,
"api_version": "v1",
"stale": true,
"age_seconds": 123
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}Player
Get player stats
Returns general Hypixel player stats including network level, karma, rank, achievement points, and login timestamps.
GET
/
player
/
{username}
Get player stats
curl --request GET \
--url https://api.skytools.app/v1/player/{username} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.skytools.app/v1/player/{username}"
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.skytools.app/v1/player/{username}', 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.skytools.app/v1/player/{username}",
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.skytools.app/v1/player/{username}"
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.skytools.app/v1/player/{username}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.skytools.app/v1/player/{username}")
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{
"success": true,
"data": {
"uuid": "b876ec32e396476ba1158438d83c67d4",
"username": "Technoblade",
"rank": "MVP_PLUS",
"rankFormatted": "MVP+",
"level": 256.72,
"karma": 12500000,
"achievementPoints": 8450,
"questsCompleted": 123,
"challengesCompleted": 123,
"giftsGiven": 15,
"ranksGiven": 3,
"firstLogin": 123,
"lastLogin": 123,
"lastLogout": 123,
"online": true,
"totalExp": 123
},
"meta": {
"cached": true,
"api_version": "v1",
"stale": true,
"age_seconds": 123
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is required."
}
}Authorizations
API key starting with sk_. Get one at https://developer.skytools.app/keys
Was this page helpful?
