Soulmask
Pata Negra - Shifting Sands 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11489317json
{
"response": {
"steam_id": "90284540348379151",
"domain": null,
"id": 11489317,
"ip": "146.158.205.73",
"port": 8778,
"query": 27016,
"color": 0,
"city": "Cadiz",
"description": null,
"game": 2646460,
"owner": null,
"boosts": 1,
"last_offline": 1776294711,
"score": 0,
"last_online": 1776393632,
"icon": null,
"name": "Pata Negra - Shifting Sands",
"connect": "146.158.205.73:8778",
"request": "146.158.205.73:27016",
"map": "DLC_Level01_Main",
"gamemode": "00",
"version": "1.0.0.0",
"numplayers": 2,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "ES",
"status": true,
"votes": 0,
"points": 41,
"add_date": 1776277840,
"last_update": 1776393632,
"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": 100,
"language": "es",
"parked": false,
"app": {
"id": 1625562,
"steam_id": 2646460,
"name": "Soulmask",
"url": "soulmask"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11489317");
$data = json_decode($json, true);
var_dump($data);