SCP: CB Multiplayer Reborn
的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11181717json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11181717,
"ip": "193.164.16.226",
"port": 39100,
"query": 39100,
"color": 0,
"city": "Moscow",
"description": null,
"game": 3257000,
"owner": null,
"boosts": 1,
"last_offline": 1776409972,
"score": 0,
"last_online": 1776060052,
"icon": null,
"name": null,
"connect": null,
"request": "193.164.16.226:39100",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 120,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772229827,
"last_update": 1776409972,
"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": 21,
"language": "ru",
"parked": false,
"app": {
"id": 1638030,
"steam_id": 3257000,
"name": "SCP: CB Multiplayer Reborn",
"url": "scp-cb-multiplayer-reborn"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11181717");
$data = json_decode($json, true);
var_dump($data);