Skip to main content
The Spidra Remix integration (spidra-remix) brings web data intelligence to fullstack Remix and React Router v7 applications:
  • Loaders & Actions: createSpidraLoader() and createSpidraAction() generators with automatic typed error responses.
  • HMAC Webhook Handler: handleRemixWebhook() validates asynchronous job events and dispatches typed callbacks.
  • Remix Response Helper: spidraJson() produces standard Remix Response objects with proper HTTP status codes.
  • Full API Surface: Scrape, Crawl, SERP Search, Batch Scraping, Document Parsing, Domain Mapping, Turnkey Templates, Presets, and Monitors.

Installation

Get your API key from app.spidra.io under API Keys. Store it in .env or set SPIDRA_API_KEY.

Configuration

Set environment variables in .env:
getSpidraClient() automatically reads SPIDRA_API_KEY from process.env.

Quickstart

1. In a Remix Action

Handle form submissions and extract structured data:

2. In a Remix Loader

Pre-fetch search or crawl data on the server before rendering:

3. Asynchronous Webhooks

Handle asynchronous crawl or batch job completions securely:

Complete Spidra Features Guide

1. Scraping with Browser Actions & Proxies

Bypass anti-bot mechanisms with residential proxies and interact with dynamic pages before extraction:

2. Deep Site Crawling

Initiate recursive domain crawls with depth controls and path filtering:
Query web, news, and image indexes to ground AI workflows with fresh search data:

4. High-Throughput Batch Scraping

Scrape multiple independent pages in parallel:
Discover all discoverable URLs across a domain without downloading full page bodies:

6. Document Parsing

Extract clean markdown and tables from remote document URLs:

7. Turnkey AI Templates & Scheduled Monitors

Execute pre-tuned extraction templates and automate recurring scrapes:

Typed Error Handling

createSpidraAction() and createSpidraLoader() automatically capture Spidra errors and return standardized JSON responses. You can also catch them manually:

Bun SDK

Native Bun scraping with Bun.file() parsing and Bun.serve handlers.

Nuxt SDK

Nuxt 3 module and Nitro server route integration.