When you build a streaming app, users need a way to find titles they’re looking for—by name, actor, or keyword. The search endpoint lets you wire up a search experience in minutes.Documentation Index
Fetch the complete documentation index at: https://docs.discovr.media/llms.txt
Use this file to discover all available pages before exploring further.
Make a search request
CallsearchMedia() with a query string. The SDK returns paginated results with movies, TV shows, and cast members mixed together.
Search requires an active profile session. If you haven’t selected a profile yet, start with
selectProfile() first. The search results themselves are the same for all profiles—personalization happens later when you fetch the detail view.Handle result types
Search results mix three types: media (movies and TV shows) and person (cast and crew). Each has a different shape, so you’ll need to handle them differently in your UI. Media results have:id— Unique media ID (prefixed withMV_for movies,TV_for shows)title— Movie or show namemedia_type— Either"movie"or"tv"poster_path— Thumbnail URL for rendering
id— Prefixed withPERSON_name— Actor or creator namemedia_type— Always"person"profile_path— Headshot URL (optional)
Pagination
Results are paginated. The response includespage, total_pages, and total_results. Request the next page with the page parameter.
Render and navigate
After the user taps a result, handle media and person results differently: For media results: Open the detail view. Fetch the full media object withgetMedia() and build your detail sheet (synopsis, cast, similar titles).
For person results: You can navigate to the person’s page if your app has one, or show a simple bio. For now, you might redirect to a cast/crew grid or just show their name.
Handle empty results
If the user’s query returns no results,results will be an empty array. Show a friendly message like “No results found. Try a different search.”
If the query is too short (less than 1 character) or invalid, the SDK will return a validation error. Catch it and show a helpful message.
Put it together: Full search flow
Here’s a complete search-to-detail example:Related reading
- Media details — After a search result tap, fetch the full media object and show cast, seasons, and similar titles
- Profile context — When building your detail view, fetch personalized overlays (watchlist status, resume position) to show the right buttons
- Browse recommendations — For users who don’t know what to search for, show pages and recommendation rows as an alternative discovery path