Call of Duty 4: Modern Warfare
^1berry^3trials 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/404269json
{
"response": {
"steam_id": null,
"domain": null,
"id": 404269,
"ip": "161.35.171.252",
"port": 28960,
"query": 28960,
"color": 0,
"city": "Slough",
"description": "",
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1774156929,
"score": null,
"last_online": 1777569051,
"icon": null,
"name": "^1berry^3trials",
"connect": "161.35.171.252:28960",
"request": "161.35.171.252:28960",
"map": "mp_berry_trials",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4: Unleashed 1.7u linux-i386 build 3664 Mar 9 2019",
"numplayers": 1,
"maxplayers": 31,
"bots": 0,
"secured": false,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1603798875,
"last_update": 1777569051,
"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": 37,
"language": "en",
"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/404269");
$data = json_decode($json, true);
var_dump($data);