API для Unit: The Last Stand
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "cp",
"os": "l",
"product": "tf",
"region": 3,
"steam_id": "90289148788085776",
"domain": null,
"id": 12358673,
"ip": "178.33.39.169",
"port": 21429,
"query": 21429,
"project_id": null,
"color": 0,
"city": "Paris",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1784808780,
"last_online": 1784324457,
"icon": null,
"name": "Unit: The Last Stand",
"connect": "178.33.39.169:21429",
"request": "178.33.39.169:21429",
"map": "pl_pier",
"gamemode": null,
"version": "10828683",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": null,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784317849,
"last_update": 1784808780,
"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": 9556,
"language": "fr",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12358673");
$data = json_decode($json, true);
var_dump($data);