API для Dark and Manly
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1791069410,
"app": {
"id": 167,
"name": "Day of Infamy",
"steam_id": 447820,
"url": "day-of-infamy"
},
"color": 0,
"connect": "94.23.68.241:36210",
"country": "IT",
"domain": null,
"game": 447820,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17692964,
"ip": "94.23.68.241",
"language": "it",
"last_update": 1791224826,
"map": "foy",
"maxplayers": 49,
"name": "Dark and Manly",
"numplayers": 0,
"official": null,
"points": 0,
"port": 36210,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 36210,
"request": "94.23.68.241:36210",
"secured": true,
"status": false,
"steam_id": "90294023538097176",
"version": "3.2.1.5",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Милан",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1791224826,
"last_online": 1791069410,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2019,
"wipe_period": null,
"os": "l",
"region": 3,
"product": "doi",
"gametype": "g:liberation,p:custom,t:default,v:3215,pure:2,grp:5513290i,compspec,friendlyfire,HLstatsX:CE,public",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17692964");
$data = json_decode($json, true);
var_dump($data);