SCP: 5K (Alpha Testing)
Anomaly Containment Hub Achscp.com 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10682454json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10682454,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Helsinki",
"description": null,
"game": 872670,
"owner": 150069,
"boosts": 1,
"last_offline": 1766209856,
"score": 0,
"last_online": 1765296611,
"icon": null,
"name": "Anomaly Containment Hub Achscp.com",
"connect": null,
"request": null,
"map": "Map:/Temp/Untitled_0",
"gamemode": "SCP: Pandemic",
"version": null,
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "FI",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1764584291,
"last_update": 1766209856,
"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": 24,
"language": "fi",
"parked": true,
"app": {
"id": 51883,
"steam_id": 872670,
"name": "SCP: 5K (Alpha Testing)",
"url": "scp-5k-alpha-testing"
},
"server_owner": {
"username": "Basti",
"avatar": "cef77e84-7c21-4f96-b427-d8bfdbc0238a.png",
"last_online": 1765386083
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10682454");
$data = json_decode($json, true);
var_dump($data);