Darkest Hour: Europe '44-'45
API для Official�Server�#3
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11108777json
{
"response": {
"steam_id": "90283253436250119",
"domain": null,
"id": 11108777,
"ip": "104.243.41.183",
"port": 7817,
"query": 28962,
"color": 0,
"city": "Piscataway",
"description": null,
"game": 1280,
"owner": null,
"boosts": 1,
"last_offline": 1770786703,
"score": 0,
"last_online": 1776232232,
"icon": null,
"name": "Official�Server�#3",
"connect": "104.243.41.183:7817",
"request": "104.243.41.183:28962",
"map": "DH-Berezina_Advance",
"gamemode": "Red Orchestra Beta",
"version": "1.0.8.7",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1770038140,
"last_update": 1776232232,
"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": 4,
"language": "en",
"parked": false,
"app": {
"id": 80,
"steam_id": 1280,
"name": "Darkest Hour: Europe '44-'45",
"url": "darkest-hour-europe-44-45"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11108777");
$data = json_decode($json, true);
var_dump($data);