API для C13 ArtFall
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794535838,
"app": {
"id": 63,
"name": "DayZ",
"steam_id": 221100,
"url": "dayz"
},
"color": 0,
"connect": "185.125.102.120:2513",
"country": "DE",
"domain": null,
"game": 221100,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20061726,
"ip": "185.125.102.120",
"language": "de",
"last_update": 1794681897,
"map": "ExclusionZone",
"maxplayers": 4,
"name": "C13 ArtFall",
"numplayers": 0,
"official": null,
"points": 0,
"port": 2513,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27213,
"request": "185.125.102.120:27213",
"secured": true,
"status": false,
"steam_id": "90297368915105797",
"version": "1.30.164200",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794681897,
"last_online": 1794535823,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 67468,
"wipe_period": null,
"os": "w",
"time": "08:00",
"queue": 0,
"region": -1,
"product": "dayz",
"gametype": "battleye,no3rd,external,privHive,shardABC123,lqs0,allowedFilePatching,mod,08:00",
"dedicated": true,
"dlc_enabled": false,
"first_person": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20061726");
$data = json_decode($json, true);
var_dump($data);