API для Sven Co-op listen server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792205813,
"app": {
"id": 65,
"name": "Sven Co-op",
"steam_id": 225840,
"url": "sven-co-op"
},
"color": 0,
"connect": "189.219.63.139:27015",
"country": "MX",
"domain": null,
"game": 225840,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18478612,
"ip": "189.219.63.139",
"language": "es",
"last_update": 1792483064,
"map": "hl_c06",
"maxplayers": 2,
"name": "Sven Co-op listen server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "189.219.63.139:27015",
"secured": false,
"status": false,
"steam_id": "90295071090725904",
"version": "5.0.1.8",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Santa Catarina",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1792483064,
"last_online": 1792205813,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2885,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "svencoop",
"gametype": null,
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18478612");
$data = json_decode($json, true);
var_dump($data);