API dla A new Gameserver powered by Host-Unlimited.de (v0.6.0.26518)
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286385087079434",
"domain": null,
"id": 11587408,
"ip": "193.135.10.48",
"port": 29115,
"query": 29116,
"color": 0,
"city": "Wolfsburg",
"description": null,
"game": 983870,
"owner": null,
"boosts": 1,
"last_offline": 1780561415,
"last_online": 1780171273,
"icon": null,
"name": "A new Gameserver powered by Host-Unlimited.de (v0.6.0.26518)",
"connect": "193.135.10.48:29115",
"request": "193.135.10.48:29116",
"map": "Procedural",
"gamemode": "Foundry",
"version": "0.6.0.26518",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779357451,
"last_update": 1780561415,
"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": 216,
"language": "de",
"parked": false,
"app": {
"id": 1516842,
"steam_id": 983870,
"name": "FOUNDRY",
"url": "foundry"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11587408");
$data = json_decode($json, true);
var_dump($data);