API для A shockbyte rust server - test
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794413194,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "148.113.13.68:28015",
"country": "IN",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20002826,
"ip": "148.113.13.68",
"language": "hi",
"last_update": 1794429964,
"map": "Procedural Map",
"maxplayers": 10,
"name": "A shockbyte rust server - test",
"numplayers": 0,
"official": null,
"points": 60,
"port": 28015,
"private": false,
"project_id": null,
"pve": 0,
"pvp": null,
"query": 28016,
"request": "148.113.13.68:28016",
"secured": true,
"status": true,
"steam_id": "90297279435966482",
"version": "2636",
"votes": 0,
"wipe": 1794411797,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Мумбаи",
"description": "Test Rust Server",
"disabled_modules": [],
"gamemode": "Survival",
"hidden": false,
"last_offline": 1794412955,
"last_online": 1794429964,
"list_hidden": false,
"map_url": "procedural_map_2000_seed_200652_r290",
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 10351,
"wipe_period": null,
"fps": 240,
"gmn": "rust",
"url": "",
"hash": "d814ade3",
"build": "170545",
"gc_cl": "93",
"gc_mb": "899",
"fps_avg": 240,
"ram_sys": "0",
"map_kind": "procedural",
"map_name": "Procedural Map",
"map_seed": 200652,
"map_size": 2000,
"logoimage": "",
"listentype": "d",
"environment": "l",
"headerimage": "",
"a2s_protocol": 17,
"map_revision": 290,
"queueplayers": 0,
"map_image_url": "https://files.facepunch.com/rust/map-images/bf276a9d366fe3d38dfe9f07a5796f84cb81f84269c10c445bc92f2747651785/proceduralmap.2000.1794411785551.290_bf276a9d366fe3d38dfe9f07a5796f84.jpg",
"entities_count": 14000,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20002826");
$data = json_decode($json, true);
var_dump($data);