Squad
SquadStats.nl | Training vs Bots | New Player Friendly | squadstats.nl/discord 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11142562json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11142562,
"ip": "77.171.60.250",
"port": 7787,
"query": 7787,
"color": 0,
"city": "Geleen",
"description": null,
"game": 393380,
"owner": null,
"boosts": 1,
"last_offline": 1776818092,
"score": 0,
"last_online": 1776817288,
"icon": null,
"name": "SquadStats.nl | Training vs Bots | New Player Friendly | squadstats.nl/discord",
"connect": "77.171.60.250:7787",
"request": "77.171.60.250:7787",
"map": "Sumari_Seed_v1",
"gamemode": "Seed",
"version": "v10.3.1.576590.1719",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": null,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1770804050,
"last_update": 1776818092,
"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": 304,
"language": "nl",
"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/11142562");
$data = json_decode($json, true);
var_dump($data);