Dark and Light
API для US-Knight-36 - (v100.54351)
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/1786585json
{
"response": {
"steam_id": "90204498065194015",
"domain": null,
"id": 1786585,
"ip": "85.190.153.110",
"port": 17781,
"query": 27019,
"color": 0,
"city": "Miami",
"description": "",
"game": 529180,
"owner": null,
"boosts": 1,
"last_offline": 1768642499,
"score": null,
"last_online": 1776210014,
"icon": null,
"name": "US-Knight-36 - (v100.54351)",
"connect": "85.190.153.110:17781",
"request": "85.190.153.110:27019",
"map": "DNL_ALL",
"gamemode": "TestGameMode_C",
"version": "1.0.0.0",
"numplayers": 13,
"maxplayers": 70,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1699708182,
"last_update": 1776210014,
"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": 36,
"language": "en",
"parked": false,
"app": {
"id": 180,
"steam_id": 529180,
"name": "Dark and Light",
"url": "dark-and-light"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/1786585");
$data = json_decode($json, true);
var_dump($data);