API dla R4N Development server
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 215,
"fps_avg": 209,
"entities_count": 43683,
"world_seed": 1234,
"world_size": 3000,
"steam_id": "90286244713708568",
"domain": null,
"id": 11606411,
"ip": "82.153.70.122",
"port": 28015,
"query": 28017,
"color": 0,
"city": "City of London",
"description": "\nWelcome to Rust4Noobs! \r\nLooking for a place to learn/chill out, hop on! \r\n \r\n Info: \r\n - Monthly map wipes (force wipe). \r\n - Blueprints DO NOT wipe. \r\n - Team limit <> . \r\n - VIP perks available @4noobs.co \r\n \r\n Rules: \r\n - No greifing. \r\n - No teaming. \r\n - Dont be an ass. \r\n \r\n Have fun!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780565617,
"last_online": 1780012225,
"icon": null,
"name": "R4N Development server",
"connect": "82.153.70.122:28015",
"request": "82.153.70.122:28017",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779915470,
"last_update": 1780565617,
"banned": false,
"wipe": 1779703469,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12108,
"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/11606411");
$data = json_decode($json, true);
var_dump($data);