Valheim
API für DawnPatrolGaming
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/3815269json
{
"response": {
"steam_id": "90284728462358537",
"domain": null,
"id": 3815269,
"ip": "54.39.28.211",
"port": 12456,
"query": 12457,
"color": 0,
"city": "Beauharnois",
"description": "",
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1776759202,
"score": 0,
"last_online": 1776806503,
"icon": null,
"name": "DawnPatrolGaming",
"connect": "54.39.28.211:12456",
"request": "54.39.28.211:12457",
"map": "DawnPatrolGaming",
"gamemode": null,
"version": "0.221.12",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1712947496,
"last_update": 1776806503,
"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": 1014,
"language": "en",
"parked": false,
"app": {
"id": 34967,
"steam_id": 892970,
"name": "Valheim",
"url": "valheim"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/3815269");
$data = json_decode($json, true);
var_dump($data);