Rust
API для [JP] 初心者練習用 solo/duo WIPE 4/18
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10261010json
{
"response": {
"fps": 60,
"fps_avg": 65,
"entities_count": 86558,
"world_seed": 1,
"world_size": 3700,
"steam_id": "90284754424087560",
"domain": null,
"id": 10261010,
"ip": "31.214.142.194",
"port": 26080,
"query": 26082,
"color": 0,
"city": "Tokyo",
"description": "Welcome to our Rust server!\r\nHere are the rules and features you should know:\r\n\r\nNo cheating or macro usage — offenders will be banned.\r\nNo political statements — keep the community friendly and fun.\r\nBuilding Skins available — use the command /bskin in chat to access and apply skins.\r\nEnjoy the thrill of online raids — fair fights, fair fun!\r\n\r\nJoin us, follow the rules, and enjoy your stay!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776476003,
"score": 0,
"last_online": 1776847219,
"icon": null,
"name": "[JP] 初心者練習用 solo/duo WIPE 4/18",
"connect": "31.214.142.194:26080",
"request": "31.214.142.194:26082",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 3,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1757057720,
"last_update": 1776847219,
"banned": false,
"wipe": 1776476339,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1878,
"language": "ja",
"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/10261010");
$data = json_decode($json, true);
var_dump($data);