API для The Working Class | 2X | Solo Only | Raid Hours | Wiped 5/28 |
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 82509,
"world_seed": 1,
"world_size": 3300,
"steam_id": "90286589634554887",
"domain": null,
"id": 1204602,
"ip": "104.129.132.49",
"port": 28129,
"query": 28126,
"color": 0,
"city": "Dallas",
"description": "\nWant to have a life and play Rust? Are you stuck at work knowing that some little punk is off-lining you? Does your wife, husband, or partner hate this game?\n\nThis server is aimed at those of us who can't dedicate their lives to Rust. \n- Raiding is only allowed between 6PM-12AM EST (7PM-1AM AST).\n- Tier 1 and Elec BPs Unlocked\n- Reduced upkeep, Safe Zone Recyclers Etc. Check /info in game!\n- Weekly map wipes, and Monthly BP wipes (On Force Wipe).\n- No pay2win kits or plugins, everyone has the same access.\n- Custom generated maps.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780394654,
"last_online": 1780588230,
"icon": null,
"name": "The Working Class | 2X | Solo Only | Raid Hours | Wiped 5/28 |",
"connect": "104.129.132.49:28129",
"request": "104.129.132.49:28126",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1691954559,
"last_update": 1780588230,
"banned": false,
"wipe": 1779991537,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2659,
"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/1204602");
$data = json_decode($json, true);
var_dump($data);