Killing Floor 2
API для Tripwire Official - US - 13348777 - #01
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/560822json
{
"response": {
"steam_id": "90284338330557445",
"domain": null,
"id": 560822,
"ip": "172.98.75.98",
"port": 27115,
"query": 27125,
"color": 0,
"city": "New York",
"description": "",
"game": 232090,
"owner": null,
"boosts": 1,
"last_offline": 1777236765,
"score": null,
"last_online": 1776454216,
"icon": null,
"name": "Tripwire Official - US - 13348777 - #01",
"connect": "172.98.75.98:27115",
"request": "172.98.75.98:27125",
"map": "KF-SUBDUCTION",
"gamemode": "Tripwire Official - US - 13348777 - #01",
"version": "1150",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1666643805,
"last_update": 1777236765,
"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": 878,
"language": "en",
"parked": false,
"app": {
"id": 51,
"steam_id": 232090,
"name": "Killing Floor 2",
"url": "killing-floor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/560822");
$data = json_decode($json, true);
var_dump($data);