API dla GimmeTheLoot | PVP+ | RaidableBases | SkillTree & Quests
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 46,
"fps_avg": 45,
"entities_count": 89310,
"world_seed": 1233915914,
"world_size": 3750,
"steam_id": "90286218735964191",
"domain": null,
"id": 11686501,
"ip": "76.171.91.87",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Ontario",
"description": "\nGimmeTheLoot | PVP+ | Raidable Bases | SkillTree & Quests\r\n\r\nHigh-action PVP+ server with Raidable Bases, BetterNPC monuments, Skills, Quests, and events.\r\n\r\nBalanced progression, custom spawns, and quality-of-life systems for both solo and group players.\r\n\r\nBuild. Raid. Progress. Take the loot.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780224647,
"last_online": 1780584043,
"icon": null,
"name": "GimmeTheLoot | PVP+ | RaidableBases | SkillTree & Quests",
"connect": "76.171.91.87:28015",
"request": "76.171.91.87:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 60,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780224647,
"last_update": 1780584043,
"banned": false,
"wipe": 1778196775,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5926,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11686501");
$data = json_decode($json, true);
var_dump($data);