Dysterra
的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11394865json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11394865,
"ip": "85.190.162.99",
"port": 10300,
"query": 10301,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 1527890,
"owner": null,
"boosts": 1,
"last_offline": 1776192680,
"score": 0,
"last_online": 1775376648,
"icon": null,
"name": null,
"connect": null,
"request": "85.190.162.99:10301",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": null,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774597152,
"last_update": 1776192680,
"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": 4,
"language": "de",
"parked": false,
"app": {
"id": 1579582,
"steam_id": 1527890,
"name": "Dysterra",
"url": "dysterra"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11394865");
$data = json_decode($json, true);
var_dump($data);