Skip to main content
The official .NET SDK for Spidra lets you extract structured data from any website by describing what you want in plain English. It handles JavaScript rendering, anti-bot bypass, and CAPTCHA solving as a managed API, so your code stays focused on the data.

Installation

Requires .NET 8 or later.
Get your API key from app.spidra.io under Settings → API Keys. Keep your API key out of source control — read it from an environment variable or a secrets manager.

Getting started

All requests require an API key. Pass it to the client at initialization:

Quick start

RunAsync submits the job and polls until it completes, then returns the result.

Scraping

RunAsync — submit and wait

Parameters

SubmitAsync + GetAsync — manual control

If you need to track progress yourself, use SubmitAsync and GetAsync directly:
Job statuses: waiting · active · completed · failed

Structured output

Pass a JSON schema to get a typed, deserializable result instead of raw text:
Fields in required always appear in the response (as null if the data is not found). Optional fields are omitted when unavailable.

Batch scraping

Process up to 50 URLs in one call. All URLs are processed in parallel.
Item statuses: pending · running · completed · failed Batch statuses: pending · running · completed · failed · cancelled

Retry failed items


Crawling

Crawl an entire site and extract structured data from each page.
Parameters

Error handling

All exceptions inherit from SpidraException.
SpidraRateLimitException.RetryAfter contains the server-suggested wait time when available.

Elixir

Official Elixir SDK — idiomatic pattern matching, OTP-ready, works with Phoenix and plain Mix projects.

Swift

Official Swift SDK — async/await native, works on iOS, macOS, tvOS, watchOS, and server-side Swift.