Call of Duty 4: Modern Warfare
[COD4X] Gaming Side Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10825123json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10825123,
"ip": "83.168.69.6",
"port": 28960,
"query": 28960,
"color": 0,
"city": "Wroclaw",
"description": null,
"game": 7940,
"owner": 127620,
"boosts": 1,
"last_offline": 1775550728,
"score": 0,
"last_online": 1775947818,
"icon": null,
"name": "[COD4X] Gaming Side Server",
"connect": "83.168.69.6:28960",
"request": "83.168.69.6:28960",
"map": "mp_shipment",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X - linux-i386 build 1154 May 1 2022",
"numplayers": 0,
"maxplayers": 24,
"bots": 12,
"secured": false,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1767986076,
"last_update": 1775947818,
"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": 7,
"language": "pl",
"parked": false,
"app": {
"id": 1629111,
"steam_id": 7940,
"name": "Call of Duty 4: Modern Warfare",
"url": "call-of-duty-4-modern-warfare"
},
"server_owner": {
"username": "mrkacu13",
"avatar": "no.jpg",
"last_online": 1769896218
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10825123");
$data = json_decode($json, true);
var_dump($data);