API dla ClubRetro-| SOLO/DUO/TRIO | SEASONAL THEMES | NO BP WIPES | 6/4
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 186,
"fps_avg": 192,
"entities_count": 70506,
"world_seed": 1485588084,
"world_size": 3750,
"steam_id": "90286604922027030",
"domain": null,
"id": 11502620,
"ip": "104.128.50.77",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Chicago",
"description": "Welcome to our Vanillaish mashup server. Each force wipe brings a seasonal theme check discord for details! Extended Workbench Range, 50% TC Upkeep, Offline Raid Protection, Junk loot removed and Improved loot tables. Raidable bases, Roaming NPC's and some PVE events for some added fun! Great for people just getting into rust and wanting to learn how to play. Updating and improving server play daily",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780600230,
"icon": null,
"name": "ClubRetro-| SOLO/DUO/TRIO | SEASONAL THEMES | NO BP WIPES | 6/4",
"connect": "104.128.50.77:28015",
"request": "104.128.50.77:28016",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 1,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1779207206,
"last_update": 1780600230,
"banned": false,
"wipe": 1780596806,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2242,
"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/11502620");
$data = json_decode($json, true);
var_dump($data);