Rust
API для [BBB].[N00B].[1]PVE.Friendly.Players
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11260596json
{
"response": {
"steam_id": "90284747654970375",
"domain": null,
"id": 11260596,
"ip": "85.228.48.20",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Upplands Vasby",
"description": "PVE players cant loot houses or kill other players, but animals are dangerous and so dont sleep in open ! Practice building, shooting NPC, looting monuments and dont forget to have fun. No wolfs NO PVP !",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776375821,
"score": 0,
"last_online": 1776874221,
"icon": null,
"name": "[BBB].[N00B].[1]PVE.Friendly.Players",
"connect": "85.228.48.20:28015",
"request": "85.228.48.20:28017",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2623",
"numplayers": 1,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "SE",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1774555197,
"last_update": 1776874221,
"banned": false,
"wipe": 1775168226,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1848,
"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/11260596");
$data = json_decode($json, true);
var_dump($data);