API dla US I Jack Rabbit Slims PVE I No Raiding/Killing/Stealing
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 46,
"fps_avg": 53,
"entities_count": 176585,
"world_seed": 2055275729,
"world_size": 5000,
"steam_id": "90286604254153734",
"domain": null,
"id": 989865,
"ip": "104.143.3.99",
"port": 28039,
"query": 28036,
"color": 0,
"city": "Dallas",
"description": "\nVanilla, Monthly Wipe/Quarterly BP Wipe - Noobs are Welcome! \r\nSolo, Duo, Trio + Quads - Alliances Allowed. Trading services/items is allowed!\r\nNO Killing other players, including sleeping players. \r\nNo Raiding other than ADMIN BASE RAID events. \r\nNO Stealing from players; Includes sleeping players, their bases, horses & vehicles. \r\nWe are a BRAND NEW COMMUNITY, come join us! \r\nDiscord - https://discord.gg/cuzCYuhQ3X",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780645823,
"icon": null,
"name": "US I Jack Rabbit Slims PVE I No Raiding/Killing/Stealing",
"connect": "104.143.3.99:28039",
"request": "104.143.3.99:28036",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 34,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 68,
"add_date": 1684957142,
"last_update": 1780645823,
"banned": false,
"wipe": 1780596341,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 697,
"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/989865");
$data = json_decode($json, true);
var_dump($data);