Start | Scan, Pair and Connect | Device Information | Control | Power Management | Features | Metadata | Listeners | Stream | Apps | Audio | Logging | Examples

Apps

It is possible to launch and list installed apps via the Apps interface. To use this interface, the Companion protocol must be available.

Using the Apps API

After connecting to a device, you get the apps interface via interface.AppleTV.apps:

atv = await pyatv.connect(config, ...)
apps = atv.apps

To retrieve a list of installed apps, use interface.Apps.app_list

app_list = await apps.app_list()

for app in app_list:
    print(f"Name: {app.name}, Bundle Identifier: {app.identifier}")

To launch an app, use its bundle identifier when calling interface.Apps.launch_app

await apps.launch_app("com.netflix.Netflix")
← Stream | Audio →