API для [JunKieS] .:: Community :: Classic ::.
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "g:skirmish,p:custom,t:default,v:2424,pure:2,grp:5513290i,alltalk,fastdl",
"os": "l",
"product": "insurgency",
"region": 3,
"steam_id": "90288750974015512",
"domain": null,
"id": 12260513,
"ip": "91.134.218.181",
"port": 36269,
"query": 36269,
"project_id": null,
"color": 0,
"city": "Zaventem",
"description": null,
"game": 222880,
"owner": null,
"boosts": 1,
"last_offline": 1784086981,
"last_online": 1783868067,
"icon": null,
"name": "[JunKieS] .:: Community :: Classic ::.",
"connect": "91.134.218.181:36269",
"request": "91.134.218.181:36269",
"map": "peak",
"gamemode": null,
"version": "2.4.2.4",
"numplayers": 0,
"maxplayers": 49,
"bots": 0,
"secured": true,
"private": null,
"country": "BE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1783863340,
"last_update": 1784086981,
"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": 1066,
"language": "nl",
"parked": false,
"app": {
"id": 13,
"steam_id": 222880,
"name": "Insurgency",
"url": "insurgency"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12260513");
$data = json_decode($json, true);
var_dump($data);