Valheim
API für _Ulthre_
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/951362json
{
"response": {
"steam_id": "90274727149828107",
"domain": null,
"id": 951362,
"ip": "192.248.151.242",
"port": 2456,
"query": 2457,
"color": 0,
"city": "Poplar",
"description": "",
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1768641798,
"score": null,
"last_online": 1776432080,
"icon": null,
"name": "_Ulthre_",
"connect": "192.248.151.242:2456",
"request": "192.248.151.242:2457",
"map": "_Ulthre_",
"gamemode": null,
"version": "0.221.4",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684773414,
"last_update": 1776432080,
"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": 300,
"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/951362");
$data = json_decode($json, true);
var_dump($data);