API dla Dragon PvE - [5x|Bots|Events]
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 90,
"fps_avg": 88,
"entities_count": 181641,
"world_seed": 1212116624,
"world_size": 4500,
"steam_id": "90286589773983745",
"domain": null,
"id": 1204814,
"ip": "108.181.36.187",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Los Angeles",
"description": "Welcome to Dragon PvE.\r\n \r\n5x Resources 3x Components\r\n \r\nHome teleport, Personal minicopter and recycler, Monument bots, NPC raid bases, Automated events and much more\r\n \r\nJoin our discord for rules and support.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780567467,
"last_online": 1780584035,
"icon": null,
"name": "Dragon PvE - [5x|Bots|Events]",
"connect": "108.181.36.187:28015",
"request": "108.181.36.187:28017",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1691954659,
"last_update": 1780584035,
"banned": false,
"wipe": 1779412465,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2639,
"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/1204814");
$data = json_decode($json, true);
var_dump($data);