API dla The Cryptid Hollars PVE/PVP (Warmode)
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 58,
"fps_avg": 56,
"entities_count": 125286,
"world_seed": 237913280,
"world_size": 4800,
"steam_id": "90286629960512532",
"domain": null,
"id": 4261953,
"ip": "156.236.84.31",
"port": 28035,
"query": 28036,
"color": 0,
"city": "Dallas",
"description": "\nThe Cryptid Hollars is a PVE-PVP (Warmode)\r\nFriendly Community with Active Admins\r\nWipes Monthly including Blueprints\r\nKits, Personal Attack Helis & Bradleys to call in with Levels\r\nDynamic Monuments, Armored Train, Harbor Event\r\nCraftable Base Recyclers, Remover tool, Bike Drivers\r\nIncreased Animal Populations, Instant Water, Skill Tree\r\nSkins, Sil, Stackable Chests, Dungeons, Store Robbery\r\nKeep your stuff upon death\r\nLots of Events",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780659857,
"last_online": 1780660829,
"icon": null,
"name": "The Cryptid Hollars PVE/PVP (Warmode)",
"connect": "156.236.84.31:28035",
"request": "156.236.84.31:28036",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 75,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1715849115,
"last_update": 1780660829,
"banned": false,
"wipe": 1780596649,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5806,
"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/4261953");
$data = json_decode($json, true);
var_dump($data);