API для CS Source AI Dev Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": null,
"os": "l",
"product": "mod_hl2mp",
"region": 3,
"steam_id": "90286923275477010",
"domain": null,
"id": 12384841,
"ip": "176.1.246.192",
"port": 27015,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Düsseldorf",
"description": null,
"game": 243750,
"owner": null,
"boosts": 1,
"last_offline": 1784808289,
"last_online": 1784529187,
"icon": null,
"name": "CS Source AI Dev Server",
"connect": "176.1.246.192:27015",
"request": "176.1.246.192:27016",
"map": "dm_lockdown",
"gamemode": null,
"version": "2000",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": null,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784471024,
"last_update": 1784808289,
"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": 873,
"language": "de",
"parked": false,
"app": {
"id": 159,
"steam_id": 243750,
"name": "Source SDK Base 2013 Multiplayer",
"url": "source-sdk-base-2013-multiplayer"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12384841");
$data = json_decode($json, true);
var_dump($data);