API dla [US] Darkzone Hardcore ++ PVP/PVE
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 45,
"fps_avg": 44,
"entities_count": 102412,
"world_seed": 0,
"world_size": 4250,
"steam_id": "90286749941474304",
"domain": null,
"id": 11189423,
"ip": "209.126.2.184",
"port": 28029,
"query": 28030,
"project_id": null,
"color": 0,
"city": "St Louis",
"description": "![[US] Darkzone Hardcore ++ PVP/PVE](https://i.imgur.com/xtPhc2e.png)\nWelcome to the Darkzone Extreme Hardcore!\r\n• Limited crafting\r\n• AlphaLoot\r\n• Clans\r\n• SkillTree\r\n• And\r\n• No Mercy!\r\n\r\nVisit (https://zonegaming.tebex.io/) for VIP\r\n Visit (https://dsc.gg/zonegaming) for Discord",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780920261,
"last_online": 1780945837,
"icon": null,
"name": "[US] Darkzone Hardcore ++ PVP/PVE",
"connect": "209.126.2.184:28029",
"request": "209.126.2.184:28030",
"map": "Procedural Map",
"gamemode": "Hardcore",
"version": "2627",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772699053,
"last_update": 1780945837,
"banned": false,
"wipe": 1780602450,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4652,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11189423");
$data = json_decode($json, true);
var_dump($data);