API dla CLEVER RUST #1
JSON dla programów, stron i innych
text
json
{
"response": {
"oxide": true,
"modded": true,
"fps": 216,
"fps_avg": 215,
"entities_count": 53629,
"world_seed": 40039082,
"world_size": 3500,
"steam_id": "90286239998162972",
"domain": null,
"id": 11587942,
"ip": "145.239.149.165",
"port": 6666,
"query": 6666,
"color": 0,
"city": "Saarbrücken",
"description": "\nСервер с ?x рейтом добычи\r\nОграничение ? игроков в команде\r\n\r\n- ВКонтакте: vk.com/thecleverrust\r\n- Telegram: t.me/clever_rust\r\n- Discord: discord.gg/A3mdepbfmF",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779802412,
"last_online": 1780575632,
"icon": null,
"name": "CLEVER RUST #1",
"connect": "145.239.149.165:6666",
"request": "145.239.149.165:6666",
"map": "Procedural Map",
"gamemode": "Rust: Survival Mode",
"version": "2323",
"numplayers": 0,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779357521,
"last_update": 1780575632,
"banned": false,
"wipe": 1778423569,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5261,
"language": "de",
"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/11587942");
$data = json_decode($json, true);
var_dump($data);