API für 二次元小趴窝
JSON für Programme, Websites und mehr
text
json
{
"response": {
"steam_id": "85568392936227941",
"domain": null,
"id": 11664938,
"ip": "111.170.155.20",
"port": 39731,
"query": 39731,
"project_id": null,
"color": 0,
"city": "Shizishan",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780678464,
"last_online": 1780668667,
"icon": null,
"name": "二次元小趴窝",
"connect": "111.170.155.20:39731",
"request": "111.170.155.20:39731",
"map": "Russia",
"gamemode": "欢迎大家进来游玩OwO(目前正在测试中)",
"version": "3.26.3.1",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780179087,
"last_update": 1780678464,
"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": 2239,
"language": "zh",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11664938");
$data = json_decode($json, true);
var_dump($data);