API для Palianytsia
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "l",
"region": -1,
"product": "1621690",
"gametype": "Fu4bdMPKr8KIenSts6mnss",
"dedicated": true,
"steam_id": "90291493096194053",
"domain": null,
"id": 14025972,
"ip": "77.222.159.219",
"port": 30006,
"query": 30007,
"project_id": null,
"color": 0,
"city": "Vinnytsia",
"description": null,
"game": 1621690,
"owner": null,
"boosts": 1,
"last_offline": 1787514747,
"last_online": 1787553153,
"icon": null,
"name": "Palianytsia",
"connect": "77.222.159.219:30006",
"request": "77.222.159.219:30007",
"map": null,
"gamemode": null,
"version": "1.2.1.5-8be0",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": null,
"country": "UA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1787514747,
"last_update": 1787553153,
"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": 491,
"language": "uk",
"parked": false,
"app": {
"id": 1560042,
"steam_id": 1621690,
"name": "Core Keeper",
"url": "core-keeper"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14025972");
$data = json_decode($json, true);
var_dump($data);