API pentru Industrial Rust x2 | Nolimit
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 2349491,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "\nWelcome to SIENNA RUST server \r\n>Rates X3 \r\n>Stacks X3 (TC X9) \r\n>Group MAX5 \r\n>Vote for the next map in-game! \r\n>In-game SHOP + activity rewards \r\n>Kits for adding #SIENNA to your nickname \r\n>Play for 7 days - get VIP! \r\n\r\nДобро пожаловать на сервер SIENNA RUST \r\n>Рейты X3 \r\n>Стаки X3 (Шкаф X9) \r\n>Группа MAX5 \r\n>Голосование за следующую карту в игре! \r\n>Игровой SHOP + награды за активность \r\n>Kits за приписку к нику #SIENNA \r\n>Играй 7 дней - получай VIP!",
"game": 252490,
"owner": 87197,
"boosts": 1,
"last_offline": 1756334708,
"last_online": 1753563620,
"icon": null,
"name": "Industrial Rust x2 | Nolimit",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "FI",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1703867102,
"last_update": 1756334708,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13085,
"language": "fi",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "sienarust",
"avatar": "2bd2afe9-ea06-4091-b569-a560e1b3f4af.jpg"
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/2349491");
$data = json_decode($json, true);
var_dump($data);