API для RTF American Truck
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794175677,
"app": {
"id": 2949,
"name": "American Truck Simulator",
"steam_id": 270880,
"url": "american-truck-simulator"
},
"color": 0,
"connect": null,
"country": "BR",
"domain": null,
"game": 270880,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19843797,
"ip": null,
"language": "pt",
"last_update": 1794209991,
"map": "usa",
"maxplayers": 128,
"name": "RTF American Truck",
"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": "85568392936270924",
"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": null,
"last_online": 1794209991,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": true,
"position_game": 1217,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "ats",
"gametype": "ZABlAGsgBQA=",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19843797");
$data = json_decode($json, true);
var_dump($data);