API для OpaKurt Eurotrucker
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793566795,
"app": {
"id": 1980,
"name": "Euro Truck Simulator 2",
"steam_id": 227300,
"url": "euro-truck-simulator-2"
},
"color": 0,
"connect": null,
"country": "CH",
"domain": null,
"game": 227300,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19507917,
"ip": null,
"language": "de",
"last_update": 1794774941,
"map": "europe",
"maxplayers": 8,
"name": "OpaKurt Eurotrucker",
"numplayers": 0,
"official": null,
"points": 0,
"port": null,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": null,
"request": null,
"secured": false,
"status": false,
"steam_id": "90297347239515151",
"version": null,
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Dübendorf",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794774941,
"last_online": 1794509219,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": true,
"position_game": 2110,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "eut2",
"gametype": "ZABlAEsBFAA=",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19507917");
$data = json_decode($json, true);
var_dump($data);