Call of Duty 4: Modern Warfare
^53xP^7' ^7Codjumper 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/246704json
{
"response": {
"steam_id": null,
"domain": null,
"id": 246704,
"ip": "91.121.21.210",
"port": 1337,
"query": 1337,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1768642299,
"score": null,
"last_online": 1775947814,
"icon": null,
"name": "^53xP^7' ^7Codjumper",
"connect": "91.121.21.210:1337",
"request": "91.121.21.210:1337",
"map": "mp_galaxy_v2",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X 1.7a linux-i386-custom_debug build 3585 Oct 7 2023",
"numplayers": 12,
"maxplayers": 55,
"bots": 0,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1583081800,
"last_update": 1775947814,
"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": 4,
"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.cn/servers/246704");
$data = json_decode($json, true);
var_dump($data);