API для PiranjaWorks
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1791043620,
"app": {
"id": 13818,
"name": "Stormworks: Build and Rescue",
"steam_id": 573090,
"url": "stormworks-build-and-rescue"
},
"color": 0,
"connect": "46.126.248.4:30000",
"country": "CH",
"domain": null,
"game": 573090,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17678169,
"ip": "46.126.248.4",
"language": "de",
"last_update": 1794773161,
"map": "Career",
"maxplayers": 3,
"name": "PiranjaWorks",
"numplayers": 0,
"official": null,
"points": 30,
"port": 30000,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30001,
"request": "46.126.248.4:30001",
"secured": false,
"status": true,
"steam_id": "90297442214176768",
"version": "1.0.0.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Volketswil / Volketswil (Dorf)",
"description": null,
"disabled_modules": [],
"gamemode": "Stormworks",
"hidden": false,
"last_offline": 1794682563,
"last_online": 1794773161,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 38,
"wipe_period": null,
"listentype": "d",
"environment": "w",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17678169");
$data = json_decode($json, true);
var_dump($data);