API для Condition Zero
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1786025599,
"app": {
"id": 10,
"name": "Counter-Strike: Condition Zero",
"steam_id": 80,
"url": "counter-strike-condition-zero"
},
"color": 0,
"connect": "88.166.162.164:27015",
"country": "FR",
"domain": null,
"game": 80,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 13481473,
"ip": "88.166.162.164",
"language": "fr",
"last_update": 1790723079,
"map": "cs_office_cz",
"maxplayers": 32,
"name": "Condition Zero",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "88.166.162.164:27015",
"secured": false,
"status": false,
"steam_id": "90293688433506334",
"version": "1.0.0.3/Stdio",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Марсель",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790723079,
"last_online": 1790706847,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 462,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "czero",
"gametype": null,
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13481473");
$data = json_decode($json, true);
var_dump($data);