API dla [SEA] tRust SG PvE Monthly Vanilla
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 186865,
"world_seed": 736674024,
"world_size": 5000,
"steam_id": "90286574151794706",
"domain": null,
"id": 11596762,
"ip": "103.107.199.231",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Singapore",
"description": "[SEA] tRust SG PvE Monthly Vanilla\r\nMonthly, forced wipes only - Community, unmodded, vanilla Rust - with rules\r\nRules:\r\nNO Killing (No PvP) except oilrigs/underwater labs/deep sea/self defence\r\nNO Raiding\r\nNO Stealing\r\nNO Cheating\r\nSecure your base - No Twig - upgrade!\r\nMax one car per person, one tug per group, no hoarding.\r\nEnjoy\r\n\r\nThis too easy for you? Want something hardcore? Check [SEA] tRust SG Premium Hardcore PvE Monthly\r\n\r\nDiscord: https://discord.gg/FpFyKbj (or click website button)",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780526068,
"last_online": 1780570825,
"icon": null,
"name": "[SEA] tRust SG PvE Monthly Vanilla",
"connect": "103.107.199.231:28015",
"request": "103.107.199.231:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 8,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 66,
"add_date": 1779358598,
"last_update": 1780570825,
"banned": false,
"wipe": 1778176311,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 637,
"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/11596762");
$data = json_decode($json, true);
var_dump($data);