Rust
API для Kris P2E PvE | Earn $KRIS
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/9662659json
{
"response": {
"fps": 204,
"fps_avg": 203,
"entities_count": 98686,
"world_seed": 1104763693,
"world_size": 4250,
"steam_id": "90284790349115413",
"domain": null,
"id": 9662659,
"ip": "146.59.52.112",
"port": 28015,
"query": 27017,
"color": 0,
"city": "Warsaw",
"description": "\nWelcome to Kris P2E Rust, a 2x weekly wipe Play2Earn server where you can earn $KRIS while surviving, raiding, and building, with fair rewards, custom plugins, and an active community.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776326512,
"score": 0,
"last_online": 1776839418,
"icon": null,
"name": "Kris P2E PvE | Earn $KRIS",
"connect": "146.59.52.112:28015",
"request": "146.59.52.112:27017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1751634330,
"last_update": 1776839418,
"banned": false,
"wipe": 1775152736,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3340,
"language": "pl",
"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/9662659");
$data = json_decode($json, true);
var_dump($data);