Empyrion - Galactic Survival
Darths Dominion (3-25) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11386980json
{
"response": {
"steam_id": "90285477430101007",
"domain": null,
"id": 11386980,
"ip": "38.13.122.9",
"port": 30000,
"query": 30001,
"color": 0,
"city": "Phoenix",
"description": null,
"game": 383120,
"owner": null,
"boosts": 1,
"last_offline": 1778597536,
"score": 0,
"last_online": 1778273522,
"icon": null,
"name": "Darths Dominion (3-25)",
"connect": "38.13.122.9:30000",
"request": "38.13.122.9:30001",
"map": null,
"gamemode": "Empyrion - Galactic Survival",
"version": "v1.16.1",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774596300,
"last_update": 1778597536,
"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": 493,
"language": "en",
"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/11386980");
$data = json_decode($json, true);
var_dump($data);