Access to undocumented Fritz!Box internals via data.lua and query.lua.
Internal Lua endpoints (data.lua, query.lua)
- Undocumented, may change between FRITZ!OS versions
- Used by the Fritz!Box web interface
- Provides access to features not exposed via REST or AHA APIs
import (
"github.com/ByteSizedMarius/go-fritzbox-api/v2"
"github.com/ByteSizedMarius/go-fritzbox-api/v2/unsafe"
)
client := fritzbox.New("username", "password")
client.Connect()
// Get all network devices
devices, _ := unsafe.GetDeviceList(client)
// Get mesh topology with connection speeds
mesh, _ := unsafe.GetMeshTopology(client)
// Get event log
logs, _ := unsafe.GetEventLog(client)
// Get traffic statistics
stats, _ := unsafe.GetTrafficStats(client)GetDevices(c)- Active devices with MAC, IP, name, flagsGetAllDevices(c)- All devices including inactive (for DHCP reservations)GetMeshTopology(c)- Full mesh topology with connection speedsFillProfiles(c, devices)- Add profile info to device list
SetName(c, uid, name)- Set device friendly nameSetIP(c, uid, ip, static)- Set DHCP reservationGetDeviceName(c, uid)- Get device nameGetDeviceIP(c, uid)- Get device IP
GetAvailableProfiles(c)- List all access profilesGetProfileUIDFromDevice(c, uid)- Get profile assigned to deviceSetProfileForDevice(c, deviceUID, profileUID)- Assign profile
GetEventLog(c)- System event logGetEventLogUntil(c, id)- Events newer than IDGetTrafficStats(c)- Bandwidth statistics (today, week, month)