API dla BlackWolfx26
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90286612394427410,
"domain": null,
"id": 11620837,
"ip": "178.25.22.145",
"port": 8781,
"query": 27060,
"project_id": null,
"color": 0,
"city": "Braunschweig",
"description": null,
"game": 2646460,
"owner": null,
"boosts": 1,
"last_offline": 1781227982,
"last_online": 1780681899,
"icon": null,
"name": "BlackWolfx26",
"connect": "178.25.22.145:8781",
"request": "178.25.22.145:27060",
"map": "DLC_Level01_Main",
"gamemode": "00",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779916041,
"last_update": 1781227982,
"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": 5712,
"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/11620837");
$data = json_decode($json, true);
var_dump($data);