API dla Niggas in Space
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90286325040726030,
"domain": null,
"id": 11660930,
"ip": "194.140.197.88",
"port": 28300,
"query": 28300,
"color": 0,
"city": "Orangeburg",
"description": null,
"game": 244850,
"owner": null,
"boosts": 1,
"last_offline": 1780178485,
"last_online": 1780605787,
"icon": null,
"name": "Niggas in Space",
"connect": "194.140.197.88:28300",
"request": "194.140.197.88:28300",
"map": null,
"gamemode": "Space Engineers",
"version": "1209024",
"numplayers": 0,
"maxplayers": 0,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780178485,
"last_update": 1780605787,
"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": 2864,
"language": "en",
"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/11660930");
$data = json_decode($json, true);
var_dump($data);