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.
