Depravity Hardcore PVE Monthly 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 100901,
"world_seed": 0,
"world_size": 4250,
"steam_id": "90286594062585880",
"domain": null,
"id": 11596662,
"ip": "104.4.53.1",
"port": 28018,
"query": 28020,
"color": 0,
"city": "Jackson",
"description": "\nModified ProgressionnModified WeaponsnModified AmmonScarce ComponentnNPC RaidersnRaidable BasesnPlay for Survival and Build for DefensenAll of the surface water has been PoisonednMost of the animals are deadnPlayer dependent economynYou will not be at end game in three daysnIf you like the grind, this is the place.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780319053,
"last_online": 1780579244,
"icon": null,
"name": "Depravity Hardcore PVE Monthly",
"connect": "104.4.53.1:28018",
"request": "104.4.53.1:28020",
"map": "Depravity",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779358595,
"last_update": 1780579244,
"banned": false,
"wipe": 1778177122,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5271,
"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/11596662");
$data = json_decode($json, true);
var_dump($data);