API для PERU SERVER [PSV]
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1769993732,
"app": {
"id": 1980,
"name": "Euro Truck Simulator 2",
"steam_id": 227300,
"url": "euro-truck-simulator-2"
},
"color": 0,
"connect": null,
"country": "BR",
"domain": null,
"game": 227300,
"hide_address": true,
"hide_query": false,
"icon": null,
"id": 11081482,
"ip": null,
"language": "pt",
"last_update": 1771393862,
"map": "ncs",
"maxplayers": 128,
"name": "PERU SERVER [PSV]",
"numplayers": 0,
"official": null,
"points": 0,
"port": null,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": null,
"request": null,
"secured": false,
"status": false,
"steam_id": null,
"version": null,
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сан-Паулу",
"description": "[{\"id\":\"hgxrnp_sps\",\"type\":\"paragraph\",\"data\":{\"text\":\"https://peruserver.pe/\"}}]",
"disabled_modules": [],
"gamemode": "BIENVENIDOS",
"hidden": false,
"last_offline": 1771393862,
"last_online": 1770506412,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": true,
"position_game": 1691,
"wipe_period": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11081482");
$data = json_decode($json, true);
var_dump($data);