UNES (SALA 7B) 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286885459927071",
"domain": null,
"id": 11778311,
"ip": "212.227.248.252",
"port": 27015,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Madrid",
"description": null,
"game": 1066890,
"owner": null,
"boosts": 1,
"last_offline": 1781202239,
"last_online": 1781192416,
"icon": null,
"name": "UNES (SALA 7B)",
"connect": "212.227.248.252:27015",
"request": "212.227.248.252:27016",
"map": "Road_Atlanta",
"gamemode": "Automobilista 2",
"version": "1.0.0.93",
"numplayers": 0,
"maxplayers": 26,
"bots": 0,
"secured": true,
"private": false,
"country": "ES",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780998840,
"last_update": 1781202239,
"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": 313,
"language": "es",
"parked": false,
"app": {
"id": 48189,
"steam_id": 1066890,
"name": "Automobilista 2",
"url": "automobilista-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11778311");
$data = json_decode($json, true);
var_dump($data);