Rust
API для [US] Upsurge Main | 3x Vanilla | 5/8
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10741144json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 243293,
"world_seed": 411144916,
"world_size": 3950,
"steam_id": "90285533519872024",
"domain": null,
"id": 10741144,
"ip": "205.234.243.2",
"port": 28010,
"query": 28015,
"color": 0,
"city": "Chicago",
"description": "![[US] Upsurge Main | 3x Vanilla | 5/8](https://cdn.rustlegends.com/upsurge_banner_main-min.png)\nWiped twice weekly on Tuesday and Friday at 5PM ET with the following modifications:\r\n- 3x Gather rates\r\n- Half Craft & Smelt\r\n- Low tier blueprints unlocked (Wiped monthly)\r\n\r\nCheck out http://upsurgerust.com for more information and queue skip!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778177585,
"score": 0,
"last_online": 1778356812,
"icon": null,
"name": "[US] Upsurge Main | 3x Vanilla | 5/8",
"connect": "205.234.243.2:28010",
"request": "205.234.243.2:28015",
"map": "Wiped 23 hours ago",
"gamemode": "Survival",
"version": "2625",
"numplayers": 277,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 108,
"add_date": 1766250800,
"last_update": 1778356812,
"banned": false,
"wipe": 1778273881,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 159,
"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/10741144");
$data = json_decode($json, true);
var_dump($data);