API для Sven Co-op listen server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90289069419136017",
"domain": null,
"id": 12336561,
"ip": "87.117.49.86",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Rostov-on-Don",
"description": null,
"game": 225840,
"owner": null,
"boosts": 1,
"last_offline": 1784286028,
"last_online": 1784206919,
"icon": null,
"name": "Sven Co-op listen server",
"connect": "87.117.49.86:27015",
"request": "87.117.49.86:27015",
"map": "hl_c07_a1",
"gamemode": null,
"version": "5.0.1.8",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": false,
"private": null,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784206920,
"last_update": 1784286028,
"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": 3686,
"language": "ru",
"parked": false,
"app": {
"id": 65,
"steam_id": 225840,
"name": "Sven Co-op",
"url": "sven-co-op"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12336561");
$data = json_decode($json, true);
var_dump($data);