Squad
[RU] | PROTOCOL EVENTS | discord.gg/prtcl 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11142454json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11142454,
"ip": "185.207.214.49",
"port": 7895,
"query": 7895,
"color": 0,
"city": "Moscow",
"description": null,
"game": 393380,
"owner": null,
"boosts": 1,
"last_offline": 1776618832,
"score": 0,
"last_online": 1776816709,
"icon": null,
"name": "[RU] | PROTOCOL EVENTS | discord.gg/prtcl",
"connect": "185.207.214.49:7895",
"request": "185.207.214.49:7895",
"map": "Gorodok_RAAS_v1",
"gamemode": "RAAS",
"version": "v10.3.1.576590.1719",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1770804048,
"last_update": 1776816709,
"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": 176,
"language": "ru",
"parked": false,
"app": {
"id": 137,
"steam_id": 393380,
"name": "Squad",
"url": "squad"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11142454");
$data = json_decode($json, true);
var_dump($data);