Call of Duty 4: Modern Warfare
API для GamePolis COD4X HARD DM
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11488597json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11488597,
"ip": "193.33.160.96",
"port": 25650,
"query": 25650,
"color": 0,
"city": "Khabarovsk",
"description": null,
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1775904717,
"score": 0,
"last_online": 1775948477,
"icon": null,
"name": "GamePolis COD4X HARD DM",
"connect": "193.33.160.96:25650",
"request": "193.33.160.96:25650",
"map": "mp_backlot",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X - win_mingw-x86 build 1153 May 1 2022",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1775644973,
"last_update": 1775948477,
"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": 89,
"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/11488597");
$data = json_decode($json, true);
var_dump($data);