Rust
API для [GNG] WORLD PVE |Raiding|Quests|Events|Skills|Cultists
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/1874607json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 69758,
"world_seed": 1337,
"world_size": 5800,
"steam_id": "90285024814301210",
"domain": null,
"id": 1874607,
"ip": "208.73.203.30",
"port": 7785,
"query": 7786,
"color": 0,
"city": "Secaucus",
"description": "![[GNG] WORLD PVE |Raiding|Quests|Events|Skills|Cultists](https://i.imgur.com/xw3UhcY.png)\n➡Welcome to GNG World PVE - A Challenging Post-Apocalyptic Experience⬅\r\nJoin us at www.greatnorthgaming.com\r\n\r\nFeatures\r\nRaidable Bases|Skill Tree|Quests|Raidal Menu|Better NPC|Duelist\r\n\r\nReason to Play \r\n ♥ Monthly Map Updates ♥ Weekly Events ♥ Giveaways ♥ Active Community ♥\r\n\r\nBeware, there are no modular car spawns; all must be bought from the gas stations, which are protected by NPCs during the day. At night, they are patrolled by cultists.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776426223,
"score": null,
"last_online": 1777324223,
"icon": null,
"name": "[GNG] WORLD PVE |Raiding|Quests|Events|Skills|Cultists",
"connect": "208.73.203.30:7785",
"request": "208.73.203.30:7786",
"map": "by klauz24",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 88,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1700406667,
"last_update": 1777324223,
"banned": false,
"wipe": 1775170828,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2862,
"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/1874607");
$data = json_decode($json, true);
var_dump($data);