Skip to main content
POST

How It Works

Search runs asynchronously, same pattern as scrape and crawl: submit a query, get a jobId back immediately, then poll GET /search/{jobId} until status is completed.
  1. Submit - Send your query, receive a jobId right away
  2. Resolve - Spidra fetches real results, automatically retrying against alternate providers behind the scenes if one is temporarily blocked
  3. Poll - Check GET /search/{jobId} until status: "completed"
Automated requests to any web search provider can be intermittently blocked. Rather than surfacing that as a failure, Spidra retries automatically until it gets real results back — you don’t need to build retry logic yourself, and which provider ultimately answered is an internal implementation detail, not something you need to think about or configure.

Sources

By default a search only returns web results. Request additional sources with the sources array:
If a non-web source is temporarily unavailable, that source comes back as an empty array rather than failing the whole request.

Geo-Targeting

Pass country to localize results to a specific region — a 2-letter country code, or global, eu, asia:

Result Limit

Control how many results come back per source (1-20, default 10):

Check Job Status

Poll for results

View Logs

See your search history

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
string
required

The search query

Maximum string length: 2000
sources
enum<string>[]

Which result types to fetch

Available options:
web,
news,
images,
videos
limit
integer
default:10

Results per source

Required range: 1 <= x <= 20
country
string

2-letter country code, or 'global', 'eu', 'asia'

Response

Job successfully queued

status
enum<string>
Available options:
queued
jobId
string

Unique job identifier for polling

message
string
deduplicated
boolean

True if an identical request was made within the last 5 seconds and this returns the existing job ID