Call of Duty 4: Modern Warfare
API для [CGC] HARD-TDM 24/7
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/9618126json
{
"response": {
"steam_id": null,
"domain": null,
"id": 9618126,
"ip": "95.142.47.224",
"port": 28960,
"query": 28960,
"color": 0,
"city": "Moscow",
"description": null,
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1771732294,
"score": 0,
"last_online": 1775948464,
"icon": null,
"name": "[CGC] HARD-TDM 24/7",
"connect": "95.142.47.224:28960",
"request": "95.142.47.224:28960",
"map": "mp_broadcast",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X linux-i386-custom build 1213 Jan 31 2025",
"numplayers": 0,
"maxplayers": 38,
"bots": 10,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1750841281,
"last_update": 1775948464,
"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": 74,
"language": "ru",
"parked": false,
"app": {
"id": 1629111,
"steam_id": 7940,
"name": "Call of Duty 4: Modern Warfare",
"url": "call-of-duty-4-modern-warfare"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9618126");
$data = json_decode($json, true);
var_dump($data);