Half-Life
## OGHL.NET | SEVS MOD DALLAS [CUSTOM MAPS - 1000FPS/FASTDL] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6736774json
{
"response": {
"steam_id": "90284568602091548",
"domain": null,
"id": 6736774,
"ip": "193.31.31.87",
"port": 27017,
"query": 27017,
"color": 0,
"city": "Dallas",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1775940672,
"score": 0,
"last_online": 1776441030,
"icon": null,
"name": "## OGHL.NET | SEVS MOD DALLAS [CUSTOM MAPS - 1000FPS/FASTDL]",
"connect": "193.31.31.87:27017",
"request": "193.31.31.87:27017",
"map": "hldm_edge",
"gamemode": "Severian's Mod+",
"version": "1.1.2.2/Stdio",
"numplayers": 4,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 51,
"add_date": 1732625170,
"last_update": 1776441030,
"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": 33,
"language": "en",
"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/6736774");
$data = json_decode($json, true);
var_dump($data);