Roku TVs have a built-in local REST API that lets you script your remote
Every Roku device, including TVs made by TCL, Hisense, and Sharp, exposes a local HTTP API on port 8060 called the External Control Protocol (ECP), officially documented by Roku. The API requires no cloud connection, API key, or authentication — just an HTTP endpoint accessible on the local network. Developers can use simple curl commands or JavaScript fetch calls to control the TV, including pressing buttons, launching apps, and typing text. Browser-based implementations face two hurdles: ECP responses lack CORS headers, and HTTPS pages cannot make requests to plain-HTTP local addresses. The API is already used under the hood by home automation platforms like Home Assistant, Homebridge, and Node-RED for their Roku integrations.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in