API для World eX: Super Final Test
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793647025,
"app": {
"id": 146,
"name": "rFactor 2",
"steam_id": 365960,
"url": "rfactor-2"
},
"color": 0,
"connect": "93.193.14.216:64297",
"country": "DE",
"domain": null,
"game": 365960,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19567178,
"ip": "93.193.14.216",
"language": "de",
"last_update": 1794214150,
"map": "Suzuka Grand Prix Circuit",
"maxplayers": 50,
"name": "World eX: Super Final Test",
"numplayers": 0,
"official": null,
"points": 0,
"port": 64297,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 64299,
"request": "93.193.14.216:64299",
"secured": false,
"status": false,
"steam_id": "90296403618940942",
"version": "11134",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Нордкирхен",
"description": null,
"disabled_modules": [],
"gamemode": "rFactor 2",
"hidden": false,
"last_offline": 1794214150,
"last_online": 1793650156,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 385,
"wipe_period": null,
"listentype": "l",
"environment": "w",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19567178");
$data = json_decode($json, true);
var_dump($data);