API для Tankworks Official
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794566187,
"app": {
"id": 13818,
"name": "Stormworks: Build and Rescue",
"steam_id": 573090,
"url": "stormworks-build-and-rescue"
},
"color": 0,
"connect": "202.130.210.204:25560",
"country": "AU",
"domain": null,
"game": 573090,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20071805,
"ip": "202.130.210.204",
"language": "en",
"last_update": 1794741988,
"map": "Career",
"maxplayers": 16,
"name": "Tankworks Official",
"numplayers": 3,
"official": null,
"points": 83,
"port": 25560,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 25561,
"request": "202.130.210.204:25561",
"secured": false,
"status": true,
"steam_id": "90297503673960466",
"version": "1.0.0.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 3,
"city": "Мельбурн",
"description": null,
"disabled_modules": [],
"gamemode": "Stormworks",
"hidden": false,
"last_offline": 1794725778,
"last_online": 1794741988,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2,
"wipe_period": null,
"listentype": "d",
"environment": "w",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20071805");
$data = json_decode($json, true);
var_dump($data);