API для Dacova na Estrada : ararasstudio.com
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794427792,
"app": {
"id": 1980,
"name": "Euro Truck Simulator 2",
"steam_id": 227300,
"url": "euro-truck-simulator-2"
},
"color": 0,
"connect": "45.157.156.190:27015",
"country": "BR",
"domain": null,
"game": 227300,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20010865,
"ip": "45.157.156.190",
"language": "pt",
"last_update": 1794774326,
"map": "europe",
"maxplayers": 128,
"name": "Dacova na Estrada : ararasstudio.com",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "45.157.156.190:27016",
"secured": false,
"status": true,
"steam_id": "90297416211049488",
"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": 1794759360,
"last_online": 1794774326,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1484,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "eut2",
"gametype": "ZABlAHsgAAA=",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20010865");
$data = json_decode($json, true);
var_dump($data);