API dla BTF LAUNCH RUST X100000
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 4984793,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "![gm.link/u74915 HarstyRust:[X2|Duo|TP|KITS|Trade]](https://i.postimg.cc/7Y9kF2nP/image.png)\n★HarstyRust★\r\n•/sethome, /tpr, /kits, /trade, /remove\r\n • Рейт на добычу ресурсов x2 \r\n • Увеличенные стаки \r\n • Активная администрация\r\n ★ Discord https://discord.gg/N3C5uAF3",
"game": 252490,
"owner": 74915,
"boosts": 1,
"last_offline": 1750457066,
"last_online": 1743994261,
"icon": null,
"name": "BTF LAUNCH RUST X100000",
"connect": null,
"request": null,
"map": "Custom Map",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1720204241,
"last_update": 1750457066,
"banned": false,
"wipe": 1743938594,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13106,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "k0nby",
"avatar": "31091a0a-82ff-4b79-8bc6-72c583be696e.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/4984793");
$data = json_decode($json, true);
var_dump($data);