Insurgency: Sandstorm
IMPOSSIBLE 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10515412json
{
"response": {
"steam_id": "90284125317245961",
"domain": null,
"id": 10515412,
"ip": "24.8.94.127",
"port": 27102,
"query": 27131,
"color": 0,
"city": "Aurora",
"description": null,
"game": 581320,
"owner": null,
"boosts": 1,
"last_offline": 1773261136,
"score": 0,
"last_online": 1776411151,
"icon": null,
"name": "IMPOSSIBLE",
"connect": "24.8.94.127:27102",
"request": "24.8.94.127:27131",
"map": "Ministry",
"gamemode": "Checkpoint",
"version": "1.1.0.0",
"numplayers": 0,
"maxplayers": 14,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1761423990,
"last_update": 1776411151,
"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": 233,
"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/10515412");
$data = json_decode($json, true);
var_dump($data);