API для Listen Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": false,
"gametype": "344|ns2|M|155|79|79|0|30|26|20|100|0|0|0|1|1|929",
"os": "w",
"product": "Natural Selection 2",
"region": -1,
"steam_id": "90289860533463046",
"domain": null,
"id": 12999493,
"ip": "213.65.33.63",
"port": 27015,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Skövde",
"description": null,
"game": 4920,
"owner": null,
"boosts": 1,
"last_offline": 1785380678,
"last_online": 1785381000,
"icon": null,
"name": "Listen Server",
"connect": "213.65.33.63:27015",
"request": "213.65.33.63:27016",
"map": "ns2_summit",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 1,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": null,
"country": "SE",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1785380678,
"last_update": 1785381000,
"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": 8,
"language": "sv",
"parked": false,
"app": {
"id": 91,
"steam_id": 4920,
"name": "Natural Selection 2",
"url": "natural-selection-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12999493");
$data = json_decode($json, true);
var_dump($data);