API dla \[GER\] Exdis 3x Server \[Password german\]
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286878053967891",
"domain": null,
"id": 9536895,
"ip": "134.255.232.28",
"port": 27000,
"query": 27001,
"project_id": null,
"color": 0,
"city": "Münster",
"description": null,
"game": 2646460,
"owner": null,
"boosts": 1,
"last_offline": 1781180074,
"last_online": 1781263864,
"icon": null,
"name": "\\[GER\\] Exdis 3x Server \\[Password german\\]",
"connect": "134.255.232.28:27000",
"request": "134.255.232.28:27001",
"map": "Level01_Main",
"gamemode": "00",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 70,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1750540392,
"last_update": 1781263864,
"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": 413,
"language": "de",
"parked": false,
"app": {
"id": 1625562,
"steam_id": 2646460,
"name": "Soulmask",
"url": "soulmask"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/9536895");
$data = json_decode($json, true);
var_dump($data);