Rust
API для Rustafied.com - US Low Pop
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/1204574json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 243643,
"world_seed": 2145451132,
"world_size": 4000,
"steam_id": "90284172529087519",
"domain": null,
"id": 1204574,
"ip": "104.129.132.137",
"port": 28015,
"query": 28018,
"color": 0,
"city": "Dallas",
"description": "\nMonthly BP + Map Wipe @ Force Wipe First Thursday @ 2PM EST / 19:00 London \r\n\r\n - Player portal: https://my.rustafied.com (server info, map voting, banlist, and more) \r\n - Store: https://rustafied.com/store \r\n - Support: https://rustafied.com/support \r\n - Discord: https://discord.gg/rustafied",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775194329,
"score": null,
"last_online": 1775878809,
"icon": null,
"name": "Rustafied.com - US Low Pop",
"connect": "104.129.132.137:28015",
"request": "104.129.132.137:28018",
"map": "Rustafied Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 147,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 109,
"add_date": 1691954551,
"last_update": 1775878809,
"banned": false,
"wipe": 1775151222,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 109,
"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/1204574");
$data = json_decode($json, true);
var_dump($data);