API dla Dirty Dogs Vanilla (Dog Ridge)
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 112,
"fps_avg": 112,
"entities_count": 101747,
"world_seed": 720000322,
"world_size": 4250,
"steam_id": "90286568045559811",
"domain": null,
"id": 8410638,
"ip": "162.239.255.70",
"port": 28017,
"query": 28018,
"color": 0,
"city": "Warren",
"description": "Dirty Dogs Vanilla Minimap Primitive Server, 5 minute crates, NO TOXICITY OR GRIEFING, Normal Facepunch rules apply.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780600466,
"last_online": 1780596630,
"icon": null,
"name": "Dirty Dogs Vanilla (Dog Ridge)",
"connect": "162.239.255.70:28017",
"request": "162.239.255.70:28018",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 35,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1743836126,
"last_update": 1780600466,
"banned": false,
"wipe": 1778179802,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9851,
"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/8410638");
$data = json_decode($json, true);
var_dump($data);