API dla A Shockbyte Rust Server
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 240,
"fps_avg": 235,
"entities_count": 8836,
"world_seed": 957678019,
"world_size": 1337,
"steam_id": 90286609586619420,
"domain": null,
"id": 11725509,
"ip": "203.16.163.104",
"port": 26958,
"query": 26959,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780605861,
"last_online": 1780645852,
"icon": null,
"name": "A Shockbyte Rust Server",
"connect": "203.16.163.104:26958",
"request": "203.16.163.104:26959",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1780388539,
"last_update": 1780645852,
"banned": false,
"wipe": 1780606027,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5909,
"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/11725509");
$data = json_decode($json, true);
var_dump($data);