Survive the Nights
IGC.CREW.ITA 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11487674json
{
"response": {
"steam_id": "90284588329489408",
"domain": null,
"id": 11487674,
"ip": "176.57.181.140",
"port": 28300,
"query": 28315,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 541300,
"owner": null,
"boosts": 1,
"last_offline": 1777488162,
"score": 0,
"last_online": 1776765117,
"icon": null,
"name": "IGC.CREW.ITA",
"connect": "176.57.181.140:28300",
"request": "176.57.181.140:28315",
"map": "Black_Island",
"gamemode": "Survive The Nights",
"version": "1.3.0.0",
"numplayers": 0,
"maxplayers": 15,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774979749,
"last_update": 1777488162,
"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": 57,
"language": "de",
"parked": false,
"app": {
"id": 12556,
"steam_id": 541300,
"name": "Survive the Nights",
"url": "survive-the-nights"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11487674");
$data = json_decode($json, true);
var_dump($data);