Rust
API для [IND] ZYRRONIX | WEEKLY
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10922464json
{
"response": {
"fps": 213,
"fps_avg": 211,
"entities_count": 119799,
"world_seed": 797495034,
"world_size": 4500,
"steam_id": "90284749404010512",
"domain": null,
"id": 10922464,
"ip": "148.113.3.216",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Mumbai",
"description": "Hosted by Shockbyte\r\nWeekly Map Wipe 100% Vanilla Settings Low Ping for India & SEA Active and Fair Admins No Pay-to-Win Server Features Pure Survival Experience Competitive PvP and Raiding Solo, Duo, and Clan Friendly Fast Admin Support Stable Performance and Optimized Hardware Rules No Cheating, Scripts, or Exploits No Racism or Hate Speech No Admin Abuse Respect All Players Play Fair Grind hard. Build smart. Defend everything. Rust the way it was meant to be played.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776796398,
"score": 0,
"last_online": 1776855020,
"icon": null,
"name": "[IND] ZYRRONIX | WEEKLY",
"connect": "148.113.3.216:28015",
"request": "148.113.3.216:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 125,
"bots": 0,
"secured": true,
"private": false,
"country": "IN",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768476950,
"last_update": 1776855020,
"banned": false,
"wipe": 1776333916,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4311,
"language": "hi",
"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/10922464");
$data = json_decode($json, true);
var_dump($data);