Valheim
API für Nya Laggsta
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/3948451json
{
"response": {
"steam_id": "90282658916207622",
"domain": null,
"id": 3948451,
"ip": "158.179.203.245",
"port": 2456,
"query": 2457,
"color": 0,
"city": "Stockholm",
"description": "",
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1773055885,
"score": 0,
"last_online": 1776451884,
"icon": null,
"name": "Nya Laggsta",
"connect": "158.179.203.245:2456",
"request": "158.179.203.245:2457",
"map": "Nya Laggsta",
"gamemode": null,
"version": "0.218.15",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": true,
"country": "SE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1713948708,
"last_update": 1776451884,
"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": 1120,
"language": "sv",
"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/3948451");
$data = json_decode($json, true);
var_dump($data);