API для Magyar Hot Pursuit | MHP | Drift/DD/DM
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1787267193,
"app": {
"id": 40530,
"name": "Multi Theft Auto",
"steam_id": 9000039,
"url": "multi-theft-auto"
},
"color": 0,
"connect": "1.137.73.212:22409",
"country": "AU",
"domain": null,
"game": 9000039,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 13888415,
"ip": "1.137.73.212",
"language": "en",
"last_update": 1794935645,
"map": null,
"maxplayers": 200,
"name": "Magyar Hot Pursuit | MHP | Drift/DD/DM",
"numplayers": 16,
"official": null,
"points": 34,
"port": 22409,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 22532,
"request": "1.137.73.212:22532",
"secured": null,
"status": true,
"steam_id": null,
"version": "1.6",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "St Leonards",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1793598310,
"last_online": 1794935645,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 151,
"wipe_period": null,
"keep": true,
"serials": null,
"gameName": null,
"httpPort": 22409,
"restrictions": 0,
"specialFlags": 1,
"masterNoResponse": false,
"searchIgnoreSections": [
{
"length": 0,
"offset": 0
}
]
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13888415");
$data = json_decode($json, true);
var_dump($data);