API для Personal Listen Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90289777767586832",
"domain": null,
"id": 12932911,
"ip": "102.88.54.219",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Lagos",
"description": null,
"game": 673560,
"owner": null,
"boosts": 1,
"last_offline": 1785360307,
"last_online": 1785282000,
"icon": null,
"name": "Personal Listen Server",
"connect": "102.88.54.219:27015",
"request": "102.88.54.219:27015",
"map": "tutorial",
"gamemode": null,
"version": "1.0.0.70",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": null,
"country": "NG",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1785282193,
"last_update": 1785360307,
"ban_reason": null,
"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": 1036,
"language": "en",
"parked": false,
"app": {
"id": 33374,
"steam_id": 673560,
"name": "IOSoccer",
"url": "iosoccer"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12932911");
$data = json_decode($json, true);
var_dump($data);