API dla Diggy Diggy Bang Bang
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90287002175932434",
"domain": null,
"id": 11668797,
"ip": "46.110.70.68",
"port": 41013,
"query": 41013,
"project_id": null,
"color": 0,
"city": "Des Moines",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1781385248,
"last_online": 1781592143,
"icon": null,
"name": "Diggy Diggy Bang Bang",
"connect": "46.110.70.68:41013",
"request": "46.110.70.68:41013",
"map": "East Sawahu Valley",
"gamemode": "7 Days To Die",
"version": "01.01.04",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780180344,
"last_update": 1781592143,
"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": 8253,
"language": "en",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11668797");
$data = json_decode($json, true);
var_dump($data);