API dla AU 2x PVP
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 102,
"fps_avg": 98,
"entities_count": 81920,
"world_seed": 1,
"world_size": 4000,
"steam_id": "90286583295604759",
"domain": null,
"id": 11698929,
"ip": "51.161.219.251",
"port": 28005,
"query": 28006,
"color": 0,
"city": "North Sydney",
"description": "\nwelcome to AU 2x PVP!\r\nhttps://discord.gg/pbkAhMqCsV\r\n-Monthly Server Wipes\r\n-Group limit Solo to 4 Man\r\n-2x Gather Rates\r\n-2x Harvesting Rates\r\n-2x Loot\r\n-Custom Building Locations\r\n-Custom/Hidden card rooms\r\n-Short Nights\r\n-Active Staff",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780227281,
"last_online": 1780561228,
"icon": null,
"name": "AU 2x PVP",
"connect": "51.161.219.251:28005",
"request": "51.161.219.251:28006",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1780227281,
"last_update": 1780561228,
"banned": false,
"wipe": 1780118345,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1778,
"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/11698929");
$data = json_decode($json, true);
var_dump($data);