7 Days to Die
API для 4D2D
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10739792json
{
"response": {
"steam_id": "90280025003618326",
"domain": null,
"id": 10739792,
"ip": "64.74.161.164",
"port": 26930,
"query": 26930,
"color": 0,
"city": "Pointe-Claire",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1774697547,
"score": 0,
"last_online": 1776513045,
"icon": null,
"name": "4D2D",
"connect": "64.74.161.164:26930",
"request": "64.74.161.164:26930",
"map": "New Fibuja County",
"gamemode": "7 Days To Die",
"version": "01.02.05",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": true,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766250598,
"last_update": 1776513045,
"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": 3597,
"language": "en",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10739792");
$data = json_decode($json, true);
var_dump($data);