API dla HYBRID PVX |7X|RealHalf-PVP/PVE|NoP2W|NoVIP
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 56,
"fps_avg": 55,
"entities_count": 113516,
"world_seed": 1337,
"world_size": 4096,
"steam_id": "90286747109396493",
"domain": null,
"id": 9846548,
"ip": "168.100.160.161",
"port": 28015,
"query": 28017,
"project_id": null,
"color": 0,
"city": "Ashburn",
"description": "\nDiscord.gg/zn6vHCp6J9\r\nServer Location: Eastcoast (VA) | Monthly Wipes\r\n\r\nThis server splits the map in half: one side PVE, the other PVP. Real functioning zones, not just rules. Fuel your PVE base to fund your PVP bases and compete with clans for most bases raided each wipe. Or just play 100% safe in PVE if that's your speed. With 190 customized mods and ~8,000 hours of development, the foundation is solid - now we're growing the community. Spend a few minutes in /info when you load in, especially the TIPS and FEATURES tabs. Enjoy.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780854202,
"last_online": 1780918229,
"icon": null,
"name": "HYBRID PVX |7X|RealHalf-PVP/PVE|NoP2W|NoVIP",
"connect": "168.100.160.161:28015",
"request": "168.100.160.161:28017",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1753203140,
"last_update": 1780918229,
"banned": false,
"wipe": 1780602950,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3598,
"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/9846548");
$data = json_decode($json, true);
var_dump($data);