Call of Duty 4: Modern Warfare
API для GER#OpenWarFare#IC
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/1397143json
{
"response": {
"steam_id": null,
"domain": null,
"id": 1397143,
"ip": "45.81.235.10",
"port": 27215,
"query": 27215,
"color": 0,
"city": "Markdorf",
"description": "",
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1768641025,
"score": null,
"last_online": 1775948413,
"icon": null,
"name": "GER#OpenWarFare#IC",
"connect": "45.81.235.10:27215",
"request": "45.81.235.10:27215",
"map": "mp_crash3",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X - linux-i386 build 1154 May 1 2022",
"numplayers": 7,
"maxplayers": 35,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 67,
"add_date": 1695466643,
"last_update": 1775948413,
"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": 5,
"language": "de",
"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/1397143");
$data = json_decode($json, true);
var_dump($data);