Half-Life
TTT Classic - Playtest Server - Join Discord for Access 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11489536json
{
"response": {
"steam_id": 90284620341473280,
"domain": null,
"id": 11489536,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1776558148,
"score": 0,
"last_online": 1776562833,
"icon": null,
"name": "TTT Classic - Playtest Server - Join Discord for Access",
"connect": null,
"request": null,
"map": "ttt_brained_rc3",
"gamemode": "TTT Classic v0.21.0",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1776558148,
"last_update": 1776562833,
"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": 438,
"language": "en",
"parked": true,
"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/11489536");
$data = json_decode($json, true);
var_dump($data);