Pure Noob Tactics 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": 90286567360106510,
"domain": null,
"id": 11608181,
"ip": "145.239.167.11",
"port": 26900,
"query": 26900,
"project_id": null,
"color": 0,
"city": "Paris",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1780511038,
"last_online": 1781221952,
"icon": null,
"name": "Pure Noob Tactics",
"connect": "145.239.167.11:26900",
"request": "145.239.167.11:26900",
"map": "Jehizo Mountains",
"gamemode": "7 Days To Die",
"version": "01.02.06",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779915533,
"last_update": 1781221952,
"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": 7391,
"language": "fr",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11608181");
$data = json_decode($json, true);
var_dump($data);