API dla [EU] Vanilla | Fresh | Monthly | Noobs Welcome | Hora [MD]
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 186,
"fps_avg": 189,
"entities_count": 65259,
"world_seed": 209782191,
"world_size": 3500,
"steam_id": "90286203103855636",
"domain": null,
"id": 11500914,
"ip": "178.168.15.65",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Chisinau",
"description": "![[EU] Vanilla | Fresh | Monthly | Noobs Welcome | Hora [MD]](https://i.imgur.com/V4H9BRn.jpeg)\nHora Rust - Vanilla server focused on fair gameplay.\r\nNo admin abuse, no pay-to-win.\r\nMonthly wipes and active moderation.\r\nJoin early and grow with the server. Discord - https://discord.gg/Kpm7qeNkCb",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780561419,
"last_online": 1779720759,
"icon": null,
"name": "[EU] Vanilla | Fresh | Monthly | Noobs Welcome | Hora [MD]",
"connect": "178.168.15.65:28015",
"request": "178.168.15.65:28017",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "MD",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779207165,
"last_update": 1780561419,
"banned": false,
"wipe": 1778176134,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11114,
"language": "ro",
"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/11500914");
$data = json_decode($json, true);
var_dump($data);