Garry's Mod
[FR] REBOOT PHASE I | Horizon | CW RP | Serveur Principal 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10538293json
{
"response": {
"steam_id": "85568392935221054",
"domain": null,
"id": 10538293,
"ip": "185.185.43.51",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Vélizy-Villacoublay",
"description": null,
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1776111118,
"score": 0,
"last_online": 1776280220,
"icon": null,
"name": "[FR] REBOOT PHASE I | Horizon | CW RP | Serveur Principal",
"connect": "185.185.43.51:27015",
"request": "185.185.43.51:27015",
"map": "rp_onderon_horizon",
"gamemode": "starwarsrp",
"version": "2025.03.26",
"numplayers": 13,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 43,
"add_date": 1762519897,
"last_update": 1776280220,
"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": 284,
"language": "fr",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10538293");
$data = json_decode($json, true);
var_dump($data);