API для #测试服务器
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792788072,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "16.106.40.130:28417",
"country": "HK",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18911387,
"ip": "16.106.40.130",
"language": null,
"last_update": 1793166985,
"map": "Procedural Map",
"maxplayers": 50,
"name": "#测试服务器",
"numplayers": 0,
"official": null,
"points": 0,
"port": 28417,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28418,
"request": "16.106.40.130:28418",
"secured": false,
"status": false,
"steam_id": "90295644767694865",
"version": "2634",
"votes": 0,
"wipe": 1792377053,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Гонконг",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1793166985,
"last_online": 1792793190,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 21474,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "252490",
"gametype": "mp50,cp0,ptrak,qp0,$r?,v2634,^v,EA,^p,born1792377053,gmrust,cs167781,ts16,^o^z",
"map_name": "Procedural Map",
"dedicated": true,
"queueplayers": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18911387");
$data = json_decode($json, true);
var_dump($data);