Rust
API для Intoxicated ZA Vanilla 1 - 16 Apr - Fresh wipe
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/211931json
{
"response": {
"fps": 202,
"fps_avg": 196,
"entities_count": 113023,
"world_seed": 106543025,
"world_size": 3600,
"steam_id": "85568392924810508",
"domain": null,
"id": 211931,
"ip": "129.232.149.98",
"port": 27101,
"query": 27101,
"color": 0,
"city": "Cape Town",
"description": "",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776288714,
"score": null,
"last_online": 1776877836,
"icon": null,
"name": "Intoxicated ZA Vanilla 1 - 16 Apr - Fresh wipe",
"connect": "129.232.149.98:27101",
"request": "129.232.149.98:27101",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 23,
"maxplayers": 120,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": true,
"votes": 0,
"points": 37,
"add_date": 1582845186,
"last_update": 1776877836,
"banned": false,
"wipe": 1776353112,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5459,
"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/211931");
$data = json_decode($json, true);
var_dump($data);