API для ProtexGaming --- Match Server 1 --- pxgaming.de
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790292615,
"app": {
"id": 2,
"name": "Counter-Strike 2",
"steam_id": 730,
"url": "counter-strike-2"
},
"color": 0,
"connect": "5.231.252.31:27222",
"country": "DE",
"domain": null,
"game": 730,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17083478,
"ip": "5.231.252.31",
"language": "de",
"last_update": 1790392879,
"map": "de_dust2",
"maxplayers": 12,
"name": "ProtexGaming --- Match Server 1 --- pxgaming.de",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27222,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27222,
"request": "5.231.252.31:27222",
"secured": true,
"status": false,
"steam_id": "85568392936433940",
"version": "1.41.8.5",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Бад-Зоден",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790392879,
"last_online": 1790389805,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 32530,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "cs2",
"gametype": "empty,insecure",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17083478");
$data = json_decode($json, true);
var_dump($data);