Half-Life
Team GangsterS | CMNDD IPX 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11392762json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11392762,
"ip": "209.61.68.30",
"port": 27520,
"query": 27520,
"color": 0,
"city": "Lima",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1776771200,
"score": 0,
"last_online": 1776781327,
"icon": null,
"name": "Team GangsterS | CMNDD IPX",
"connect": "209.61.68.30:27520",
"request": "209.61.68.30:27520",
"map": "snark_pit",
"gamemode": "LLHL",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "PE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774596754,
"last_update": 1776781327,
"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": 376,
"language": "es",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11392762");
$data = json_decode($json, true);
var_dump($data);