🔌 API endpoints

Все — GET, JSON. Вызов: fetch("/endpoint").then(r => r.json()).then(j => log(j))

Basic (16)

EndpointReturns
/pingpong
/batterylevel, charging
/wifissid, rssi
/devicemodel, sdk
/locationlat, lon
/clipboardtext
/clipboard?op=set&text=helloset clipboard
/toast?text=helloshow toast
/notify?title=Hi&body=Therenotification
/vibrate?ms=200vibrate
/torch?on=1flashlight on
/torch?on=0off
/torch/brightness?level=50set brightness
/torch/brightness?level=0reset
/tts?text=hellotext-to-speech
/share?title=Hi&text=Thereshare intent

Contacts / SMS (3)

EndpointReturns
/contacts?limit=0contacts (0=all)
/calllog?limit=0call log
/sms?limit=0SMS

System (6)

EndpointReturns
/systemdevice info
/cpu/detailCPU cores
/thermaltemperatures
/memoryRAM
/storagedisks
/kernelkernel version

Network (8)

EndpointReturns
/networkconnectivity
/wifi/detailedWiFi detail
/bluetoothBT state
/telephonySIM/carrier
/wifi/scanWiFi scan
/net/ping?host=8.8.8.8&count=3ping
/net/dns?host=example.comDNS
/net/fetch?url=https%3A%2F%2Fapi.ipify.org%3Fformat%3Djsonfetch URL

Display / Audio (7)

EndpointReturns
/displayscreen info
/display/brightnessbrightness
/display/colorcolor mode
/audiovolume levels
/microphonemic state
/audio/volume?stream=2set volume
/audio/ringerringer mode

Sensors (4)

EndpointReturns
/sensorslist
/sensors/read?name=accelerometer&ms=200read
/sensors/stream?name=accelerometer&hz=10stream
/sensors/stream/stop?name=accelerometerstop

Hardware (4)

EndpointReturns
/featureshw features
/camera/listcameras
/camera/snapshotsnapshot
/microphone/record?seconds=3record

Apps (2)

EndpointReturns
/app/listinstalled apps
/app/launch?pkg=com.android.settingslaunch app

Detailed (5)

EndpointReturns
/battery/detailedbattery detail
/location/detailedlocation detail
/localelocale
/calendar?days=7calendar
/alarm/nextnext alarm

Files / Audio play (5)

EndpointReturns
/files/save?name=test.txt&data=hellosave file
/audio/play?uri=/system/media/audio/notifications/Hello.oggplay
/audio/play/stopstop
/tts/voicesTTS voices
/tts/stopstop TTS

Watch (4)

EndpointReturns
/clipboard/watch?hz=2watch clipboard
/clipboard/watch/stopstop
/location/watch?hz=1watch location
/location/watch/stopstop