Euro Truck Simulator 2
API для Dread Pirate Potatoes ETS2
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10088863json
{
"response": {
"steam_id": "90284151566703640",
"domain": null,
"id": 10088863,
"ip": "216.225.158.121",
"port": 9045,
"query": 9046,
"color": 0,
"city": "Secaucus",
"description": null,
"game": 227300,
"owner": null,
"boosts": 1,
"last_offline": 1771523499,
"score": 0,
"last_online": 1776004284,
"icon": null,
"name": "Dread Pirate Potatoes ETS2",
"connect": "216.225.158.121:9045",
"request": "216.225.158.121:9046",
"map": "europe",
"gamemode": "Powered by BisectHosting",
"version": null,
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1755473332,
"last_update": 1776004284,
"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": 308,
"language": "en",
"parked": false,
"app": {
"id": 1980,
"steam_id": 227300,
"name": "Euro Truck Simulator 2",
"url": "euro-truck-simulator-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10088863");
$data = json_decode($json, true);
var_dump($data);