API dla RUSTANE 2X SOLO/DUO/TRIO︱JUST FULLWIPED 04/06
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 80084,
"world_seed": 237898434,
"world_size": 3750,
"steam_id": "90286604170100749",
"domain": null,
"id": 10470557,
"ip": "168.100.161.97",
"port": 28069,
"query": 28066,
"color": 0,
"city": "London",
"description": "\nWelcome to Rustane Solo/Duo/Trio 2x \r\nMax grouplimit 3 \r\nDiscord : https://discord.gg/y3GqkjJjvR\r\nWebsite : Rustane.net \r\n\r\nMapsize 3750 \r\n- 2x Gathering\r\n- 2x Components/Scrap\r\n- 2x Smelting/Crafting\r\n- Short Night times\r\n\r\nBi Weekly Wipes Every Monday at 18:00 (6pm) GMT",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780605030,
"icon": null,
"name": "RUSTANE 2X SOLO/DUO/TRIO︱JUST FULLWIPED 04/06",
"connect": "168.100.161.97:28069",
"request": "168.100.161.97:28066",
"map": "Rustane.net",
"gamemode": "Survival",
"version": "2627",
"numplayers": 4,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1760511069,
"last_update": 1780605030,
"banned": false,
"wipe": 1780596708,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2428,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10470557");
$data = json_decode($json, true);
var_dump($data);