API dla RustyDuos 3X Solo/Duo
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 117,
"fps_avg": 116,
"entities_count": 49038,
"world_seed": 4167728343,
"world_size": 3000,
"steam_id": "90286639402371091",
"domain": null,
"id": 10571327,
"ip": "198.73.57.80",
"port": 28035,
"query": 28037,
"project_id": null,
"color": 0,
"city": "Clifton",
"description": "Solo/Duo\r\n3X Rates\r\nMonthly Resets\r\n 3pm 1st Thursday Each Month\r\nQoL Improvements\r\n50% Upkeep\r\nNo Radiaton\r\n5 Min Locked Crates\r\n/Bgrade/Remove\r\nT1 BP Unlocked\r\nShared BP's",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780696834,
"icon": null,
"name": "RustyDuos 3X Solo/Duo",
"connect": "198.73.57.80:28035",
"request": "198.73.57.80:28037",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1762847048,
"last_update": 1780696834,
"banned": false,
"wipe": 1780596391,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3978,
"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/10571327");
$data = json_decode($json, true);
var_dump($data);