Rust
API для [EU] Grimlands.eu - Long | Monthly
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10699187json
{
"response": {
"fps": 49,
"fps_avg": 48,
"entities_count": 129963,
"world_seed": 287800989,
"world_size": 4750,
"steam_id": "90284798474766363",
"domain": null,
"id": 10699187,
"ip": "94.254.104.145",
"port": 28031,
"query": 28032,
"color": 0,
"city": "Älvsbyn",
"description": "*** Welcome to Grimlands ***\r\n The European Rust Community - Long Cycle Server\r\n \r\n Server: Long (Vanilla)\r\n Map Size: 4750\r\n Max Population: 200\r\n \r\n → Wipe Schedule:\r\n • Map wipe: First Thursday of the month @ 16:00 CET / 17:00 CEST (forced wipe)\r\n • Blueprint wipe: First Thursday of each month (forced wipe)\r\n \r\n → Rules:\r\n • No racism, sexism, hate speech or harassment\r\n • No cheating, exploiting or game-breaking behavior\r\n • Respect other players and the community\r\n • Play fair - toxic behavior is not tolerated\r\n \r\n x Breaking the rules = ban, no exceptions\r\n \r\n *** Build long-term, survive long-term - Welcome to Grimlands Long ***",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776835397,
"score": 0,
"last_online": 1776878423,
"icon": null,
"name": "[EU] Grimlands.eu - Long | Monthly",
"connect": "94.254.104.145:28031",
"request": "94.254.104.145:28032",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 2,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "SE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1765122708,
"last_update": 1776878423,
"banned": false,
"wipe": 1775153976,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4241,
"language": "sv",
"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/10699187");
$data = json_decode($json, true);
var_dump($data);