Android universal linking/watch.plex.tv links

Hey!

I’m trying to get linking to specific movies/shows working for the Android TV app. I’ve figured out that there are intent filters set-up to accept some watch.plex.tv links (for example https://watch.plex.tv/movie/zoolander).

Is there any way to use IMDb or TMDB IDs to do the same? Or an API endpoint to convert one of those IDs to that slug?
Basically looking for any way be able to reliably open links.

Saw that there are link.plex.tv and links.plex.tv configured for linking aswell but haven’t figured out how these work.

Thank you!

Hi,

The Android app does accept watch.plex.tv links as you’ve discovered, but you’d need to map the IDs to our slug.

There is an endpoint that can help you: https://metadata.provider.plex.tv/library/metadata/matches. It requires you to pass in a guid query parameter as either imdb://IMDB_ID or tmdb://TMDB_ID and a type parameter where 1 is movie and 2 is show. You also need to provide your token in a x-plex-token parameter/header.

After you get the data, the slug should be in MediaContainer.Metadata[0].slug. To convert that into a link you prepend either https://watch.plex.tv/movie/ or https://watch.plex.tv/show/ .

You can ignore the other types of links (link.plex.tv and links.plex.tv) for your purposes.

Hope that helps!

1 Like