Rust
API для Rustopia.gg - US Medium
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/8297897json
{
"response": {
"fps": 40,
"fps_avg": 39,
"entities_count": 213898,
"world_seed": 2132,
"world_size": 4400,
"steam_id": 90284353385784350,
"domain": null,
"id": 8297897,
"ip": "94.103.187.4",
"port": 28015,
"query": 28010,
"color": 0,
"city": "Chicago",
"description": "\nMap Wipe - Every 2 Weeks\r\nBPs Wipe - Monthly\r\n\r\nSkip the Queue | Visit Shop.Rustopia.gg\r\n\r\nJoin our community to get updates, support, giveaways, and more at Discord.gg/Rustopia\r\n\r\nOur server rules can be found at Rustopia.gg",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1772736743,
"score": 0,
"last_online": 1776204612,
"icon": null,
"name": "Rustopia.gg - US Medium",
"connect": "94.103.187.4:28015",
"request": "94.103.187.4:28010",
"map": "Rustopia Mapping",
"gamemode": "Survival",
"version": "2623",
"numplayers": 65,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 79,
"add_date": 1743250345,
"last_update": 1776204612,
"banned": false,
"wipe": 1775152657,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 451,
"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/8297897");
$data = json_decode($json, true);
var_dump($data);