Insurgency: Sandstorm
[US-WEST] Ratbastard Mod Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11481153json
{
"response": {
"steam_id": "85568392936005245",
"domain": null,
"id": 11481153,
"ip": "50.46.39.90",
"port": 29901,
"query": 29902,
"color": 0,
"city": "Lake Stevens",
"description": null,
"game": 581320,
"owner": null,
"boosts": 1,
"last_offline": 1776560599,
"score": 0,
"last_online": 1776781917,
"icon": null,
"name": "[US-WEST] Ratbastard Mod Server",
"connect": "50.46.39.90:29901",
"request": "50.46.39.90:29902",
"map": "CanyonWallsMap",
"gamemode": "Free-For-All",
"version": "1.1.0.0",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774979247,
"last_update": 1776781917,
"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": 407,
"language": "en",
"parked": false,
"app": {
"id": 23489,
"steam_id": 581320,
"name": "Insurgency: Sandstorm",
"url": "insurgency-sandstorm"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11481153");
$data = json_decode($json, true);
var_dump($data);