Senior with a bottle of vodka 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11579388,
"ip": "46.180.87.239",
"port": 27016,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Kemerovo",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1780737818,
"last_online": 1780131159,
"icon": null,
"name": "Senior with a bottle of vodka",
"connect": "46.180.87.239:27016",
"request": "46.180.87.239:27016",
"map": "lambda_bunker",
"gamemode": "Half-Life",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779356974,
"last_update": 1780737818,
"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": 436,
"language": "ru",
"parked": false,
"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/11579388");
$data = json_decode($json, true);
var_dump($data);