API dla WarLands 2x | Monthly |
JSON dla programów, stron i innych
text
json
{
"response": {
"modded": true,
"fps": 394,
"fps_avg": 375,
"entities_count": 57148,
"world_seed": 50000,
"world_size": 3000,
"steam_id": "90286525689029638",
"domain": null,
"id": 11305144,
"ip": "157.85.95.142",
"port": 21587,
"query": 21588,
"color": 0,
"city": "Frankfurt am Main",
"description": "Welcome to WarLands 2x Solo/Duo\r\n• 2x Gather Rates\r\n• 2x Crafting Speed\r\n• 2x Components and Scrap\r\n• Recyclers at additional monuments\r\n+ Extended Workbench range + Long Days & Short Nights\r\n+ Group Limit: 2\r\n+ Active Staff + Fast Smelt",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775752924,
"last_online": 1780570234,
"icon": null,
"name": "WarLands 2x | Monthly |",
"connect": "157.85.95.142:21587",
"request": "157.85.95.142:21588",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774592880,
"last_update": 1780570234,
"banned": false,
"wipe": 1778323509,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4426,
"language": "de",
"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/11305144");
$data = json_decode($json, true);
var_dump($data);