Squad
API для Blitz's Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11142408json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11142408,
"ip": "158.51.89.156",
"port": 7787,
"query": 7787,
"color": 0,
"city": "Lake Arthur",
"description": null,
"game": 393380,
"owner": null,
"boosts": 1,
"last_offline": 1778542996,
"score": 0,
"last_online": 1778531522,
"icon": null,
"name": "Blitz's Server",
"connect": "158.51.89.156:7787",
"request": "158.51.89.156:7787",
"map": "Sanxian_Seed_v1",
"gamemode": "Seed",
"version": "v10.4.0.601191.2111",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": null,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1770804047,
"last_update": 1778542996,
"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": 270,
"language": "en",
"parked": false,
"app": {
"id": 137,
"steam_id": 393380,
"name": "Squad",
"url": "squad"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11142408");
$data = json_decode($json, true);
var_dump($data);