API dla GLOFT | True Vanilla | Monthly | EU
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 165,
"fps_avg": 165,
"entities_count": 91761,
"world_seed": 1672643452,
"world_size": 3984,
"steam_id": "90286739278352399",
"domain": null,
"id": 10110963,
"ip": "195.201.59.232",
"port": 28015,
"query": 28082,
"project_id": null,
"color": 0,
"city": "Falkenstein",
"description": "\nGLOFT - TRUE VANILLA\r\n Region: EU\r\n Wipes: Monthly (Map + BP)\r\n Team Limit: Solo / Duo / Trio\r\n Map Size: 3500 - 5000\r\n No kits | No mods | No pay-to-win\r\n Active Admins | Anti-Cheat | Fair Rust\r\n Join our Discord: https://discord.gg/YSsbSpc6",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780959634,
"icon": null,
"name": "GLOFT | True Vanilla | Monthly | EU",
"connect": "195.201.59.232:28015",
"request": "195.201.59.232:28082",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1755619614,
"last_update": 1780959634,
"banned": false,
"wipe": 1780596550,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3722,
"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/10110963");
$data = json_decode($json, true);
var_dump($data);