API pentru Haunted Barrens PvE | UK
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 57,
"fps_avg": 58,
"entities_count": 141898,
"world_seed": 1719568024,
"world_size": 4250,
"steam_id": "90286581588141077",
"domain": null,
"id": 11644956,
"ip": "92.118.16.142",
"port": 28025,
"query": 28026,
"color": 0,
"city": "London",
"description": "\nSee our Rules in discord or on the server by typing: /info\r\n\r\nThis is an English speaking PvE server based in the UK with 2 week wipes. Minicopters spawn on roads, shop available with limited gear, items and commands to wipe BPs and ZLvls.\r\n\r\nWe have:\r\n+ Raidable Bases Premium\r\n+ Night Zombies\r\n+ Monument BOTs\r\n+ Increased Stack Sizes\r\n- Lowered Upkeep\r\n\r\nKits and Teleporting not available.\r\nNo killing or pillaging players outside of purge.\r\n\r\n+ QoL Patreon perks available\r\n> Join us on discord to stay up to date <",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780545869,
"last_online": 1780555826,
"icon": null,
"name": "Haunted Barrens PvE | UK",
"connect": "92.118.16.142:28025",
"request": "92.118.16.142:28026",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1780177440,
"last_update": 1780555826,
"banned": false,
"wipe": 1779381904,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1582,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11644956");
$data = json_decode($json, true);
var_dump($data);