API dla JUST PLAY RUST
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 55,
"fps_avg": 56,
"entities_count": 100016,
"world_seed": 1,
"world_size": 4200,
"steam_id": "90286493006604312",
"domain": null,
"id": 5755722,
"ip": "156.236.84.195",
"port": 28005,
"query": 28006,
"color": 0,
"city": "City of London",
"description": "How good are you? \r\nEvents running are Raidable bases, Military Airfield, \r\n Active NPC driving the roads, RP Police, \r\n Cargo plane Event. \r\n great loot opportunity events. \r\n Commands /kit /skin /bgrade",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780346053,
"last_online": 1780579236,
"icon": null,
"name": "JUST PLAY RUST",
"connect": "156.236.84.195:28005",
"request": "156.236.84.195:28006",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1724092109,
"last_update": 1780579236,
"banned": false,
"wipe": 1778772261,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2810,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"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/5755722");
$data = json_decode($json, true);
var_dump($data);