API dla RustPlace Romania Vanilla [FullWiped 4/6]
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 82418,
"world_seed": 1337,
"world_size": 3700,
"steam_id": "90286603705536543",
"domain": null,
"id": 11260058,
"ip": "148.251.2.146",
"port": 28022,
"query": 28021,
"color": 0,
"city": "Falkenstein",
"description": "![RustPlace Romania Vanilla [FullWiped 4/6]](https://www.rustplace.ro/img/rpl.jpg)\nWelcome on RustPlace Romania Vanilla!\r\n\r\n Biweekly map wipe, full wipe every month.\r\n Commands: !wipe, !pop\r\n \r\n Map Size: ~4k\r\n Team UI: 8\r\n Language: RO/EN\r\n \r\n Join our Discord for wipe notification and servers info:\r\n Discord: https://discord.gg/TQApYSC\r\n\r\n Have fun!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779955373,
"last_online": 1780603833,
"icon": null,
"name": "RustPlace Romania Vanilla [FullWiped 4/6]",
"connect": "148.251.2.146:28022",
"request": "148.251.2.146:28021",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 250,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774555186,
"last_update": 1780603833,
"banned": false,
"wipe": 1780595149,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4174,
"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/11260058");
$data = json_decode($json, true);
var_dump($data);