API для dayofdragons Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286857229442064",
"domain": null,
"id": 11798744,
"ip": "103.229.81.142",
"port": 47555,
"query": 47556,
"project_id": null,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 1088090,
"owner": null,
"boosts": 1,
"last_offline": 1781379002,
"last_online": 1781461292,
"icon": null,
"name": "dayofdragons Server",
"connect": "103.229.81.142:47555",
"request": "103.229.81.142:47556",
"map": null,
"gamemode": "Day of Dragons",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1781379002,
"last_update": 1781461292,
"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": 77,
"language": "nl",
"parked": false,
"app": {
"id": 45862,
"steam_id": 1088090,
"name": "Day of Dragons",
"url": "day-of-dragons"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11798744");
$data = json_decode($json, true);
var_dump($data);