Empyrion - Galactic Survival
Eleon Game Studios - Official EU Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/562305json
{
"response": {
"steam_id": "90284551417576465",
"domain": null,
"id": 562305,
"ip": "136.243.69.119",
"port": 41758,
"query": 41759,
"color": 0,
"city": "Falkenstein",
"description": "",
"game": 383120,
"owner": null,
"boosts": 1,
"last_offline": 1776410621,
"score": null,
"last_online": 1776442834,
"icon": null,
"name": "Eleon Game Studios - Official EU Server",
"connect": "136.243.69.119:41758",
"request": "136.243.69.119:41759",
"map": null,
"gamemode": "Empyrion - Galactic Survival",
"version": "v1.16.1",
"numplayers": 2,
"maxplayers": 50,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 39,
"add_date": 1666647866,
"last_update": 1776442834,
"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": 31,
"language": "de",
"parked": false,
"app": {
"id": 140,
"steam_id": 383120,
"name": "Empyrion - Galactic Survival",
"url": "empyrion-galactic-survival"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/562305");
$data = json_decode($json, true);
var_dump($data);