API dla RUSTON.com [ Vanilla ] WIPED 31.05
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 215,
"fps_avg": 213,
"entities_count": 211775,
"world_seed": 1111517765,
"world_size": 4500,
"steam_id": "90286404427712542",
"domain": null,
"id": 11644727,
"ip": "89.35.130.89",
"port": 20057,
"query": 10057,
"color": 0,
"city": "Frankfurt am Main",
"description": "![RUSTON.com [ Vanilla ] WIPED 31.05](https://i.ibb.co/ZRz0QBhy/sb0-NZp-C9-Xoycl-WCi-BPp-LOQ2k.png)\n\n - Welcome to RUSTON.com \n\n - Map wipes every Tuesday 14:00 CEST \n - Fullwipes every 4 weeks at Saturday 14:00 CEST \n - Half smelt and crafting speeds \n - 5min nights \n - Fishing Village and Large Barn with Recycler \n - write /help for all commands \n - no Kits, no TP and no P2W! \n\n Admins do not play or interfere with gameplay.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780570415,
"last_online": 1780229420,
"icon": null,
"name": "RUSTON.com [ Vanilla ] WIPED 31.05",
"connect": "89.35.130.89:20057",
"request": "89.35.130.89:10057",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780177434,
"last_update": 1780570415,
"banned": false,
"wipe": 1780214512,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12472,
"language": "de",
"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/11644727");
$data = json_decode($json, true);
var_dump($data);