Avorion
the cat toy - 24/7 pve 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/2108395json
{
"response": {
"steam_id": "90284372996915227",
"domain": null,
"id": 2108395,
"ip": "199.47.174.121",
"port": 27000,
"query": 27020,
"color": 0,
"city": "Tampa",
"description": "dangerous pirates - fleet gameplay - low modcount",
"game": 445220,
"owner": null,
"boosts": 1,
"last_offline": 1774990935,
"score": null,
"last_online": 1776222616,
"icon": null,
"name": "the cat toy - 24/7 pve",
"connect": "199.47.174.121:27000",
"request": "199.47.174.121:27020",
"map": "thecattoyreturns",
"gamemode": "Avorion",
"version": "2.5.13.44140",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1702115414,
"last_update": 1776222616,
"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": 46,
"language": "en",
"parked": false,
"app": {
"id": 172,
"steam_id": 445220,
"name": "Avorion",
"url": "avorion"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/2108395");
$data = json_decode($json, true);
var_dump($data);