Avorion
Universe Av0R10N - Citadel of E-Rick 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11142978json
{
"response": {
"steam_id": "90283349860629504",
"domain": null,
"id": 11142978,
"ip": "135.148.171.163",
"port": 27000,
"query": 27020,
"color": 0,
"city": "Oakton",
"description": "Welcome to the Citadel of E-Rick Avorion Server — a scientifically irresponsible universe where your ship design is wrong, your economy will collapse, and that alien faction definitely remembers what you did. Build. Explode. Blame physics. Now go make bad decisions in space.",
"game": 445220,
"owner": 168470,
"boosts": 1,
"last_offline": 1771023540,
"score": 0,
"last_online": 1776226210,
"icon": null,
"name": "Universe Av0R10N - Citadel of E-Rick",
"connect": "135.148.171.163:27000",
"request": "135.148.171.163:27020",
"map": "jkdsnf90fjn349ncds9nfw-e",
"gamemode": "Avorion",
"version": "2.5.13.44140",
"numplayers": 0,
"maxplayers": 36,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1771023540,
"last_update": 1776226210,
"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": "en",
"parked": false,
"app": {
"id": 172,
"steam_id": 445220,
"name": "Avorion",
"url": "avorion"
},
"server_owner": {
"username": "eric_hood",
"avatar": "375575b2-9b4a-4bd2-b530-bed11fc6e8eb.jpg",
"last_online": 1771048784
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11142978");
$data = json_decode($json, true);
var_dump($data);