API dla A Shockbyte Rust Server
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 42,
"fps_avg": 41,
"entities_count": 10297,
"world_seed": 50000,
"world_size": 1500,
"steam_id": "90286098732654609",
"domain": null,
"id": 11511885,
"ip": "15.204.152.121",
"port": 22912,
"query": 22913,
"color": 0,
"city": "Reston",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780563821,
"last_online": 1780021241,
"icon": null,
"name": "A Shockbyte Rust Server",
"connect": "15.204.152.121:22912",
"request": "15.204.152.121:22913",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779353867,
"last_update": 1780563821,
"banned": false,
"wipe": 1778977722,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11974,
"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/11511885");
$data = json_decode($json, true);
var_dump($data);