API для Grey's Great Server | Discord - bp3WtR7PPq
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1787882178,
"app": {
"id": 13818,
"name": "Stormworks: Build and Rescue",
"steam_id": 573090,
"url": "stormworks-build-and-rescue"
},
"color": 0,
"connect": "73.70.104.127:30525",
"country": "US",
"domain": null,
"game": 573090,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14167499,
"ip": "73.70.104.127",
"language": "en",
"last_update": 1794774378,
"map": "Career",
"maxplayers": 16,
"name": "Grey's Great Server | Discord - bp3WtR7PPq",
"numplayers": 0,
"official": null,
"points": 30,
"port": 30525,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30526,
"request": "73.70.104.127:30526",
"secured": false,
"status": true,
"steam_id": "90297504795474973",
"version": "1.0.0.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Окленд",
"description": null,
"disabled_modules": [],
"gamemode": "Stormworks",
"hidden": false,
"last_offline": 1794728167,
"last_online": 1794774378,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 28,
"wipe_period": null,
"listentype": "d",
"environment": "w",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14167499");
$data = json_decode($json, true);
var_dump($data);