Half-Life 2: Deathmatch
Vio's Arcade | HL2DM - Tomb of the Goonsquad 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3108450json
{
"response": {
"steam_id": "90284352354766875",
"domain": null,
"id": 3108450,
"ip": "97.94.129.234",
"port": 23555,
"query": 23555,
"color": 0,
"city": "Riverbank",
"description": "",
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1776160918,
"score": null,
"last_online": 1776234052,
"icon": null,
"name": "Vio's Arcade | HL2DM - Tomb of the Goonsquad",
"connect": "97.94.129.234:23555",
"request": "97.94.129.234:23555",
"map": "goon_entryway",
"gamemode": "Goonsquad",
"version": "9540945",
"numplayers": 0,
"maxplayers": 32,
"bots": 3,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1708889731,
"last_update": 1776234052,
"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": 69,
"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/3108450");
$data = json_decode($json, true);
var_dump($data);