Medieval Engineers
Crashes Debautery Party 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1469682json
{
"response": {
"steam_id": "90285225947993112",
"domain": null,
"id": 1469682,
"ip": "108.61.227.247",
"port": 29015,
"query": 29015,
"color": 0,
"city": "Alexandria",
"description": "",
"game": 333950,
"owner": null,
"boosts": 1,
"last_offline": 1776433952,
"score": null,
"last_online": 1777690319,
"icon": null,
"name": "Crashes Debautery Party",
"connect": "108.61.227.247:29015",
"request": "108.61.227.247:29015",
"map": "My World",
"gamemode": "Medieval Engineers",
"version": "0.7.2.9224146",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1697313970,
"last_update": 1777690319,
"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": 3,
"language": "en",
"parked": false,
"app": {
"id": 89,
"steam_id": 333950,
"name": "Medieval Engineers",
"url": "medieval-engineers"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/1469682");
$data = json_decode($json, true);
var_dump($data);