API для Ласкаво Прошу
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789730409,
"app": {
"id": 1980,
"name": "Euro Truck Simulator 2",
"steam_id": 227300,
"url": "euro-truck-simulator-2"
},
"color": 0,
"connect": "176.39.66.252:27017",
"country": "UA",
"domain": null,
"game": 227300,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16686015,
"ip": "176.39.66.252",
"language": "uk",
"last_update": 1794774338,
"map": "europe",
"maxplayers": 8,
"name": "Ласкаво Прошу",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27017,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27018,
"request": "176.39.66.252:27018",
"secured": false,
"status": false,
"steam_id": "90297523698705409",
"version": null,
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Каменец-Подольский",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794774338,
"last_online": 1794770098,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1916,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "eut2",
"gametype": "ZABlAEsCAAA=",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16686015");
$data = json_decode($json, true);
var_dump($data);