Select Your Base Head [30 days on G-Portal] 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286576007769114",
"domain": null,
"id": 11777195,
"ip": "154.53.36.128",
"port": 30700,
"query": 30715,
"project_id": null,
"color": 0,
"city": "Orangeburg",
"description": null,
"game": 1857950,
"owner": null,
"boosts": 1,
"last_offline": 1780998734,
"last_online": 1781043041,
"icon": null,
"name": "Select Your Base Head [30 days on G-Portal]",
"connect": "154.53.36.128:30700",
"request": "154.53.36.128:30715",
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "0.024h1",
"numplayers": 2,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 42,
"add_date": 1780998734,
"last_update": 1781043041,
"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": 167,
"language": "en",
"parked": false,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11777195");
$data = json_decode($json, true);
var_dump($data);