Skip to main content
All releases

New: forEach action

Iterate over repeating page elements and extract content from each one. Useful for hotel room cards, product grids, FAQ accordions, and similar patterns.

You can now add a forEach action to any URL's actions array. It tells Spidra to find all matching elements on the page, interact with each one, and apply your extraction prompt to the content it reveals.

{
  "urls": [{
    "url": "https://example.com/listings",
    "actions": [
      { "type": "forEach", "value": "Find all listing detail links" }
    ]
  }],
  "prompt": "Extract name, price, and description for each listing",
  "output": "json"
}

This works well for hotel room cards, product grids, FAQ accordions, and any repeating UI pattern where the content you want is hidden behind a click or expand interaction.

Read more in the Browser Actions docs.

Start scraping for free.

Get 300 free credits to explore Spidra. Build your first scraper in minutes, not hours. Upgrade anytime as you scale.

We build features around real workflows. Usually within days.