[FR] W40K Team - PVE Coop 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "85568392936227944",
"domain": null,
"id": 11579245,
"ip": "88.151.197.15",
"port": 8287,
"query": 8594,
"project_id": null,
"color": 0,
"city": "Marseille",
"description": null,
"game": 581320,
"owner": null,
"boosts": 1,
"last_offline": 1780470421,
"last_online": 1781094165,
"icon": null,
"name": "[FR] W40K Team - PVE Coop",
"connect": "88.151.197.15:8287",
"request": "88.151.197.15:8594",
"map": "Bab",
"gamemode": "Checkpoint",
"version": "1.1.0.0",
"numplayers": 0,
"maxplayers": 28,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779356960,
"last_update": 1781094165,
"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": 329,
"language": "fr",
"parked": false,
"app": {
"id": 23489,
"steam_id": 581320,
"name": "Insurgency: Sandstorm",
"url": "insurgency-sandstorm"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11579245");
$data = json_decode($json, true);
var_dump($data);