Project Zomboid
API für Project Don't Die
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11324036json
{
"response": {
"steam_id": 90285620988750860,
"domain": null,
"id": 11324036,
"ip": "173.240.157.44",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Atlanta",
"description": "For the homies",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775961712,
"score": 0,
"last_online": 1778529741,
"icon": null,
"name": "Project Don't Die",
"connect": "173.240.157.44:25565",
"request": "173.240.157.44:25565",
"map": "map_distanciado;rvupdate;rv2;AZ",
"gamemode": "Project Zomboid",
"version": "42.18",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774594056,
"last_update": 1778529741,
"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": 2151,
"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/11324036");
$data = json_decode($json, true);
var_dump($data);