Player Lookup
curl --request POST \
--url https://api.example.com/player/lookup \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"bedwars": {
"activeBedDestroy": "<string>",
"activeDeathCry": "<string>",
"activeGlyph": "<string>",
"activeIslandTopper": "<string>",
"activeKillEffect": "<string>",
"activeKillMessages": "<string>",
"activeNPCSkin": "<string>",
"activeProjectileTrail": "<string>",
"activeSprays": "<string>",
"activeVictoryDance": "<string>",
"activeWoodType": "<string>",
"bedwars_exp": 123,
"bedwars_level": 123,
"displayname": "<string>",
"eight_one_beds_broken_bedwars": 123,
"eight_one_beds_lost_bedwars": 123,
"eight_one_deaths_bedwars": 123,
"eight_one_final_deaths_bedwars": 123,
"eight_one_final_kills_bedwars": 123,
"eight_one_kills_bedwars": 123,
"eight_one_losses_bedwars": 123,
"eight_one_wins_bedwars": 123,
"eight_two_beds_broken_bedwars": 123,
"eight_two_beds_lost_bedwars": 123,
"eight_two_deaths_bedwars": 123,
"eight_two_final_deaths_bedwars": 123,
"eight_two_final_kills_bedwars": 123,
"eight_two_kills_bedwars": 123,
"eight_two_losses_bedwars": 123,
"eight_two_wins_bedwars": 123,
"four_four_beds_broken_bedwars": 123,
"four_four_beds_lost_bedwars": 123,
"four_four_deaths_bedwars": 123,
"four_four_final_deaths_bedwars": 123,
"four_four_final_kills_bedwars": 123,
"four_four_kills_bedwars": 123,
"four_four_losses_bedwars": 123,
"four_four_wins_bedwars": 123,
"four_three_beds_broken_bedwars": 123,
"four_three_beds_lost_bedwars": 123,
"four_three_deaths_bedwars": 123,
"four_three_final_deaths_bedwars": 123,
"four_three_final_kills_bedwars": 123,
"four_three_kills_bedwars": 123,
"four_three_losses_bedwars": 123,
"four_three_wins_bedwars": 123,
"linked_discord": "<string>",
"overall_beds_broken_bedwars": 123,
"overall_beds_lost_bedwars": 123,
"overall_deaths_bedwars": 123,
"overall_final_deaths_bedwars": 123,
"overall_final_kills_bedwars": 123,
"overall_kills_bedwars": 123,
"overall_losses_bedwars": 123,
"overall_wins_bedwars": 123,
"player_rank": "<string>",
"quickbuy": "<string>",
"updated_at": "<string>",
"uuid": "<string>"
},
"difference": 123,
"game_mode": "<string>",
"live_status": true,
"skywars": {
"activeKit_SOLO": "<string>",
"activeKit_SOLO_random": true,
"activeKit_TEAMS": "<string>",
"activeKit_TEAMS_random": true,
"active_balloon": "<string>",
"active_cage": "<string>",
"active_deathcry": "<string>",
"active_killeffect": "<string>",
"active_killmessages": "<string>",
"active_projectiletrail": "<string>",
"active_sprays": "<string>",
"active_victorydance": "<string>",
"displayname": "<string>",
"heads": 123,
"kills": 123,
"last_lobby_seen": "<string>",
"level": 123,
"player_rank": "<string>",
"seen_at": "<string>",
"updated_at": "<string>",
"uuid": "<string>",
"void_kills": 123
}
}
'import requests
url = "https://api.example.com/player/lookup"
payload = {
"bedwars": {
"activeBedDestroy": "<string>",
"activeDeathCry": "<string>",
"activeGlyph": "<string>",
"activeIslandTopper": "<string>",
"activeKillEffect": "<string>",
"activeKillMessages": "<string>",
"activeNPCSkin": "<string>",
"activeProjectileTrail": "<string>",
"activeSprays": "<string>",
"activeVictoryDance": "<string>",
"activeWoodType": "<string>",
"bedwars_exp": 123,
"bedwars_level": 123,
"displayname": "<string>",
"eight_one_beds_broken_bedwars": 123,
"eight_one_beds_lost_bedwars": 123,
"eight_one_deaths_bedwars": 123,
"eight_one_final_deaths_bedwars": 123,
"eight_one_final_kills_bedwars": 123,
"eight_one_kills_bedwars": 123,
"eight_one_losses_bedwars": 123,
"eight_one_wins_bedwars": 123,
"eight_two_beds_broken_bedwars": 123,
"eight_two_beds_lost_bedwars": 123,
"eight_two_deaths_bedwars": 123,
"eight_two_final_deaths_bedwars": 123,
"eight_two_final_kills_bedwars": 123,
"eight_two_kills_bedwars": 123,
"eight_two_losses_bedwars": 123,
"eight_two_wins_bedwars": 123,
"four_four_beds_broken_bedwars": 123,
"four_four_beds_lost_bedwars": 123,
"four_four_deaths_bedwars": 123,
"four_four_final_deaths_bedwars": 123,
"four_four_final_kills_bedwars": 123,
"four_four_kills_bedwars": 123,
"four_four_losses_bedwars": 123,
"four_four_wins_bedwars": 123,
"four_three_beds_broken_bedwars": 123,
"four_three_beds_lost_bedwars": 123,
"four_three_deaths_bedwars": 123,
"four_three_final_deaths_bedwars": 123,
"four_three_final_kills_bedwars": 123,
"four_three_kills_bedwars": 123,
"four_three_losses_bedwars": 123,
"four_three_wins_bedwars": 123,
"linked_discord": "<string>",
"overall_beds_broken_bedwars": 123,
"overall_beds_lost_bedwars": 123,
"overall_deaths_bedwars": 123,
"overall_final_deaths_bedwars": 123,
"overall_final_kills_bedwars": 123,
"overall_kills_bedwars": 123,
"overall_losses_bedwars": 123,
"overall_wins_bedwars": 123,
"player_rank": "<string>",
"quickbuy": "<string>",
"updated_at": "<string>",
"uuid": "<string>"
},
"difference": 123,
"game_mode": "<string>",
"live_status": True,
"skywars": {
"activeKit_SOLO": "<string>",
"activeKit_SOLO_random": True,
"activeKit_TEAMS": "<string>",
"activeKit_TEAMS_random": True,
"active_balloon": "<string>",
"active_cage": "<string>",
"active_deathcry": "<string>",
"active_killeffect": "<string>",
"active_killmessages": "<string>",
"active_projectiletrail": "<string>",
"active_sprays": "<string>",
"active_victorydance": "<string>",
"displayname": "<string>",
"heads": 123,
"kills": 123,
"last_lobby_seen": "<string>",
"level": 123,
"player_rank": "<string>",
"seen_at": "<string>",
"updated_at": "<string>",
"uuid": "<string>",
"void_kills": 123
}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bedwars: {
activeBedDestroy: '<string>',
activeDeathCry: '<string>',
activeGlyph: '<string>',
activeIslandTopper: '<string>',
activeKillEffect: '<string>',
activeKillMessages: '<string>',
activeNPCSkin: '<string>',
activeProjectileTrail: '<string>',
activeSprays: '<string>',
activeVictoryDance: '<string>',
activeWoodType: '<string>',
bedwars_exp: 123,
bedwars_level: 123,
displayname: '<string>',
eight_one_beds_broken_bedwars: 123,
eight_one_beds_lost_bedwars: 123,
eight_one_deaths_bedwars: 123,
eight_one_final_deaths_bedwars: 123,
eight_one_final_kills_bedwars: 123,
eight_one_kills_bedwars: 123,
eight_one_losses_bedwars: 123,
eight_one_wins_bedwars: 123,
eight_two_beds_broken_bedwars: 123,
eight_two_beds_lost_bedwars: 123,
eight_two_deaths_bedwars: 123,
eight_two_final_deaths_bedwars: 123,
eight_two_final_kills_bedwars: 123,
eight_two_kills_bedwars: 123,
eight_two_losses_bedwars: 123,
eight_two_wins_bedwars: 123,
four_four_beds_broken_bedwars: 123,
four_four_beds_lost_bedwars: 123,
four_four_deaths_bedwars: 123,
four_four_final_deaths_bedwars: 123,
four_four_final_kills_bedwars: 123,
four_four_kills_bedwars: 123,
four_four_losses_bedwars: 123,
four_four_wins_bedwars: 123,
four_three_beds_broken_bedwars: 123,
four_three_beds_lost_bedwars: 123,
four_three_deaths_bedwars: 123,
four_three_final_deaths_bedwars: 123,
four_three_final_kills_bedwars: 123,
four_three_kills_bedwars: 123,
four_three_losses_bedwars: 123,
four_three_wins_bedwars: 123,
linked_discord: '<string>',
overall_beds_broken_bedwars: 123,
overall_beds_lost_bedwars: 123,
overall_deaths_bedwars: 123,
overall_final_deaths_bedwars: 123,
overall_final_kills_bedwars: 123,
overall_kills_bedwars: 123,
overall_losses_bedwars: 123,
overall_wins_bedwars: 123,
player_rank: '<string>',
quickbuy: '<string>',
updated_at: '<string>',
uuid: '<string>'
},
difference: 123,
game_mode: '<string>',
live_status: true,
skywars: {
activeKit_SOLO: '<string>',
activeKit_SOLO_random: true,
activeKit_TEAMS: '<string>',
activeKit_TEAMS_random: true,
active_balloon: '<string>',
active_cage: '<string>',
active_deathcry: '<string>',
active_killeffect: '<string>',
active_killmessages: '<string>',
active_projectiletrail: '<string>',
active_sprays: '<string>',
active_victorydance: '<string>',
displayname: '<string>',
heads: 123,
kills: 123,
last_lobby_seen: '<string>',
level: 123,
player_rank: '<string>',
seen_at: '<string>',
updated_at: '<string>',
uuid: '<string>',
void_kills: 123
}
})
};
fetch('https://api.example.com/player/lookup', 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.example.com/player/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bedwars' => [
'activeBedDestroy' => '<string>',
'activeDeathCry' => '<string>',
'activeGlyph' => '<string>',
'activeIslandTopper' => '<string>',
'activeKillEffect' => '<string>',
'activeKillMessages' => '<string>',
'activeNPCSkin' => '<string>',
'activeProjectileTrail' => '<string>',
'activeSprays' => '<string>',
'activeVictoryDance' => '<string>',
'activeWoodType' => '<string>',
'bedwars_exp' => 123,
'bedwars_level' => 123,
'displayname' => '<string>',
'eight_one_beds_broken_bedwars' => 123,
'eight_one_beds_lost_bedwars' => 123,
'eight_one_deaths_bedwars' => 123,
'eight_one_final_deaths_bedwars' => 123,
'eight_one_final_kills_bedwars' => 123,
'eight_one_kills_bedwars' => 123,
'eight_one_losses_bedwars' => 123,
'eight_one_wins_bedwars' => 123,
'eight_two_beds_broken_bedwars' => 123,
'eight_two_beds_lost_bedwars' => 123,
'eight_two_deaths_bedwars' => 123,
'eight_two_final_deaths_bedwars' => 123,
'eight_two_final_kills_bedwars' => 123,
'eight_two_kills_bedwars' => 123,
'eight_two_losses_bedwars' => 123,
'eight_two_wins_bedwars' => 123,
'four_four_beds_broken_bedwars' => 123,
'four_four_beds_lost_bedwars' => 123,
'four_four_deaths_bedwars' => 123,
'four_four_final_deaths_bedwars' => 123,
'four_four_final_kills_bedwars' => 123,
'four_four_kills_bedwars' => 123,
'four_four_losses_bedwars' => 123,
'four_four_wins_bedwars' => 123,
'four_three_beds_broken_bedwars' => 123,
'four_three_beds_lost_bedwars' => 123,
'four_three_deaths_bedwars' => 123,
'four_three_final_deaths_bedwars' => 123,
'four_three_final_kills_bedwars' => 123,
'four_three_kills_bedwars' => 123,
'four_three_losses_bedwars' => 123,
'four_three_wins_bedwars' => 123,
'linked_discord' => '<string>',
'overall_beds_broken_bedwars' => 123,
'overall_beds_lost_bedwars' => 123,
'overall_deaths_bedwars' => 123,
'overall_final_deaths_bedwars' => 123,
'overall_final_kills_bedwars' => 123,
'overall_kills_bedwars' => 123,
'overall_losses_bedwars' => 123,
'overall_wins_bedwars' => 123,
'player_rank' => '<string>',
'quickbuy' => '<string>',
'updated_at' => '<string>',
'uuid' => '<string>'
],
'difference' => 123,
'game_mode' => '<string>',
'live_status' => true,
'skywars' => [
'activeKit_SOLO' => '<string>',
'activeKit_SOLO_random' => true,
'activeKit_TEAMS' => '<string>',
'activeKit_TEAMS_random' => true,
'active_balloon' => '<string>',
'active_cage' => '<string>',
'active_deathcry' => '<string>',
'active_killeffect' => '<string>',
'active_killmessages' => '<string>',
'active_projectiletrail' => '<string>',
'active_sprays' => '<string>',
'active_victorydance' => '<string>',
'displayname' => '<string>',
'heads' => 123,
'kills' => 123,
'last_lobby_seen' => '<string>',
'level' => 123,
'player_rank' => '<string>',
'seen_at' => '<string>',
'updated_at' => '<string>',
'uuid' => '<string>',
'void_kills' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/player/lookup"
payload := strings.NewReader("{\n \"bedwars\": {\n \"activeBedDestroy\": \"<string>\",\n \"activeDeathCry\": \"<string>\",\n \"activeGlyph\": \"<string>\",\n \"activeIslandTopper\": \"<string>\",\n \"activeKillEffect\": \"<string>\",\n \"activeKillMessages\": \"<string>\",\n \"activeNPCSkin\": \"<string>\",\n \"activeProjectileTrail\": \"<string>\",\n \"activeSprays\": \"<string>\",\n \"activeVictoryDance\": \"<string>\",\n \"activeWoodType\": \"<string>\",\n \"bedwars_exp\": 123,\n \"bedwars_level\": 123,\n \"displayname\": \"<string>\",\n \"eight_one_beds_broken_bedwars\": 123,\n \"eight_one_beds_lost_bedwars\": 123,\n \"eight_one_deaths_bedwars\": 123,\n \"eight_one_final_deaths_bedwars\": 123,\n \"eight_one_final_kills_bedwars\": 123,\n \"eight_one_kills_bedwars\": 123,\n \"eight_one_losses_bedwars\": 123,\n \"eight_one_wins_bedwars\": 123,\n \"eight_two_beds_broken_bedwars\": 123,\n \"eight_two_beds_lost_bedwars\": 123,\n \"eight_two_deaths_bedwars\": 123,\n \"eight_two_final_deaths_bedwars\": 123,\n \"eight_two_final_kills_bedwars\": 123,\n \"eight_two_kills_bedwars\": 123,\n \"eight_two_losses_bedwars\": 123,\n \"eight_two_wins_bedwars\": 123,\n \"four_four_beds_broken_bedwars\": 123,\n \"four_four_beds_lost_bedwars\": 123,\n \"four_four_deaths_bedwars\": 123,\n \"four_four_final_deaths_bedwars\": 123,\n \"four_four_final_kills_bedwars\": 123,\n \"four_four_kills_bedwars\": 123,\n \"four_four_losses_bedwars\": 123,\n \"four_four_wins_bedwars\": 123,\n \"four_three_beds_broken_bedwars\": 123,\n \"four_three_beds_lost_bedwars\": 123,\n \"four_three_deaths_bedwars\": 123,\n \"four_three_final_deaths_bedwars\": 123,\n \"four_three_final_kills_bedwars\": 123,\n \"four_three_kills_bedwars\": 123,\n \"four_three_losses_bedwars\": 123,\n \"four_three_wins_bedwars\": 123,\n \"linked_discord\": \"<string>\",\n \"overall_beds_broken_bedwars\": 123,\n \"overall_beds_lost_bedwars\": 123,\n \"overall_deaths_bedwars\": 123,\n \"overall_final_deaths_bedwars\": 123,\n \"overall_final_kills_bedwars\": 123,\n \"overall_kills_bedwars\": 123,\n \"overall_losses_bedwars\": 123,\n \"overall_wins_bedwars\": 123,\n \"player_rank\": \"<string>\",\n \"quickbuy\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\"\n },\n \"difference\": 123,\n \"game_mode\": \"<string>\",\n \"live_status\": true,\n \"skywars\": {\n \"activeKit_SOLO\": \"<string>\",\n \"activeKit_SOLO_random\": true,\n \"activeKit_TEAMS\": \"<string>\",\n \"activeKit_TEAMS_random\": true,\n \"active_balloon\": \"<string>\",\n \"active_cage\": \"<string>\",\n \"active_deathcry\": \"<string>\",\n \"active_killeffect\": \"<string>\",\n \"active_killmessages\": \"<string>\",\n \"active_projectiletrail\": \"<string>\",\n \"active_sprays\": \"<string>\",\n \"active_victorydance\": \"<string>\",\n \"displayname\": \"<string>\",\n \"heads\": 123,\n \"kills\": 123,\n \"last_lobby_seen\": \"<string>\",\n \"level\": 123,\n \"player_rank\": \"<string>\",\n \"seen_at\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\",\n \"void_kills\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/player/lookup")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"bedwars\": {\n \"activeBedDestroy\": \"<string>\",\n \"activeDeathCry\": \"<string>\",\n \"activeGlyph\": \"<string>\",\n \"activeIslandTopper\": \"<string>\",\n \"activeKillEffect\": \"<string>\",\n \"activeKillMessages\": \"<string>\",\n \"activeNPCSkin\": \"<string>\",\n \"activeProjectileTrail\": \"<string>\",\n \"activeSprays\": \"<string>\",\n \"activeVictoryDance\": \"<string>\",\n \"activeWoodType\": \"<string>\",\n \"bedwars_exp\": 123,\n \"bedwars_level\": 123,\n \"displayname\": \"<string>\",\n \"eight_one_beds_broken_bedwars\": 123,\n \"eight_one_beds_lost_bedwars\": 123,\n \"eight_one_deaths_bedwars\": 123,\n \"eight_one_final_deaths_bedwars\": 123,\n \"eight_one_final_kills_bedwars\": 123,\n \"eight_one_kills_bedwars\": 123,\n \"eight_one_losses_bedwars\": 123,\n \"eight_one_wins_bedwars\": 123,\n \"eight_two_beds_broken_bedwars\": 123,\n \"eight_two_beds_lost_bedwars\": 123,\n \"eight_two_deaths_bedwars\": 123,\n \"eight_two_final_deaths_bedwars\": 123,\n \"eight_two_final_kills_bedwars\": 123,\n \"eight_two_kills_bedwars\": 123,\n \"eight_two_losses_bedwars\": 123,\n \"eight_two_wins_bedwars\": 123,\n \"four_four_beds_broken_bedwars\": 123,\n \"four_four_beds_lost_bedwars\": 123,\n \"four_four_deaths_bedwars\": 123,\n \"four_four_final_deaths_bedwars\": 123,\n \"four_four_final_kills_bedwars\": 123,\n \"four_four_kills_bedwars\": 123,\n \"four_four_losses_bedwars\": 123,\n \"four_four_wins_bedwars\": 123,\n \"four_three_beds_broken_bedwars\": 123,\n \"four_three_beds_lost_bedwars\": 123,\n \"four_three_deaths_bedwars\": 123,\n \"four_three_final_deaths_bedwars\": 123,\n \"four_three_final_kills_bedwars\": 123,\n \"four_three_kills_bedwars\": 123,\n \"four_three_losses_bedwars\": 123,\n \"four_three_wins_bedwars\": 123,\n \"linked_discord\": \"<string>\",\n \"overall_beds_broken_bedwars\": 123,\n \"overall_beds_lost_bedwars\": 123,\n \"overall_deaths_bedwars\": 123,\n \"overall_final_deaths_bedwars\": 123,\n \"overall_final_kills_bedwars\": 123,\n \"overall_kills_bedwars\": 123,\n \"overall_losses_bedwars\": 123,\n \"overall_wins_bedwars\": 123,\n \"player_rank\": \"<string>\",\n \"quickbuy\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\"\n },\n \"difference\": 123,\n \"game_mode\": \"<string>\",\n \"live_status\": true,\n \"skywars\": {\n \"activeKit_SOLO\": \"<string>\",\n \"activeKit_SOLO_random\": true,\n \"activeKit_TEAMS\": \"<string>\",\n \"activeKit_TEAMS_random\": true,\n \"active_balloon\": \"<string>\",\n \"active_cage\": \"<string>\",\n \"active_deathcry\": \"<string>\",\n \"active_killeffect\": \"<string>\",\n \"active_killmessages\": \"<string>\",\n \"active_projectiletrail\": \"<string>\",\n \"active_sprays\": \"<string>\",\n \"active_victorydance\": \"<string>\",\n \"displayname\": \"<string>\",\n \"heads\": 123,\n \"kills\": 123,\n \"last_lobby_seen\": \"<string>\",\n \"level\": 123,\n \"player_rank\": \"<string>\",\n \"seen_at\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\",\n \"void_kills\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/player/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bedwars\": {\n \"activeBedDestroy\": \"<string>\",\n \"activeDeathCry\": \"<string>\",\n \"activeGlyph\": \"<string>\",\n \"activeIslandTopper\": \"<string>\",\n \"activeKillEffect\": \"<string>\",\n \"activeKillMessages\": \"<string>\",\n \"activeNPCSkin\": \"<string>\",\n \"activeProjectileTrail\": \"<string>\",\n \"activeSprays\": \"<string>\",\n \"activeVictoryDance\": \"<string>\",\n \"activeWoodType\": \"<string>\",\n \"bedwars_exp\": 123,\n \"bedwars_level\": 123,\n \"displayname\": \"<string>\",\n \"eight_one_beds_broken_bedwars\": 123,\n \"eight_one_beds_lost_bedwars\": 123,\n \"eight_one_deaths_bedwars\": 123,\n \"eight_one_final_deaths_bedwars\": 123,\n \"eight_one_final_kills_bedwars\": 123,\n \"eight_one_kills_bedwars\": 123,\n \"eight_one_losses_bedwars\": 123,\n \"eight_one_wins_bedwars\": 123,\n \"eight_two_beds_broken_bedwars\": 123,\n \"eight_two_beds_lost_bedwars\": 123,\n \"eight_two_deaths_bedwars\": 123,\n \"eight_two_final_deaths_bedwars\": 123,\n \"eight_two_final_kills_bedwars\": 123,\n \"eight_two_kills_bedwars\": 123,\n \"eight_two_losses_bedwars\": 123,\n \"eight_two_wins_bedwars\": 123,\n \"four_four_beds_broken_bedwars\": 123,\n \"four_four_beds_lost_bedwars\": 123,\n \"four_four_deaths_bedwars\": 123,\n \"four_four_final_deaths_bedwars\": 123,\n \"four_four_final_kills_bedwars\": 123,\n \"four_four_kills_bedwars\": 123,\n \"four_four_losses_bedwars\": 123,\n \"four_four_wins_bedwars\": 123,\n \"four_three_beds_broken_bedwars\": 123,\n \"four_three_beds_lost_bedwars\": 123,\n \"four_three_deaths_bedwars\": 123,\n \"four_three_final_deaths_bedwars\": 123,\n \"four_three_final_kills_bedwars\": 123,\n \"four_three_kills_bedwars\": 123,\n \"four_three_losses_bedwars\": 123,\n \"four_three_wins_bedwars\": 123,\n \"linked_discord\": \"<string>\",\n \"overall_beds_broken_bedwars\": 123,\n \"overall_beds_lost_bedwars\": 123,\n \"overall_deaths_bedwars\": 123,\n \"overall_final_deaths_bedwars\": 123,\n \"overall_final_kills_bedwars\": 123,\n \"overall_kills_bedwars\": 123,\n \"overall_losses_bedwars\": 123,\n \"overall_wins_bedwars\": 123,\n \"player_rank\": \"<string>\",\n \"quickbuy\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\"\n },\n \"difference\": 123,\n \"game_mode\": \"<string>\",\n \"live_status\": true,\n \"skywars\": {\n \"activeKit_SOLO\": \"<string>\",\n \"activeKit_SOLO_random\": true,\n \"activeKit_TEAMS\": \"<string>\",\n \"activeKit_TEAMS_random\": true,\n \"active_balloon\": \"<string>\",\n \"active_cage\": \"<string>\",\n \"active_deathcry\": \"<string>\",\n \"active_killeffect\": \"<string>\",\n \"active_killmessages\": \"<string>\",\n \"active_projectiletrail\": \"<string>\",\n \"active_sprays\": \"<string>\",\n \"active_victorydance\": \"<string>\",\n \"displayname\": \"<string>\",\n \"heads\": 123,\n \"kills\": 123,\n \"last_lobby_seen\": \"<string>\",\n \"level\": 123,\n \"player_rank\": \"<string>\",\n \"seen_at\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\",\n \"void_kills\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"difference": 123,
"results": [
{
"activeBedDestroy": "<string>",
"activeDeathCry": "<string>",
"activeGlyph": "<string>",
"activeIslandTopper": "<string>",
"activeKillEffect": "<string>",
"activeKillMessages": "<string>",
"activeNPCSkin": "<string>",
"activeProjectileTrail": "<string>",
"activeSprays": "<string>",
"activeVictoryDance": "<string>",
"activeWoodType": "<string>",
"bedwars_exp": 123,
"bedwars_level": 123,
"displayname": "<string>",
"eight_one_beds_broken_bedwars": 123,
"eight_one_beds_lost_bedwars": 123,
"eight_one_deaths_bedwars": 123,
"eight_one_final_deaths_bedwars": 123,
"eight_one_final_kills_bedwars": 123,
"eight_one_kills_bedwars": 123,
"eight_one_losses_bedwars": 123,
"eight_one_wins_bedwars": 123,
"eight_two_beds_broken_bedwars": 123,
"eight_two_beds_lost_bedwars": 123,
"eight_two_deaths_bedwars": 123,
"eight_two_final_deaths_bedwars": 123,
"eight_two_final_kills_bedwars": 123,
"eight_two_kills_bedwars": 123,
"eight_two_losses_bedwars": 123,
"eight_two_wins_bedwars": 123,
"four_four_beds_broken_bedwars": 123,
"four_four_beds_lost_bedwars": 123,
"four_four_deaths_bedwars": 123,
"four_four_final_deaths_bedwars": 123,
"four_four_final_kills_bedwars": 123,
"four_four_kills_bedwars": 123,
"four_four_losses_bedwars": 123,
"four_four_wins_bedwars": 123,
"four_three_beds_broken_bedwars": 123,
"four_three_beds_lost_bedwars": 123,
"four_three_deaths_bedwars": 123,
"four_three_final_deaths_bedwars": 123,
"four_three_final_kills_bedwars": 123,
"four_three_kills_bedwars": 123,
"four_three_losses_bedwars": 123,
"four_three_wins_bedwars": 123,
"linked_discord": "<string>",
"overall_beds_broken_bedwars": 123,
"overall_beds_lost_bedwars": 123,
"overall_deaths_bedwars": 123,
"overall_final_deaths_bedwars": 123,
"overall_final_kills_bedwars": 123,
"overall_kills_bedwars": 123,
"overall_losses_bedwars": 123,
"overall_wins_bedwars": 123,
"player_rank": "<string>",
"quickbuy": "<string>",
"updated_at": "<string>",
"uuid": "<string>"
}
]
}{
"cause": "<string>",
"code": 123,
"documentation": "<string>",
"extra": [
{
"code": 123,
"developer_reason": "<string>",
"name": "<string>",
"reason": "<string>"
}
],
"msTime": 123,
"success": true
}{
"cause": "<string>",
"code": 123,
"documentation": "<string>",
"extra": [
{
"code": 123,
"developer_reason": "<string>",
"name": "<string>",
"reason": "<string>"
}
],
"msTime": 123,
"success": true
}Player
Player Lookup
Retrieves player data based on game mode and applied filters.
POST
/
player
/
lookup
Player Lookup
curl --request POST \
--url https://api.example.com/player/lookup \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"bedwars": {
"activeBedDestroy": "<string>",
"activeDeathCry": "<string>",
"activeGlyph": "<string>",
"activeIslandTopper": "<string>",
"activeKillEffect": "<string>",
"activeKillMessages": "<string>",
"activeNPCSkin": "<string>",
"activeProjectileTrail": "<string>",
"activeSprays": "<string>",
"activeVictoryDance": "<string>",
"activeWoodType": "<string>",
"bedwars_exp": 123,
"bedwars_level": 123,
"displayname": "<string>",
"eight_one_beds_broken_bedwars": 123,
"eight_one_beds_lost_bedwars": 123,
"eight_one_deaths_bedwars": 123,
"eight_one_final_deaths_bedwars": 123,
"eight_one_final_kills_bedwars": 123,
"eight_one_kills_bedwars": 123,
"eight_one_losses_bedwars": 123,
"eight_one_wins_bedwars": 123,
"eight_two_beds_broken_bedwars": 123,
"eight_two_beds_lost_bedwars": 123,
"eight_two_deaths_bedwars": 123,
"eight_two_final_deaths_bedwars": 123,
"eight_two_final_kills_bedwars": 123,
"eight_two_kills_bedwars": 123,
"eight_two_losses_bedwars": 123,
"eight_two_wins_bedwars": 123,
"four_four_beds_broken_bedwars": 123,
"four_four_beds_lost_bedwars": 123,
"four_four_deaths_bedwars": 123,
"four_four_final_deaths_bedwars": 123,
"four_four_final_kills_bedwars": 123,
"four_four_kills_bedwars": 123,
"four_four_losses_bedwars": 123,
"four_four_wins_bedwars": 123,
"four_three_beds_broken_bedwars": 123,
"four_three_beds_lost_bedwars": 123,
"four_three_deaths_bedwars": 123,
"four_three_final_deaths_bedwars": 123,
"four_three_final_kills_bedwars": 123,
"four_three_kills_bedwars": 123,
"four_three_losses_bedwars": 123,
"four_three_wins_bedwars": 123,
"linked_discord": "<string>",
"overall_beds_broken_bedwars": 123,
"overall_beds_lost_bedwars": 123,
"overall_deaths_bedwars": 123,
"overall_final_deaths_bedwars": 123,
"overall_final_kills_bedwars": 123,
"overall_kills_bedwars": 123,
"overall_losses_bedwars": 123,
"overall_wins_bedwars": 123,
"player_rank": "<string>",
"quickbuy": "<string>",
"updated_at": "<string>",
"uuid": "<string>"
},
"difference": 123,
"game_mode": "<string>",
"live_status": true,
"skywars": {
"activeKit_SOLO": "<string>",
"activeKit_SOLO_random": true,
"activeKit_TEAMS": "<string>",
"activeKit_TEAMS_random": true,
"active_balloon": "<string>",
"active_cage": "<string>",
"active_deathcry": "<string>",
"active_killeffect": "<string>",
"active_killmessages": "<string>",
"active_projectiletrail": "<string>",
"active_sprays": "<string>",
"active_victorydance": "<string>",
"displayname": "<string>",
"heads": 123,
"kills": 123,
"last_lobby_seen": "<string>",
"level": 123,
"player_rank": "<string>",
"seen_at": "<string>",
"updated_at": "<string>",
"uuid": "<string>",
"void_kills": 123
}
}
'import requests
url = "https://api.example.com/player/lookup"
payload = {
"bedwars": {
"activeBedDestroy": "<string>",
"activeDeathCry": "<string>",
"activeGlyph": "<string>",
"activeIslandTopper": "<string>",
"activeKillEffect": "<string>",
"activeKillMessages": "<string>",
"activeNPCSkin": "<string>",
"activeProjectileTrail": "<string>",
"activeSprays": "<string>",
"activeVictoryDance": "<string>",
"activeWoodType": "<string>",
"bedwars_exp": 123,
"bedwars_level": 123,
"displayname": "<string>",
"eight_one_beds_broken_bedwars": 123,
"eight_one_beds_lost_bedwars": 123,
"eight_one_deaths_bedwars": 123,
"eight_one_final_deaths_bedwars": 123,
"eight_one_final_kills_bedwars": 123,
"eight_one_kills_bedwars": 123,
"eight_one_losses_bedwars": 123,
"eight_one_wins_bedwars": 123,
"eight_two_beds_broken_bedwars": 123,
"eight_two_beds_lost_bedwars": 123,
"eight_two_deaths_bedwars": 123,
"eight_two_final_deaths_bedwars": 123,
"eight_two_final_kills_bedwars": 123,
"eight_two_kills_bedwars": 123,
"eight_two_losses_bedwars": 123,
"eight_two_wins_bedwars": 123,
"four_four_beds_broken_bedwars": 123,
"four_four_beds_lost_bedwars": 123,
"four_four_deaths_bedwars": 123,
"four_four_final_deaths_bedwars": 123,
"four_four_final_kills_bedwars": 123,
"four_four_kills_bedwars": 123,
"four_four_losses_bedwars": 123,
"four_four_wins_bedwars": 123,
"four_three_beds_broken_bedwars": 123,
"four_three_beds_lost_bedwars": 123,
"four_three_deaths_bedwars": 123,
"four_three_final_deaths_bedwars": 123,
"four_three_final_kills_bedwars": 123,
"four_three_kills_bedwars": 123,
"four_three_losses_bedwars": 123,
"four_three_wins_bedwars": 123,
"linked_discord": "<string>",
"overall_beds_broken_bedwars": 123,
"overall_beds_lost_bedwars": 123,
"overall_deaths_bedwars": 123,
"overall_final_deaths_bedwars": 123,
"overall_final_kills_bedwars": 123,
"overall_kills_bedwars": 123,
"overall_losses_bedwars": 123,
"overall_wins_bedwars": 123,
"player_rank": "<string>",
"quickbuy": "<string>",
"updated_at": "<string>",
"uuid": "<string>"
},
"difference": 123,
"game_mode": "<string>",
"live_status": True,
"skywars": {
"activeKit_SOLO": "<string>",
"activeKit_SOLO_random": True,
"activeKit_TEAMS": "<string>",
"activeKit_TEAMS_random": True,
"active_balloon": "<string>",
"active_cage": "<string>",
"active_deathcry": "<string>",
"active_killeffect": "<string>",
"active_killmessages": "<string>",
"active_projectiletrail": "<string>",
"active_sprays": "<string>",
"active_victorydance": "<string>",
"displayname": "<string>",
"heads": 123,
"kills": 123,
"last_lobby_seen": "<string>",
"level": 123,
"player_rank": "<string>",
"seen_at": "<string>",
"updated_at": "<string>",
"uuid": "<string>",
"void_kills": 123
}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bedwars: {
activeBedDestroy: '<string>',
activeDeathCry: '<string>',
activeGlyph: '<string>',
activeIslandTopper: '<string>',
activeKillEffect: '<string>',
activeKillMessages: '<string>',
activeNPCSkin: '<string>',
activeProjectileTrail: '<string>',
activeSprays: '<string>',
activeVictoryDance: '<string>',
activeWoodType: '<string>',
bedwars_exp: 123,
bedwars_level: 123,
displayname: '<string>',
eight_one_beds_broken_bedwars: 123,
eight_one_beds_lost_bedwars: 123,
eight_one_deaths_bedwars: 123,
eight_one_final_deaths_bedwars: 123,
eight_one_final_kills_bedwars: 123,
eight_one_kills_bedwars: 123,
eight_one_losses_bedwars: 123,
eight_one_wins_bedwars: 123,
eight_two_beds_broken_bedwars: 123,
eight_two_beds_lost_bedwars: 123,
eight_two_deaths_bedwars: 123,
eight_two_final_deaths_bedwars: 123,
eight_two_final_kills_bedwars: 123,
eight_two_kills_bedwars: 123,
eight_two_losses_bedwars: 123,
eight_two_wins_bedwars: 123,
four_four_beds_broken_bedwars: 123,
four_four_beds_lost_bedwars: 123,
four_four_deaths_bedwars: 123,
four_four_final_deaths_bedwars: 123,
four_four_final_kills_bedwars: 123,
four_four_kills_bedwars: 123,
four_four_losses_bedwars: 123,
four_four_wins_bedwars: 123,
four_three_beds_broken_bedwars: 123,
four_three_beds_lost_bedwars: 123,
four_three_deaths_bedwars: 123,
four_three_final_deaths_bedwars: 123,
four_three_final_kills_bedwars: 123,
four_three_kills_bedwars: 123,
four_three_losses_bedwars: 123,
four_three_wins_bedwars: 123,
linked_discord: '<string>',
overall_beds_broken_bedwars: 123,
overall_beds_lost_bedwars: 123,
overall_deaths_bedwars: 123,
overall_final_deaths_bedwars: 123,
overall_final_kills_bedwars: 123,
overall_kills_bedwars: 123,
overall_losses_bedwars: 123,
overall_wins_bedwars: 123,
player_rank: '<string>',
quickbuy: '<string>',
updated_at: '<string>',
uuid: '<string>'
},
difference: 123,
game_mode: '<string>',
live_status: true,
skywars: {
activeKit_SOLO: '<string>',
activeKit_SOLO_random: true,
activeKit_TEAMS: '<string>',
activeKit_TEAMS_random: true,
active_balloon: '<string>',
active_cage: '<string>',
active_deathcry: '<string>',
active_killeffect: '<string>',
active_killmessages: '<string>',
active_projectiletrail: '<string>',
active_sprays: '<string>',
active_victorydance: '<string>',
displayname: '<string>',
heads: 123,
kills: 123,
last_lobby_seen: '<string>',
level: 123,
player_rank: '<string>',
seen_at: '<string>',
updated_at: '<string>',
uuid: '<string>',
void_kills: 123
}
})
};
fetch('https://api.example.com/player/lookup', 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.example.com/player/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bedwars' => [
'activeBedDestroy' => '<string>',
'activeDeathCry' => '<string>',
'activeGlyph' => '<string>',
'activeIslandTopper' => '<string>',
'activeKillEffect' => '<string>',
'activeKillMessages' => '<string>',
'activeNPCSkin' => '<string>',
'activeProjectileTrail' => '<string>',
'activeSprays' => '<string>',
'activeVictoryDance' => '<string>',
'activeWoodType' => '<string>',
'bedwars_exp' => 123,
'bedwars_level' => 123,
'displayname' => '<string>',
'eight_one_beds_broken_bedwars' => 123,
'eight_one_beds_lost_bedwars' => 123,
'eight_one_deaths_bedwars' => 123,
'eight_one_final_deaths_bedwars' => 123,
'eight_one_final_kills_bedwars' => 123,
'eight_one_kills_bedwars' => 123,
'eight_one_losses_bedwars' => 123,
'eight_one_wins_bedwars' => 123,
'eight_two_beds_broken_bedwars' => 123,
'eight_two_beds_lost_bedwars' => 123,
'eight_two_deaths_bedwars' => 123,
'eight_two_final_deaths_bedwars' => 123,
'eight_two_final_kills_bedwars' => 123,
'eight_two_kills_bedwars' => 123,
'eight_two_losses_bedwars' => 123,
'eight_two_wins_bedwars' => 123,
'four_four_beds_broken_bedwars' => 123,
'four_four_beds_lost_bedwars' => 123,
'four_four_deaths_bedwars' => 123,
'four_four_final_deaths_bedwars' => 123,
'four_four_final_kills_bedwars' => 123,
'four_four_kills_bedwars' => 123,
'four_four_losses_bedwars' => 123,
'four_four_wins_bedwars' => 123,
'four_three_beds_broken_bedwars' => 123,
'four_three_beds_lost_bedwars' => 123,
'four_three_deaths_bedwars' => 123,
'four_three_final_deaths_bedwars' => 123,
'four_three_final_kills_bedwars' => 123,
'four_three_kills_bedwars' => 123,
'four_three_losses_bedwars' => 123,
'four_three_wins_bedwars' => 123,
'linked_discord' => '<string>',
'overall_beds_broken_bedwars' => 123,
'overall_beds_lost_bedwars' => 123,
'overall_deaths_bedwars' => 123,
'overall_final_deaths_bedwars' => 123,
'overall_final_kills_bedwars' => 123,
'overall_kills_bedwars' => 123,
'overall_losses_bedwars' => 123,
'overall_wins_bedwars' => 123,
'player_rank' => '<string>',
'quickbuy' => '<string>',
'updated_at' => '<string>',
'uuid' => '<string>'
],
'difference' => 123,
'game_mode' => '<string>',
'live_status' => true,
'skywars' => [
'activeKit_SOLO' => '<string>',
'activeKit_SOLO_random' => true,
'activeKit_TEAMS' => '<string>',
'activeKit_TEAMS_random' => true,
'active_balloon' => '<string>',
'active_cage' => '<string>',
'active_deathcry' => '<string>',
'active_killeffect' => '<string>',
'active_killmessages' => '<string>',
'active_projectiletrail' => '<string>',
'active_sprays' => '<string>',
'active_victorydance' => '<string>',
'displayname' => '<string>',
'heads' => 123,
'kills' => 123,
'last_lobby_seen' => '<string>',
'level' => 123,
'player_rank' => '<string>',
'seen_at' => '<string>',
'updated_at' => '<string>',
'uuid' => '<string>',
'void_kills' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/player/lookup"
payload := strings.NewReader("{\n \"bedwars\": {\n \"activeBedDestroy\": \"<string>\",\n \"activeDeathCry\": \"<string>\",\n \"activeGlyph\": \"<string>\",\n \"activeIslandTopper\": \"<string>\",\n \"activeKillEffect\": \"<string>\",\n \"activeKillMessages\": \"<string>\",\n \"activeNPCSkin\": \"<string>\",\n \"activeProjectileTrail\": \"<string>\",\n \"activeSprays\": \"<string>\",\n \"activeVictoryDance\": \"<string>\",\n \"activeWoodType\": \"<string>\",\n \"bedwars_exp\": 123,\n \"bedwars_level\": 123,\n \"displayname\": \"<string>\",\n \"eight_one_beds_broken_bedwars\": 123,\n \"eight_one_beds_lost_bedwars\": 123,\n \"eight_one_deaths_bedwars\": 123,\n \"eight_one_final_deaths_bedwars\": 123,\n \"eight_one_final_kills_bedwars\": 123,\n \"eight_one_kills_bedwars\": 123,\n \"eight_one_losses_bedwars\": 123,\n \"eight_one_wins_bedwars\": 123,\n \"eight_two_beds_broken_bedwars\": 123,\n \"eight_two_beds_lost_bedwars\": 123,\n \"eight_two_deaths_bedwars\": 123,\n \"eight_two_final_deaths_bedwars\": 123,\n \"eight_two_final_kills_bedwars\": 123,\n \"eight_two_kills_bedwars\": 123,\n \"eight_two_losses_bedwars\": 123,\n \"eight_two_wins_bedwars\": 123,\n \"four_four_beds_broken_bedwars\": 123,\n \"four_four_beds_lost_bedwars\": 123,\n \"four_four_deaths_bedwars\": 123,\n \"four_four_final_deaths_bedwars\": 123,\n \"four_four_final_kills_bedwars\": 123,\n \"four_four_kills_bedwars\": 123,\n \"four_four_losses_bedwars\": 123,\n \"four_four_wins_bedwars\": 123,\n \"four_three_beds_broken_bedwars\": 123,\n \"four_three_beds_lost_bedwars\": 123,\n \"four_three_deaths_bedwars\": 123,\n \"four_three_final_deaths_bedwars\": 123,\n \"four_three_final_kills_bedwars\": 123,\n \"four_three_kills_bedwars\": 123,\n \"four_three_losses_bedwars\": 123,\n \"four_three_wins_bedwars\": 123,\n \"linked_discord\": \"<string>\",\n \"overall_beds_broken_bedwars\": 123,\n \"overall_beds_lost_bedwars\": 123,\n \"overall_deaths_bedwars\": 123,\n \"overall_final_deaths_bedwars\": 123,\n \"overall_final_kills_bedwars\": 123,\n \"overall_kills_bedwars\": 123,\n \"overall_losses_bedwars\": 123,\n \"overall_wins_bedwars\": 123,\n \"player_rank\": \"<string>\",\n \"quickbuy\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\"\n },\n \"difference\": 123,\n \"game_mode\": \"<string>\",\n \"live_status\": true,\n \"skywars\": {\n \"activeKit_SOLO\": \"<string>\",\n \"activeKit_SOLO_random\": true,\n \"activeKit_TEAMS\": \"<string>\",\n \"activeKit_TEAMS_random\": true,\n \"active_balloon\": \"<string>\",\n \"active_cage\": \"<string>\",\n \"active_deathcry\": \"<string>\",\n \"active_killeffect\": \"<string>\",\n \"active_killmessages\": \"<string>\",\n \"active_projectiletrail\": \"<string>\",\n \"active_sprays\": \"<string>\",\n \"active_victorydance\": \"<string>\",\n \"displayname\": \"<string>\",\n \"heads\": 123,\n \"kills\": 123,\n \"last_lobby_seen\": \"<string>\",\n \"level\": 123,\n \"player_rank\": \"<string>\",\n \"seen_at\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\",\n \"void_kills\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/player/lookup")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"bedwars\": {\n \"activeBedDestroy\": \"<string>\",\n \"activeDeathCry\": \"<string>\",\n \"activeGlyph\": \"<string>\",\n \"activeIslandTopper\": \"<string>\",\n \"activeKillEffect\": \"<string>\",\n \"activeKillMessages\": \"<string>\",\n \"activeNPCSkin\": \"<string>\",\n \"activeProjectileTrail\": \"<string>\",\n \"activeSprays\": \"<string>\",\n \"activeVictoryDance\": \"<string>\",\n \"activeWoodType\": \"<string>\",\n \"bedwars_exp\": 123,\n \"bedwars_level\": 123,\n \"displayname\": \"<string>\",\n \"eight_one_beds_broken_bedwars\": 123,\n \"eight_one_beds_lost_bedwars\": 123,\n \"eight_one_deaths_bedwars\": 123,\n \"eight_one_final_deaths_bedwars\": 123,\n \"eight_one_final_kills_bedwars\": 123,\n \"eight_one_kills_bedwars\": 123,\n \"eight_one_losses_bedwars\": 123,\n \"eight_one_wins_bedwars\": 123,\n \"eight_two_beds_broken_bedwars\": 123,\n \"eight_two_beds_lost_bedwars\": 123,\n \"eight_two_deaths_bedwars\": 123,\n \"eight_two_final_deaths_bedwars\": 123,\n \"eight_two_final_kills_bedwars\": 123,\n \"eight_two_kills_bedwars\": 123,\n \"eight_two_losses_bedwars\": 123,\n \"eight_two_wins_bedwars\": 123,\n \"four_four_beds_broken_bedwars\": 123,\n \"four_four_beds_lost_bedwars\": 123,\n \"four_four_deaths_bedwars\": 123,\n \"four_four_final_deaths_bedwars\": 123,\n \"four_four_final_kills_bedwars\": 123,\n \"four_four_kills_bedwars\": 123,\n \"four_four_losses_bedwars\": 123,\n \"four_four_wins_bedwars\": 123,\n \"four_three_beds_broken_bedwars\": 123,\n \"four_three_beds_lost_bedwars\": 123,\n \"four_three_deaths_bedwars\": 123,\n \"four_three_final_deaths_bedwars\": 123,\n \"four_three_final_kills_bedwars\": 123,\n \"four_three_kills_bedwars\": 123,\n \"four_three_losses_bedwars\": 123,\n \"four_three_wins_bedwars\": 123,\n \"linked_discord\": \"<string>\",\n \"overall_beds_broken_bedwars\": 123,\n \"overall_beds_lost_bedwars\": 123,\n \"overall_deaths_bedwars\": 123,\n \"overall_final_deaths_bedwars\": 123,\n \"overall_final_kills_bedwars\": 123,\n \"overall_kills_bedwars\": 123,\n \"overall_losses_bedwars\": 123,\n \"overall_wins_bedwars\": 123,\n \"player_rank\": \"<string>\",\n \"quickbuy\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\"\n },\n \"difference\": 123,\n \"game_mode\": \"<string>\",\n \"live_status\": true,\n \"skywars\": {\n \"activeKit_SOLO\": \"<string>\",\n \"activeKit_SOLO_random\": true,\n \"activeKit_TEAMS\": \"<string>\",\n \"activeKit_TEAMS_random\": true,\n \"active_balloon\": \"<string>\",\n \"active_cage\": \"<string>\",\n \"active_deathcry\": \"<string>\",\n \"active_killeffect\": \"<string>\",\n \"active_killmessages\": \"<string>\",\n \"active_projectiletrail\": \"<string>\",\n \"active_sprays\": \"<string>\",\n \"active_victorydance\": \"<string>\",\n \"displayname\": \"<string>\",\n \"heads\": 123,\n \"kills\": 123,\n \"last_lobby_seen\": \"<string>\",\n \"level\": 123,\n \"player_rank\": \"<string>\",\n \"seen_at\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\",\n \"void_kills\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/player/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bedwars\": {\n \"activeBedDestroy\": \"<string>\",\n \"activeDeathCry\": \"<string>\",\n \"activeGlyph\": \"<string>\",\n \"activeIslandTopper\": \"<string>\",\n \"activeKillEffect\": \"<string>\",\n \"activeKillMessages\": \"<string>\",\n \"activeNPCSkin\": \"<string>\",\n \"activeProjectileTrail\": \"<string>\",\n \"activeSprays\": \"<string>\",\n \"activeVictoryDance\": \"<string>\",\n \"activeWoodType\": \"<string>\",\n \"bedwars_exp\": 123,\n \"bedwars_level\": 123,\n \"displayname\": \"<string>\",\n \"eight_one_beds_broken_bedwars\": 123,\n \"eight_one_beds_lost_bedwars\": 123,\n \"eight_one_deaths_bedwars\": 123,\n \"eight_one_final_deaths_bedwars\": 123,\n \"eight_one_final_kills_bedwars\": 123,\n \"eight_one_kills_bedwars\": 123,\n \"eight_one_losses_bedwars\": 123,\n \"eight_one_wins_bedwars\": 123,\n \"eight_two_beds_broken_bedwars\": 123,\n \"eight_two_beds_lost_bedwars\": 123,\n \"eight_two_deaths_bedwars\": 123,\n \"eight_two_final_deaths_bedwars\": 123,\n \"eight_two_final_kills_bedwars\": 123,\n \"eight_two_kills_bedwars\": 123,\n \"eight_two_losses_bedwars\": 123,\n \"eight_two_wins_bedwars\": 123,\n \"four_four_beds_broken_bedwars\": 123,\n \"four_four_beds_lost_bedwars\": 123,\n \"four_four_deaths_bedwars\": 123,\n \"four_four_final_deaths_bedwars\": 123,\n \"four_four_final_kills_bedwars\": 123,\n \"four_four_kills_bedwars\": 123,\n \"four_four_losses_bedwars\": 123,\n \"four_four_wins_bedwars\": 123,\n \"four_three_beds_broken_bedwars\": 123,\n \"four_three_beds_lost_bedwars\": 123,\n \"four_three_deaths_bedwars\": 123,\n \"four_three_final_deaths_bedwars\": 123,\n \"four_three_final_kills_bedwars\": 123,\n \"four_three_kills_bedwars\": 123,\n \"four_three_losses_bedwars\": 123,\n \"four_three_wins_bedwars\": 123,\n \"linked_discord\": \"<string>\",\n \"overall_beds_broken_bedwars\": 123,\n \"overall_beds_lost_bedwars\": 123,\n \"overall_deaths_bedwars\": 123,\n \"overall_final_deaths_bedwars\": 123,\n \"overall_final_kills_bedwars\": 123,\n \"overall_kills_bedwars\": 123,\n \"overall_losses_bedwars\": 123,\n \"overall_wins_bedwars\": 123,\n \"player_rank\": \"<string>\",\n \"quickbuy\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\"\n },\n \"difference\": 123,\n \"game_mode\": \"<string>\",\n \"live_status\": true,\n \"skywars\": {\n \"activeKit_SOLO\": \"<string>\",\n \"activeKit_SOLO_random\": true,\n \"activeKit_TEAMS\": \"<string>\",\n \"activeKit_TEAMS_random\": true,\n \"active_balloon\": \"<string>\",\n \"active_cage\": \"<string>\",\n \"active_deathcry\": \"<string>\",\n \"active_killeffect\": \"<string>\",\n \"active_killmessages\": \"<string>\",\n \"active_projectiletrail\": \"<string>\",\n \"active_sprays\": \"<string>\",\n \"active_victorydance\": \"<string>\",\n \"displayname\": \"<string>\",\n \"heads\": 123,\n \"kills\": 123,\n \"last_lobby_seen\": \"<string>\",\n \"level\": 123,\n \"player_rank\": \"<string>\",\n \"seen_at\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"uuid\": \"<string>\",\n \"void_kills\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"difference": 123,
"results": [
{
"activeBedDestroy": "<string>",
"activeDeathCry": "<string>",
"activeGlyph": "<string>",
"activeIslandTopper": "<string>",
"activeKillEffect": "<string>",
"activeKillMessages": "<string>",
"activeNPCSkin": "<string>",
"activeProjectileTrail": "<string>",
"activeSprays": "<string>",
"activeVictoryDance": "<string>",
"activeWoodType": "<string>",
"bedwars_exp": 123,
"bedwars_level": 123,
"displayname": "<string>",
"eight_one_beds_broken_bedwars": 123,
"eight_one_beds_lost_bedwars": 123,
"eight_one_deaths_bedwars": 123,
"eight_one_final_deaths_bedwars": 123,
"eight_one_final_kills_bedwars": 123,
"eight_one_kills_bedwars": 123,
"eight_one_losses_bedwars": 123,
"eight_one_wins_bedwars": 123,
"eight_two_beds_broken_bedwars": 123,
"eight_two_beds_lost_bedwars": 123,
"eight_two_deaths_bedwars": 123,
"eight_two_final_deaths_bedwars": 123,
"eight_two_final_kills_bedwars": 123,
"eight_two_kills_bedwars": 123,
"eight_two_losses_bedwars": 123,
"eight_two_wins_bedwars": 123,
"four_four_beds_broken_bedwars": 123,
"four_four_beds_lost_bedwars": 123,
"four_four_deaths_bedwars": 123,
"four_four_final_deaths_bedwars": 123,
"four_four_final_kills_bedwars": 123,
"four_four_kills_bedwars": 123,
"four_four_losses_bedwars": 123,
"four_four_wins_bedwars": 123,
"four_three_beds_broken_bedwars": 123,
"four_three_beds_lost_bedwars": 123,
"four_three_deaths_bedwars": 123,
"four_three_final_deaths_bedwars": 123,
"four_three_final_kills_bedwars": 123,
"four_three_kills_bedwars": 123,
"four_three_losses_bedwars": 123,
"four_three_wins_bedwars": 123,
"linked_discord": "<string>",
"overall_beds_broken_bedwars": 123,
"overall_beds_lost_bedwars": 123,
"overall_deaths_bedwars": 123,
"overall_final_deaths_bedwars": 123,
"overall_final_kills_bedwars": 123,
"overall_kills_bedwars": 123,
"overall_losses_bedwars": 123,
"overall_wins_bedwars": 123,
"player_rank": "<string>",
"quickbuy": "<string>",
"updated_at": "<string>",
"uuid": "<string>"
}
]
}{
"cause": "<string>",
"code": 123,
"documentation": "<string>",
"extra": [
{
"code": 123,
"developer_reason": "<string>",
"name": "<string>",
"reason": "<string>"
}
],
"msTime": 123,
"success": true
}{
"cause": "<string>",
"code": 123,
"documentation": "<string>",
"extra": [
{
"code": 123,
"developer_reason": "<string>",
"name": "<string>",
"reason": "<string>"
}
],
"msTime": 123,
"success": true
}Headers
Bearer
Body
application/json
Player lookup criteria including game mode and specific filters
⌘I