API для | HIGH LEVEL - TRAINING SERVER |
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790387008,
"app": {
"id": 167,
"name": "Day of Infamy",
"steam_id": 447820,
"url": "day-of-infamy"
},
"color": 0,
"connect": "188.165.6.153:33827",
"country": "FR",
"domain": null,
"game": 447820,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17134818,
"ip": "188.165.6.153",
"language": "fr",
"last_update": 1791223592,
"map": "bastogne",
"maxplayers": 49,
"name": "| HIGH LEVEL - TRAINING SERVER |",
"numplayers": 0,
"official": null,
"points": 0,
"port": 33827,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 33827,
"request": "188.165.6.153:33827",
"secured": true,
"status": false,
"steam_id": "90293458037008390",
"version": "3.2.1.5",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Париж",
"description": null,
"disabled_modules": [],
"gamemode": "DOI",
"hidden": false,
"last_offline": 1791223592,
"last_online": 1790392393,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 211,
"wipe_period": null,
"os": "l",
"region": 3,
"product": "doi",
"gametype": "g:liberation,p:custom,t:default,v:3215,pure:2,grp:5513290i,dedicated,gravity,premium,public,registered,stats",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17134818");
$data = json_decode($json, true);
var_dump($data);