Euro Truck Simulator 2
API для [PL] GieroManiacy - Polski Serwer ETS2 [Wiecej Slotow]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11143217json
{
"response": {
"steam_id": "85568392926017683",
"domain": null,
"id": 11143217,
"ip": "145.239.88.43",
"port": 27020,
"query": 27021,
"color": 0,
"city": "Wroclaw",
"description": null,
"game": 227300,
"owner": null,
"boosts": 1,
"last_offline": 1776227514,
"score": 0,
"last_online": 1776247238,
"icon": null,
"name": "[PL] GieroManiacy - Polski Serwer ETS2 [Wiecej Slotow]",
"connect": "145.239.88.43:27020",
"request": "145.239.88.43:27021",
"map": "europe",
"gamemode": "Polski Serwer ETS2, powiekszone sloty!",
"version": null,
"numplayers": 0,
"maxplayers": 128,
"bots": 0,
"secured": false,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1771508919,
"last_update": 1776247238,
"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": 741,
"language": "pl",
"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/11143217");
$data = json_decode($json, true);
var_dump($data);