API для Rust4Noobs | Main | Softcore 50% Monthly | No BP Wipe
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 58,
"fps_avg": 58,
"entities_count": 120488,
"world_seed": 1337,
"world_size": 3750,
"steam_id": "90286577676969984",
"domain": null,
"id": 9527501,
"ip": "141.98.157.191",
"port": 28015,
"query": 28017,
"color": 0,
"city": "City of London",
"description": "\n**Welcome to Rust4Noobs!**\r\nLooking for a place to learn or just chill? You're in the right spot!\r\n\r\nServer Info:\r\n- Monthly map wipes (force wipe)\r\n- Blueprints **do not** wipe\r\n- Team limit: 6\r\n- VIP perks available at 4noobs.co\r\n\r\nRules:\r\n1. No griefing\r\n2. No teaming beyond the limit\r\n3. No racism, hate speech, or harassment\r\n4. No exploiting or cheating\r\n5. Don't be an ass\r\n\r\nPlay fair, have fun, and help new players enjoy the game!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780493041,
"last_online": 1780570227,
"icon": null,
"name": "Rust4Noobs | Main | Softcore 50% Monthly | No BP Wipe",
"connect": "141.98.157.191:28015",
"request": "141.98.157.191:28017",
"map": "discord.gg/r4n",
"gamemode": "Softcore",
"version": "2625",
"numplayers": 2,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1750537929,
"last_update": 1780570227,
"banned": false,
"wipe": 1778175861,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1315,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9527501");
$data = json_decode($json, true);
var_dump($data);