Call of Duty: Modern Warfare 3
^1nN|^3Domination|^2noname.zone 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1613114json
{
"response": {
"steam_id": "90284902487997441",
"domain": null,
"id": 1613114,
"ip": "82.66.176.252",
"port": 26912,
"query": 27017,
"color": 0,
"city": "Vitré",
"description": "",
"game": 42690,
"owner": null,
"boosts": 1,
"last_offline": 1776669799,
"score": null,
"last_online": 1777144920,
"icon": null,
"name": "^1nN|^3Domination|^2noname.zone",
"connect": "82.66.176.252:26912",
"request": "82.66.176.252:27017",
"map": "Underground",
"gamemode": "MW3 Game Description",
"version": "1.0.0.1",
"numplayers": 1,
"maxplayers": 18,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 92,
"add_date": 1698223803,
"last_update": 1777144920,
"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": 1,
"language": "fr",
"parked": false,
"app": {
"id": 1665339,
"steam_id": 42690,
"name": "Call of Duty: Modern Warfare 3",
"url": "call-of-duty-modern-warfare-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/1613114");
$data = json_decode($json, true);
var_dump($data);