Get rendered page HTML
get_page_htmlFetch the fully rendered HTML of any WordPress URL to verify front-end changes, and extract SEO head tags or visible text.
Instructions
Fetch the fully rendered HTML that a visitor receives for any URL on the site, so you can verify that a change actually appears on the front end rather than trusting the API's word for it. Returns the server-rendered HTML — content injected later by JavaScript will not appear. Optionally extracts just the SEO-relevant head tags or the visible text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Path or full URL to fetch, e.g. "/about/". | / |
| mode | No | html: the raw markup. text: visible text only. head: title/meta/OG tags. summary: head tags plus headings, links and image alt coverage. | summary |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| max_chars | No | Truncate the response at this many characters. | |
| preview_token | No | Token from get_preview_url, to render a draft theme instead of the live one. |