Testing | Montréal | 100 Tick | WIP 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286836895109130",
"domain": null,
"id": 11588466,
"ip": "198.50.120.47",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Mascouche",
"description": null,
"game": 17700,
"owner": null,
"boosts": 1,
"last_offline": 1781090673,
"last_online": 1781328133,
"icon": null,
"name": "Testing | Montréal | 100 Tick | WIP",
"connect": "198.50.120.47:27015",
"request": "198.50.120.47:27015",
"map": "ins_sinjar",
"gamemode": "Insurgency",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": true,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779357791,
"last_update": 1781328133,
"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": 2,
"language": "en",
"parked": false,
"app": {
"id": 58,
"steam_id": 17700,
"name": "Insurgency: Modern Infantry Combat",
"url": "insurgency-modern-infantry-combat"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11588466");
$data = json_decode($json, true);
var_dump($data);