Call of Duty 4: Modern Warfare
API для COD4 TDM
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/244920json
{
"response": {
"steam_id": null,
"domain": null,
"id": 244920,
"ip": "89.234.183.99",
"port": 28960,
"query": 28960,
"color": 0,
"city": "Nanterre",
"description": "",
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1774818132,
"score": 5,
"last_online": 1775928022,
"icon": null,
"name": "COD4 TDM",
"connect": "89.234.183.99:28960",
"request": "89.234.183.99:28960",
"map": "mp_backlot",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X - linux-i386 build 1154 May 1 2022",
"numplayers": 3,
"maxplayers": 50,
"bots": 9,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 41,
"add_date": 1583081796,
"last_update": 1775928022,
"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": 19,
"language": "fr",
"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/244920");
$data = json_decode($json, true);
var_dump($data);