No More Room in Hell
No More Beer In Pops 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/204610json
{
"response": {
"steam_id": "90284216698070040",
"domain": null,
"id": 204610,
"ip": "74.91.117.201",
"port": 27018,
"query": 27018,
"color": 0,
"city": "Seattle",
"description": "",
"game": 224260,
"owner": null,
"boosts": 1,
"last_offline": 1774697547,
"score": null,
"last_online": 1776195033,
"icon": null,
"name": "No More Beer In Pops",
"connect": "74.91.117.201:27018",
"request": "74.91.117.201:27018",
"map": "nmo_chinatown",
"gamemode": "No More Room in Hell",
"version": "1.1.4.2",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1575222904,
"last_update": 1776195033,
"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": 67,
"language": "en",
"parked": false,
"app": {
"id": 6,
"steam_id": 224260,
"name": "No More Room in Hell",
"url": "no-more-room-in-hell"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/204610");
$data = json_decode($json, true);
var_dump($data);