Lone Wolf Sanctuary | SOLO/DUO | Monthly | Next Wipe 4 June 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 77,
"fps_avg": 74,
"entities_count": 77939,
"world_seed": 1521489270,
"world_size": 3500,
"steam_id": "90286558621475863",
"domain": null,
"id": 11607183,
"ip": "129.232.158.130",
"port": 10100,
"query": 10110,
"color": 0,
"city": "Cape Town",
"description": "\nWelcome to the server.\r\n\r\nYou arrived with nothing but a rock and a torch.\r\n\r\nOut here the cold bites harder than bullets.\r\nEvery tree you chop echoes through the forest.\r\nEvery fire you light tells someone where you are.\r\n\r\nBuild smart.\r\nTrust carefully.\r\nLoot fast.\r\nAnd never forget...\r\n\r\nThe footsteps outside your base at 2AM are rarely friendly.\r\n\r\nForge alliances or rule alone.\r\nRaid. Defend. Survive.\r\n\r\nBecause in this world, kindness is rare...\r\nand sulfur solves arguments.\r\n\r\nGood luck out there, survivor.\r\n\r\nOnly the prepared survive!!!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780297449,
"last_online": 1780581636,
"icon": null,
"name": "Lone Wolf Sanctuary | SOLO/DUO | Monthly | Next Wipe 4 June",
"connect": "129.232.158.130:10100",
"request": "129.232.158.130:10110",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915498,
"last_update": 1780581636,
"banned": false,
"wipe": 1778865733,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5534,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11607183");
$data = json_decode($json, true);
var_dump($data);