Retrieve all currently listed movies and showtimes for a requested Epic Theatres location and date.
Use Cases
Use when the requested output is the complete date-specific showtimes listing for an Epic Theatres location, rather than a filtered subset. Supply the date as YYYY-MM-DD and the location by visible name.
Automation Flow
- Navigate directly to
https://www.epictheatres.com/showtimes/?date={date}. Thedatequery parameter selects the requested calendar date without opening the date picker. - Ensure the requested location is active. If the page shows an unselected location, open
button[aria-roledescription="location selector"](also matchbutton[aria-label="PLEASE SELECT A LOCATION"]as a fallback). Find the[role="option"]whose visible text matches{location}and click it. - After the page finishes updating, run this extractor with
evaluate()on the loaded/showtimes/page. Return every movie row for the selected date, including rows with an emptyshowtimesarray when no times are exposed in the row:
(() => {
const root = document.querySelector('main') || document.body;
const date = [...root.querySelectorAll('[aria-selected="true"], [aria-current="date"]')]
.map(e => (e.innerText || e.getAttribute('aria-label') || '').trim())
.find(t => /today|tomorrow|\b(?:mon|tue|wed|thu|fri|sat|sun)\b|\b\d{1,2}\/\d{1,2}\b|\b\d{4}-\d{2}-\d{2}\b/i.test(t)) || new URL(location.href).searchParams.get('date');
const movies = [];
const seen = new Set();
for (const a of [...root.querySelectorAll('h3 a[href*="/movies/"]')]) {
const url = new URL(a.getAttribute('href'), location.origin).href;
if (seen.has(url)) continue;
seen.add(url);
let block = a.parentElement;
for (let i = 0; i < 10 && block?.parentElement; i++) {
if (/\b\d{1,2}:\d{2}\s*(?:AM|PM)\b/i.test(block.innerText || '')) break;
if (block.parentElement.querySelectorAll('h3 a[href*="/movies/"]').length > 1) break;
block = block.parentElement;
}
const scope = block || a.parentElement;
const showtimes = [...scope.querySelectorAll('a[aria-label], span[aria-label], button[aria-label]')]
.map(e => e.getAttribute('aria-label'))
.filter(v => /^\d{1,2}:\d{2}\s*(?:AM|PM)$/i.test(v || ''))
.map(v => v.replace(/\s+/g, ' ').trim());
movies.push({
title: (a.innerText || '').trim(),
url,
showtimes: [...new Set(showtimes)]
});
}
return { date, movies };
})()Possible Friction Points
- Epic Theatres requires an active location before showtimes are meaningful; the location is not reliably encoded in the showtimes URL.
- Use the direct
?date={date}query parameter instead of navigating through the calendar UI. - The location control is exposed as
button[aria-roledescription="location selector"]on the showtimes page; its choices appear as[role="option"]elements. The older accessible-label selector is useful as a fallback. - Movie links use opaque numeric IDs followed by slugs, so retain the exact URLs returned by the page rather than constructing movie URLs.
- Showtimes are exposed through accessible labels on nested movie cards. The extractor stops at the first ancestor containing a time and never climbs into a container holding another movie, then deduplicates labeled time controls.
- Read the date only from ARIA-selected or current-date elements, falling back to the URL's
dateparameter. An unselected Today button is not evidence of the selected date. - Ticketing launch URLs may contain a run-specific secret token; do not save or construct those URLs. Extract showtime information from the public showtimes page instead.
- Avoid brittle generated DOM paths; use accessible location selectors and visible option text.
Example Result
{
"date": "Today",
"movies": [
{
"title": "Example Title",
"url": "https://example.com/movies/example",
"showtimes": [
"7:00 PM"
]
}
]
}