API для Tropasuprema .:. Server #1
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "l",
"region": 3,
"product": "insurgency",
"gametype": "g:occupy,p:custom,t:default,v:2424,pure:2,grp:5513290i,alltalk",
"dedicated": true,
"steam_id": "90291278766349331",
"domain": null,
"id": 13862777,
"ip": "51.68.121.144",
"port": 29335,
"query": 29335,
"project_id": null,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 222880,
"owner": null,
"boosts": 1,
"last_offline": 1787502866,
"last_online": 1787232208,
"icon": null,
"name": "Tropasuprema .:. Server #1",
"connect": "51.68.121.144:29335",
"request": "51.68.121.144:29335",
"map": "revolt",
"gamemode": null,
"version": "2.4.2.4",
"numplayers": 0,
"maxplayers": 49,
"bots": 0,
"secured": true,
"private": null,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1787227775,
"last_update": 1787502866,
"ban_reason": null,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1462,
"language": "fr",
"parked": false,
"app": {
"id": 13,
"steam_id": 222880,
"name": "Insurgency",
"url": "insurgency"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13862777");
$data = json_decode($json, true);
var_dump($data);