Purpose
Search IMDb titles with URL-level filters and open the first matching result without homepage navigation or search-form interaction.
When to Use
Use when the task provides a title query and asks for the first result, optionally constrained by IMDb technical metadata and a runtime range.
Workflow
- Build and navigate directly to
https://www.imdb.com/search/title/?title={url-encoded-query}&has=technical&runtime={min-runtime},{max-runtime}. Preserve IMDb's runtime range syntax and URL-encode the title query. - On the loaded search page, run this evaluator to resolve the opaque title ID and obtain the first result URL:
(() => { const a = document.querySelector( 'li.ipc-metadata-list-summary-item a.ipc-title-link-wrapper[href^="/title/tt"]', ) || document.querySelector('a[href^="/title/tt"]'); if (!a) return null; return { href: new URL(a.getAttribute("href"), location.origin).href, title: a.textContent.trim(), }; })(); - Navigate directly to the returned
hrefin the same browser session; this is equivalent to clicking the first result and avoids guessing its opaquett...ID.
Site-Specific Gotchas
- IMDb title IDs are opaque; resolve them from the search result before constructing the detail URL.
- The useful filter parameters are
has=technicalandruntime={lower},{upper}; retain them in the direct search URL. - Prefer the result-list title-link selector above. The fallback selector is broader and may become fragile if IMDb adds unrelated
/title/tt...links to the page. - Consent, login, or bot-check interstitials may prevent the result-list DOM from appearing; resolve those before running the evaluator.
Expected Output
The IMDb title-detail page for the first result matching the supplied title, technical-data, and runtime filters, with the resolved title URL and displayed title available from the evaluator output.