s&box
АВОСЬКА RP 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11394926json
{
"response": {
"steam_id": 90284493764103170,
"domain": "avoskarp.ru",
"id": 11394926,
"ip": "91.240.87.237",
"port": 27015,
"query": 27016,
"color": 0,
"city": "St Petersburg",
"description": null,
"game": 590830,
"owner": 184210,
"boosts": 1,
"last_offline": 1776297712,
"score": 0,
"last_online": 1776326416,
"icon": null,
"name": "АВОСЬКА RP",
"connect": "avoskarp.ru:27015",
"request": "91.240.87.237:27016",
"map": "thieves.rpdowntown3t",
"gamemode": "Авоська RP",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 69,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774597279,
"last_update": 1776326416,
"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": 1,
"language": "ru",
"parked": false,
"app": {
"id": 1646716,
"steam_id": 590830,
"name": "s&box",
"url": "s-box"
},
"server_owner": {
"username": "ariex",
"avatar": "53635751-967c-4bbe-ab87-860e9c9485f1.png",
"last_online": 1775462900
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11394926");
$data = json_decode($json, true);
var_dump($data);