Half-Life 2: Deathmatch
Area 51 Deathrun Server [FastDL] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3077352json
{
"response": {
"steam_id": "90283581462635532",
"domain": null,
"id": 3077352,
"ip": "24.190.232.189",
"port": 2303,
"query": 2303,
"color": 0,
"city": "Old Bridge",
"description": "",
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1774692139,
"score": null,
"last_online": 1776234029,
"icon": null,
"name": "Area 51 Deathrun Server [FastDL]",
"connect": "24.190.232.189:2303",
"request": "24.190.232.189:2303",
"map": "deathrun_reborn_hl2",
"gamemode": "(>DEATHRUN<)",
"version": "9540945",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1708290574,
"last_update": 1776234029,
"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": 66,
"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/3077352");
$data = json_decode($json, true);
var_dump($data);