Skip to main content
The Spidra Nuxt module (spidra-nuxt) brings AI web intelligence directly into Nuxt 3 and Nitro:
  • Nuxt 3 Module: Built-in configuration with runtimeConfig and automatic module registration.
  • Nitro Server Utility: useServerSpidra(event) offers zero-boilerplate client access in server route handlers (server/api/*).
  • HMAC Webhook Handler: defineSpidraWebhookHandler() verifies asynchronous crawl and batch signatures in Nitro handlers.
  • 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 your runtime configuration.

Configuration

Register the module and credentials in nuxt.config.ts:
And in your root .env file:

Quickstart

1. In a Nitro Server Route

Use useServerSpidra(event) inside any Nitro server API route:

2. Asynchronous Webhooks

Receive and verify crawl, batch, or monitor webhook events in Nitro:

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

Catch and handle granular Spidra errors in Nitro event handlers:

Next.js SDK

App Router, Pages Router, and Server Actions integration.

Remix SDK

Spidra loaders and actions for Remix and React Router.