API для Squad Dedicated Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"eosSessionId": "c0f8ca92c3b84156b9345ee088189846",
"steam_id": null,
"domain": null,
"id": 14070415,
"ip": "121.170.32.157",
"port": 7783,
"query": 7783,
"project_id": null,
"color": 0,
"city": "Ansan-si",
"description": null,
"game": 393380,
"owner": null,
"boosts": 1,
"last_offline": 1787774117,
"last_online": 1787672587,
"icon": null,
"name": "Squad Dedicated Server",
"connect": "121.170.32.157:7783",
"request": "121.170.32.157:7783",
"map": "AlBasrah_AAS_v1",
"gamemode": "AAS",
"version": "v10.5.3.657966.2759",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": false,
"country": "KR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1787670766,
"last_update": 1787774117,
"ban_reason": null,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1321,
"language": "ko",
"parked": false,
"app": {
"id": 137,
"steam_id": 393380,
"name": "Squad",
"url": "squad"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14070415");
$data = json_decode($json, true);
var_dump($data);