Automobilista 2
API для
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10998868json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10998868,
"ip": "213.239.209.81",
"port": 14160,
"query": 18160,
"color": 0,
"city": "Nuremberg",
"description": null,
"game": 1066890,
"owner": null,
"boosts": 1,
"last_offline": 1776633752,
"score": 0,
"last_online": 1775857225,
"icon": null,
"name": null,
"connect": null,
"request": "213.239.209.81:18160",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": null,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1769906579,
"last_update": 1776633752,
"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": 184,
"language": "de",
"parked": false,
"app": {
"id": 48189,
"steam_id": 1066890,
"name": "Automobilista 2",
"url": "automobilista-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10998868");
$data = json_decode($json, true);
var_dump($data);