Half-Life
HL.JUCAUSII.NET [1000FPS] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1786408json
{
"response": {
"steam_id": 90071992547409920,
"domain": null,
"id": 1786408,
"ip": "81.180.203.52",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Bucharest",
"description": "",
"game": 70,
"owner": 47322,
"boosts": 1,
"last_offline": 1776412367,
"score": 5,
"last_online": 1776775210,
"icon": null,
"name": "HL.JUCAUSII.NET [1000FPS]",
"connect": "81.180.203.52:27015",
"request": "81.180.203.52:27015",
"map": "crossfire",
"gamemode": "Half-Life",
"version": "1.1.2.2/Stdio",
"numplayers": 8,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "RO",
"status": true,
"votes": 0,
"points": 107,
"add_date": 1699707812,
"last_update": 1776775210,
"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": 4,
"language": "ro",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": {
"username": "JohnBlack",
"avatar": "8f5636e2-5a91-4751-8c0d-f7326c816ee9.jpg",
"last_online": 1707293015
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/1786408");
$data = json_decode($json, true);
var_dump($data);