API dla Polish Space Program
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286576803131393",
"domain": null,
"id": 11624376,
"ip": "185.46.246.160",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Zielona Góra",
"description": null,
"game": 244850,
"owner": null,
"boosts": 1,
"last_offline": 1780605861,
"last_online": 1780601502,
"icon": null,
"name": "Polish Space Program",
"connect": "185.46.246.160:27016",
"request": "185.46.246.160:27016",
"map": "Hop Hop Hop",
"gamemode": "Space Engineers",
"version": "1209024",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779916151,
"last_update": 1780605861,
"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": 3679,
"language": "pl",
"parked": false,
"app": {
"id": 97,
"steam_id": 244850,
"name": "Space Engineers",
"url": "space-engineers"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11624376");
$data = json_decode($json, true);
var_dump($data);