API dla Rusty Oasis
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 122,
"fps_avg": 134,
"entities_count": 117602,
"world_seed": 1,
"world_size": 4500,
"steam_id": "90286600991696896",
"domain": null,
"id": 10280028,
"ip": "144.48.104.42",
"port": 28055,
"query": 28057,
"color": 0,
"city": "Chicago",
"description": "PvE, Friendly, Kits, Grid Power, X Loot, Lots to see!\r\nPowered by WeOxide Hosting\r\nBot Hosting\r\nGame Server",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780594464,
"last_online": 1780591830,
"icon": null,
"name": "Rusty Oasis",
"connect": "144.48.104.42:28055",
"request": "144.48.104.42:28057",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1757341174,
"last_update": 1780594464,
"banned": false,
"wipe": 1780588849,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10317,
"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/10280028");
$data = json_decode($json, true);
var_dump($data);