Project Zomboid
API für The Kingdom
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10763700json
{
"response": {
"steam_id": "90284391506382874",
"domain": null,
"id": 10763700,
"ip": "89.34.97.3",
"port": 17456,
"query": 17456,
"color": 0,
"city": "City of London",
"description": "Survival time",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1776798801,
"score": 0,
"last_online": 1776792022,
"icon": null,
"name": "The Kingdom",
"connect": "89.34.97.3:17456",
"request": "89.34.97.3:17456",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.15",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1766260937,
"last_update": 1776798801,
"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": 6009,
"language": "en",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/10763700");
$data = json_decode($json, true);
var_dump($data);