logo
Newweb-scraping-api

Inline iframe content with the showFrames parameter

View as Markdown

A new parameter renders iframe content directly into the returned page so cross-origin frames stop dropping out of scrapes.

3D illustration: a headless browser turning a page with frames into one DOM tree. Iframe content, inlined.

showFrames=true makes the headless browser render every iframe on the page and inline its serialized DOM into the returned HTML.

When you need it

Many sites load critical content through a cross-origin iframe. Scrape.do's default headless rendering returns the parent page's HTML, which omits the frame body. Common cases:

  • Embedded product detail panels on retail sites
  • Third-party payment widgets when you need the final pricing surface
  • Embedded forms and dashboards that mount client-side
  • Embedded video players when you need the underlying source URL or metadata
  • Cross-origin reviews / Q&A modules that proxy through a partner

Usage

https://api.scrape.do
  ?token=YOUR_TOKEN
  &url=TARGET_URL
  &render=true
  &showFrames=true

showFrames requires render=true (you need a real browser to enumerate frames). It works with all the other render-time options: super, geoCode, device, playWithBrowser.

See the headless browser documentation for the full parameter list.

On this page