API для Fated ZA 2x | Sunday Wipes
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792024029,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "145.241.99.70:28015",
"country": "ZA",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18252492,
"ip": "145.241.99.70",
"language": "en",
"last_update": 1792181590,
"map": "Procedural Map",
"maxplayers": 100,
"name": "Fated ZA 2x | Sunday Wipes",
"numplayers": 1,
"official": null,
"points": 60,
"port": 28015,
"private": false,
"project_id": null,
"pve": 0,
"pvp": null,
"query": 28017,
"request": "145.241.99.70:28017",
"secured": true,
"status": true,
"steam_id": "90295024085488655",
"version": "2634",
"votes": 0,
"wipe": 1792109390,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Йоханнесбург",
"description": "Fated ZA 2x - SA server, light mods, 2x gather and loot, wipes every Sunday",
"disabled_modules": [],
"gamemode": "Survival",
"hidden": false,
"last_offline": 1792157726,
"last_online": 1792181590,
"list_hidden": false,
"map_url": "procedural_map_4000_seed_617149380_r289",
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 10085,
"wipe_period": null,
"fps": 140,
"gmn": "rust",
"url": "",
"hash": "5352bad6",
"build": "167781",
"gc_cl": "111",
"gc_mb": "2188",
"fps_avg": 140,
"ram_sys": "0",
"map_kind": "procedural",
"map_name": "Procedural Map",
"map_seed": 617149380,
"map_size": 4000,
"logoimage": "",
"listentype": "d",
"environment": "w",
"headerimage": "1",
"a2s_protocol": 17,
"map_revision": 289,
"queueplayers": 0,
"map_image_url": "https://files.facepunch.com/rust/map-images/f4c73ace9d125e639ffc6b12727bd435b9b1761cf9a47007bbc8d394f5e6ccf0/proceduralmap.4000.1792109363936.289_f4c73ace9d125e639ffc6b12727bd435.jpg",
"entities_count": 89745,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18252492");
$data = json_decode($json, true);
var_dump($data);