HumanitZ
[DE/GER/PVE] Couch-Potatoes 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11182082json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11182082,
"ip": "157.90.68.86",
"port": 7778,
"query": 7778,
"color": 0,
"city": "Falkenstein",
"description": "[{\"id\":\"V-OoJBymL9\",\"type\":\"paragraph\",\"data\":{\"text\":\"Seid gegrüßt! \\n\\nBei uns könnt ihr einfach lag- und damit auch stressfrei datteln. \\n\\nDafür sorgt ein Dedicated Server vom Typ EX44 der Firma HEZNER \\n\\nBei Fragen schreibt uns einfach ingame an oder nutzt den Discord: \\n\\nhttps://discord.com/invite/w3vNj6nqSp\\n\\n\\n\\nServereinstellungen aktuell: \\n\\n\"}},{\"id\":\"0xRvULhHyn\",\"type\":\"list\",\"data\":{\"style\":\"unordered\",\"meta\":{},\"items\":[{\"content\":\"Drop bei Tod: Rucksack und Waffe Airdrop: Täglich Loot Respawn: 60 Minuten Loot Seltenheit: Standard Zombies: Einfach Zombie-Respawn: 120 Minuten Bösewichter: Schwer Bösewicht-Respawn: 90 Minuten Tage pro Jahreszeit: 5 Anzahl Fahrzeuge: 4 Zeitraffer durch Schlaf: Aktiv ## Restarts (UTC) 00:00 Uhr 06:00 Uhr 12:00 Uhr 18:00 Uhr\",\"meta\":{},\"items\":[]}]}}]",
"game": 1766060,
"owner": 172490,
"boosts": 1,
"last_offline": 1775721744,
"score": 5,
"last_online": 1776431409,
"icon": null,
"name": "[DE/GER/PVE] Couch-Potatoes",
"connect": "157.90.68.86:7778",
"request": "157.90.68.86:7778",
"map": "Main Map",
"gamemode": null,
"version": null,
"numplayers": 4,
"maxplayers": 24,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": true,
"votes": 26,
"points": 140,
"add_date": 1772305557,
"last_update": 1776431409,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3,
"language": "de",
"parked": false,
"app": {
"id": 1531516,
"steam_id": 1766060,
"name": "HumanitZ",
"url": "humanitz"
},
"server_owner": {
"username": "ps_kranker",
"avatar": "no.jpg",
"last_online": 1775465201
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11182082");
$data = json_decode($json, true);
var_dump($data);