Its not a Tumor! 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286686397316118",
"domain": null,
"id": 10660817,
"ip": "51.161.87.176",
"port": 37030,
"query": 37030,
"project_id": null,
"color": 0,
"city": "Montreal",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1781603589,
"last_online": 1781445699,
"icon": null,
"name": "Its not a Tumor!",
"connect": "51.161.87.176:37030",
"request": "51.161.87.176:37030",
"map": "Pregen08k02",
"gamemode": "7 Days To Die",
"version": "01.02.06",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": true,
"country": "CA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1764544630,
"last_update": 1781603589,
"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": 10449,
"language": "en",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10660817");
$data = json_decode($json, true);
var_dump($data);