Garry's Mod
Prop Hunt X2Z - BlodPropp 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10806352json
{
"response": {
"steam_id": 90282487348620300,
"domain": null,
"id": 10806352,
"ip": "94.136.83.72",
"port": 27018,
"query": 27018,
"color": 0,
"city": "Kristinehamn",
"description": null,
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1769029915,
"score": 0,
"last_online": 1776814863,
"icon": null,
"name": "Prop Hunt X2Z - BlodPropp",
"connect": "94.136.83.72:27018",
"request": "94.136.83.72:27018",
"map": "ph_out_there",
"gamemode": "Prop Hunt: X2Z",
"version": "2025.03.26",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "SE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766922034,
"last_update": 1776814863,
"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": 2112,
"language": "sv",
"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/10806352");
$data = json_decode($json, true);
var_dump($data);