API для [FIN] IGS Coop | Day/Hard+ | SP-Servers
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "85568392925675430",
"domain": null,
"id": 11579262,
"ip": "91.157.44.94",
"port": 27202,
"query": 27132,
"project_id": null,
"color": 0,
"city": "Kouvola",
"description": null,
"game": 581320,
"owner": null,
"boosts": 1,
"last_offline": 1781078673,
"last_online": 1781065294,
"icon": null,
"name": "[FIN] IGS Coop | Day/Hard+ | SP-Servers",
"connect": "91.157.44.94:27202",
"request": "91.157.44.94:27132",
"map": "Prison",
"gamemode": "Checkpoint",
"version": "1.1.0.0",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779356960,
"last_update": 1781078673,
"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": 569,
"language": "fi",
"parked": false,
"app": {
"id": 23489,
"steam_id": 581320,
"name": "Insurgency: Sandstorm",
"url": "insurgency-sandstorm"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11579262");
$data = json_decode($json, true);
var_dump($data);