Insurgency: Sandstorm
UNITAS - COOP TEAMPLAY SERVER #0 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1383460json
{
"response": {
"steam_id": "85568392929833553",
"domain": null,
"id": 1383460,
"ip": "160.202.166.21",
"port": 27132,
"query": 27133,
"color": 0,
"city": "Dallas",
"description": "",
"game": 581320,
"owner": null,
"boosts": 1,
"last_offline": 1774156928,
"score": null,
"last_online": 1776361297,
"icon": null,
"name": "UNITAS - COOP TEAMPLAY SERVER #0",
"connect": "160.202.166.21:27132",
"request": "160.202.166.21:27133",
"map": "PowerPlant",
"gamemode": "Checkpoint",
"version": "1.1.0.0",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1693560478,
"last_update": 1776361297,
"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": 63,
"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/1383460");
$data = json_decode($json, true);
var_dump($data);