API dla Odins Dorn im Auge
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90283920297683975",
"domain": null,
"id": 11531281,
"ip": "170.23.138.87",
"port": 20681,
"query": 20682,
"project_id": null,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1780690415,
"last_online": 1779895278,
"icon": null,
"name": "Odins Dorn im Auge",
"connect": "170.23.138.87:20681",
"request": "170.23.138.87:20682",
"map": "Odins Dorn im Auge",
"gamemode": null,
"version": "0.221.12",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779355105,
"last_update": 1780690415,
"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": 10524,
"language": "de",
"parked": false,
"app": {
"id": 34967,
"steam_id": 892970,
"name": "Valheim",
"url": "valheim"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11531281");
$data = json_decode($json, true);
var_dump($data);