Skip to main content
AI Mode switches Spidra from selector-based scraping to intelligent browser automation. Instead of relying on CSS selectors that break when websites update their layouts, AI Mode understands page structure and adapts on the fly.

How It Works

Standard Mode uses exact CSS selectors:
{
  "urls": [{
    "url": "https://example.com/products",
    "actions": [
      {"type": "click", "selector": "#accept-cookies-btn"},
      {"type": "click", "selector": "button.load-more-products"},
      {"type": "type", "selector": "#search-input", "value": "laptop"}
    ]
  }],
  "prompt": "Extract all product names and prices",
  "output": "json"
}
If the website changes that button’s ID or class name, your scrape fails. AI Mode understands intent. You can still use selectors, but it also accepts natural language descriptions:
{
  "urls": [{
    "url": "https://example.com/products",
    "actions": [
      {"type": "click", "selector": "Accept cookies button"},
      {"type": "click", "selector": "Load more button"},
      {"type": "type", "selector": "Search input field", "value": "laptop"}
    ]
  }],
  "prompt": "Extract all product names and prices",
  "output": "json",
  "aiMode": true
}
The AI finds the right elements regardless of their ID, class name, or position on the page.

Using AI Mode

Via API

Add aiMode: true to your request:
{
  "urls": [{"url": "https://news.ycombinator.com"}],
  "prompt": "Extract the top 10 story titles with their scores",
  "output": "json",
  "aiMode": true
}

Via Playground

Toggle the AI Mode switch in the Playground. It’s enabled by default.