Soup's House of Pain (Hardcore) 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286688185578497",
"domain": null,
"id": 5152393,
"ip": "107.146.166.168",
"port": 2302,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Bessemer",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1777492412,
"last_online": 1780788166,
"icon": null,
"name": "Soup's House of Pain (Hardcore)",
"connect": "107.146.166.168:2302",
"request": "107.146.166.168:27016",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.163047",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1720911847,
"last_update": 1780788166,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5671,
"language": "en",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/5152393");
$data = json_decode($json, true);
var_dump($data);