Purpose
Retrieve the fully rendered HTML for a Hyatt hotel rate-calendar page using its direct query-parameter URL.
When to Use
Use when the caller provides a Hyatt hotel spirit code and booking parameters and needs the page HTML rather than a summarized rate result.
Workflow
- Construct the direct URL:
https://www.hyatt.com/explore-hotels/rate-calendar?spiritCode={spirit-code}&startDate={start-date}&endDate={end-date}&rooms={rooms}&adults={adults}&kids={kids}&rate={rate} - In one browser-agent call, navigate to that URL with
waitUntil: domcontentloaded, wait about 5 seconds for the client-rendered calendar to hydrate, and evaluate:(() => document.documentElement.outerHTML)(); - Return the resulting HTML string.
Site-Specific Gotchas
- The rate calendar is client-rendered;
domcontentloadedalone may expose only a shell, so allow a short post-load wait before extraction. spiritCodeis Hyatt's opaque hotel identifier and must be supplied or resolved separately; do not invent it.- Preserve Hyatt's parameter names and date format (
YYYY-MM-DD). Theratevalue is typicallyStandardbut should remain caller-configurable. - The returned HTML can include transient consent, analytics, and dynamically generated content.
Expected Output
The complete hydrated html element markup as a single string, equivalent to document.documentElement.outerHTML on the loaded rate-calendar page.