API dla Natsukashii Days NetWork
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "85568392935717939",
"domain": null,
"id": 11664972,
"ip": "66.51.96.68",
"port": 27000,
"query": 27000,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780542210,
"last_online": 1780283010,
"icon": "https://media.discordapp.net/attachments/1339427042441035786/1493138693966401628/Natsuakii_days_newwork.jpg?ex=69f64505&is=69f4f385&hm=46085aaf88934743b8bd847c26a0ce518a1edd3096adf4cd5caadf369aebc7de&=&format=webp&width=960&height=960",
"name": "Natsukashii Days NetWork",
"connect": "66.51.96.68:27000",
"request": "66.51.96.68:27000",
"map": "California2",
"gamemode": "PineHosting.com",
"version": "3.26.3.2",
"numplayers": 0,
"maxplayers": 18,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780179087,
"last_update": 1780542210,
"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": 2344,
"language": "en",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11664972");
$data = json_decode($json, true);
var_dump($data);