StarRupture
GameSession 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11252561json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11252561,
"ip": "80.241.215.155",
"port": 28800,
"query": 28800,
"color": 0,
"city": "Lauterbourg",
"description": null,
"game": 1631270,
"owner": null,
"boosts": 1,
"last_offline": 1775022112,
"score": 5,
"last_online": 1776022847,
"icon": null,
"name": "GameSession",
"connect": "80.241.215.155:28800",
"request": "80.241.215.155:28800",
"map": "ChimeraMain/ChimeraMain",
"gamemode": null,
"version": "118258",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 5,
"points": 35,
"add_date": 1774184478,
"last_update": 1776022847,
"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": 1,
"language": "fr",
"parked": false,
"app": {
"id": 1665414,
"steam_id": 1631270,
"name": "StarRupture",
"url": "starrupture"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11252561");
$data = json_decode($json, true);
var_dump($data);