Survive the Nights
Dragonslayer735 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11138094json
{
"response": {
"steam_id": "90284386206541836",
"domain": null,
"id": 11138094,
"ip": "76.180.233.141",
"port": 7950,
"query": 7951,
"color": 0,
"city": "Wynantskill",
"description": null,
"game": 541300,
"owner": null,
"boosts": 1,
"last_offline": 1774697546,
"score": 0,
"last_online": 1776351159,
"icon": null,
"name": "Dragonslayer735",
"connect": "76.180.233.141:7950",
"request": "76.180.233.141:7951",
"map": "Black_Island",
"gamemode": "Survive The Nights",
"version": "1.3.0.0",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1770398623,
"last_update": 1776351159,
"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": 34,
"language": "en",
"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/11138094");
$data = json_decode($json, true);
var_dump($data);