API dla Rust Server
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 117,
"fps_avg": 115,
"entities_count": 15112,
"world_seed": 6738,
"world_size": 2000,
"steam_id": "90286227705155589",
"domain": null,
"id": 11607182,
"ip": "129.232.154.43",
"port": 28025,
"query": 28026,
"color": 0,
"city": "Cape Town",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780571021,
"last_online": 1779956532,
"icon": null,
"name": "Rust Server",
"connect": "129.232.154.43:28025",
"request": "129.232.154.43:28026",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779915498,
"last_update": 1780571021,
"banned": false,
"wipe": 1778012973,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12320,
"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/11607182");
$data = json_decode($json, true);
var_dump($data);