SCP: 5K (Alpha Testing)
SCP: 5K server by g-portal.com 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10520523json
{
"response": {
"steam_id": "90285146966607901",
"domain": null,
"id": 10520523,
"ip": "176.57.181.9",
"port": 7777,
"query": 20015,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 872670,
"owner": null,
"boosts": 1,
"last_offline": 1775345530,
"score": 0,
"last_online": 1777568470,
"icon": null,
"name": "SCP: 5K server by g-portal.com",
"connect": "176.57.181.9:7777",
"request": "176.57.181.9:20015",
"map": "M_ServerDefault",
"gamemode": "PVP",
"version": "0.4.1.0",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1761424657,
"last_update": 1777568470,
"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": 5,
"language": "de",
"parked": false,
"app": {
"id": 51883,
"steam_id": 872670,
"name": "SCP: 5K (Alpha Testing)",
"url": "scp-5k-alpha-testing"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10520523");
$data = json_decode($json, true);
var_dump($data);