Half-Life 2: Deathmatch
[DM] HaVoC's House - UK 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11393147json
{
"response": {
"steam_id": "90284128328319002",
"domain": null,
"id": 11393147,
"ip": "93.174.85.249",
"port": 27020,
"query": 27020,
"color": 0,
"city": "Wembley",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1776803551,
"score": 0,
"last_online": 1776585712,
"icon": null,
"name": "[DM] HaVoC's House - UK",
"connect": "93.174.85.249:27020",
"request": "93.174.85.249:27020",
"map": "dm_steamlab",
"gamemode": "Half-Life 2 Deathmatch",
"version": "9540945",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774596785,
"last_update": 1776803551,
"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": 236,
"language": "en",
"parked": false,
"app": {
"id": 1,
"steam_id": 320,
"name": "Half-Life 2: Deathmatch",
"url": "half-life-2-deathmatch"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11393147");
$data = json_decode($json, true);
var_dump($data);