API для MOTORLAPS BRAZIL
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793663979,
"app": {
"id": 146,
"name": "rFactor 2",
"steam_id": 365960,
"url": "rfactor-2"
},
"color": 0,
"connect": "181.233.46.15:64298",
"country": "BR",
"domain": null,
"game": 365960,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19575006,
"ip": "181.233.46.15",
"language": "pt",
"last_update": 1794214695,
"map": "Targa Florio 1967 Summer",
"maxplayers": 46,
"name": "MOTORLAPS BRAZIL",
"numplayers": 0,
"official": null,
"points": 0,
"port": 64298,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 64300,
"request": "181.233.46.15:64300",
"secured": false,
"status": false,
"steam_id": "90296099454682141",
"version": "11134",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Campo Florido",
"description": null,
"disabled_modules": [],
"gamemode": "rFactor 2",
"hidden": false,
"last_offline": 1794214695,
"last_online": 1793732490,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 392,
"wipe_period": null,
"listentype": "l",
"environment": "w",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19575006");
$data = json_decode($json, true);
var_dump($data);