API dla Mal & friends
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286555688975387",
"domain": null,
"id": 10786180,
"ip": "141.126.147.64",
"port": 17787,
"query": 25033,
"color": 0,
"city": "Cambridge",
"description": null,
"game": 1149460,
"owner": null,
"boosts": 1,
"last_offline": 1780056828,
"last_online": 1780596730,
"icon": null,
"name": "Mal & friends",
"connect": "141.126.147.64:17787",
"request": "141.126.147.64:25033",
"map": null,
"gamemode": "Icarus",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766873322,
"last_update": 1780596730,
"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": 1493,
"language": "en",
"parked": false,
"app": {
"id": 1600891,
"steam_id": 1149460,
"name": "Icarus",
"url": "icarus"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10786180");
$data = json_decode($json, true);
var_dump($data);