Skip to main content
Starter Kit - Ships with your template. You own it - modify freely.

Basic Usage

Output:

Inputs

Configuration

Scraping Strategies

The scrape agent uses a 3-tier approach with automatic fallback:

Tier 1: Fast Browser Rendering (~350ms)

  • Uses domcontentloaded wait strategy
  • Fastest scraping method
  • Best for simple static pages

Tier 2: Slow Browser Rendering (~2s)

  • Uses networkidle2 wait strategy
  • Waits for network activity to settle
  • Good for JavaScript-heavy pages

Tier 3: HTML Parsing Fallback (~1.5s)

  • Pure HTML parsing without browser
  • Used when bot protection is detected
  • Most reliable but least feature-rich

Strategy Options

Fast Strategy
Balanced Strategy (Default)
Aggressive Strategy

Return Formats

Markdown Format (Default)

Output includes clean markdown conversion of the page content.

HTML Format

Output includes raw HTML for further processing.

Text Format

Output includes plain text extraction (no tags).

Advanced Patterns

With Caching

With Retries

Multiple URLs with Fallback

Rate-Limited Scraping

Extract Specific Content

Scrape + Validate

Output Schema

Error Handling

The scrape agent handles:
  • Network timeouts: Automatic retry with exponential backoff
  • Bot protection: Automatic fallback to HTML parsing
  • JavaScript rendering: Multi-tier strategy with progressive enhancement
  • Redirect loops: Follows redirects up to configured limit
  • Invalid URLs: Immediate failure with descriptive error
Access error details:

Best Practices

1. Choose the Right Strategy
2. Use Caching for Static Content
3. Set Appropriate Timeouts
4. Respect robots.txt
5. Handle Failures Gracefully
6. Rate Limit Proactively
7. Monitor Scraping Performance

Common Use Cases

Company Research
Price Monitoring
Content Aggregation
SEO Analysis

Performance Characteristics

Limitations

  • CAPTCHA: Cannot bypass (requires manual intervention)
  • Authentication: Basic authentication supported via headers
  • File downloads: Binary content handling depends on returnFormat
  • Rate limiting: Respect target site’s rate limits
  • Legal compliance: Ensure scraping is allowed per site’s terms of service

Next Steps

Validate Agent

Validate scraped data

HTTP Operation

Custom HTTP requests

RAG Pipeline

Scrape + embed workflow

Starter Kit Overview

All starter kit agents