Rust
API для Rustic Nights
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11412793json
{
"response": {
"fps": 59,
"fps_avg": 59,
"entities_count": 68956,
"world_seed": 1336991078,
"world_size": 3500,
"steam_id": "90285649947973646",
"domain": null,
"id": 11412793,
"ip": "104.143.2.11",
"port": 28026,
"query": 28027,
"color": 0,
"city": "Toronto",
"description": "\n3 hour days - 1.5 hour nights \r\n10x resources \r\nUp to 5x loot \r\nPlugins list \r\nAuto Doors\r\nLoot++ \r\nBuilding Grades \r\nBuilding Skins \r\nFurnace Splitter \r\nInstant Craft \r\nKits \r\nPowerless Electronics \r\nQuick Smelt \r\nFast Recycler \r\nRemover Tool \r\nSign Artist \r\nSort Button \r\nMy Mini \r\nExtended Workbench Range",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778184784,
"score": 0,
"last_online": 1778596224,
"icon": null,
"name": "Rustic Nights",
"connect": "104.143.2.11:28026",
"request": "104.143.2.11:28027",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 25,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774599017,
"last_update": 1778596224,
"banned": false,
"wipe": 1778184691,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4682,
"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/11412793");
$data = json_decode($json, true);
var_dump($data);