Get Search Job Status
curl --request GET \
--url https://api.spidra.io/api/search/{jobId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spidra.io/api/search/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spidra.io/api/search/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spidra.io/api/search/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.spidra.io/api/search/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.spidra.io/api/search/{jobId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/search/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "active",
"progress": {
"message": "Trying google for web...",
"progress": 0.3
},
"result": null,
"error": null
}Search Endpoints
Get Search Job Status
Poll the status of a running search job. Returns progress and the full result set when the job completes.
GET
/
search
/
{jobId}
Get Search Job Status
curl --request GET \
--url https://api.spidra.io/api/search/{jobId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spidra.io/api/search/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spidra.io/api/search/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spidra.io/api/search/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.spidra.io/api/search/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.spidra.io/api/search/{jobId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/search/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "active",
"progress": {
"message": "Trying google for web...",
"progress": 0.3
},
"result": null,
"error": null
}Polling Pattern
Search jobs usually resolve in 1-8 seconds (occasional automatic retries take a bit longer), but they still go through the same async job pattern as scrape and crawl for consistency.async function waitForResult(jobId) {
while (true) {
const res = await fetch(`https://api.spidra.io/api/search/${jobId}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' }
});
const data = await res.json();
if (data.status === 'completed') return data.result;
if (data.status === 'failed') throw new Error(data.error);
await new Promise(r => setTimeout(r, 1500));
}
}
Response Structure
{
"status": "completed",
"progress": { "message": "Search completed successfully", "progress": 1 },
"result": {
"success": true,
"data": {
"web": [
{ "title": "...", "url": "...", "description": "...", "position": 1 }
]
},
"stats": {
"durationMs": 1714
}
},
"error": null
}
result.data
One key per requested source (web, news, images, videos), each an array of result objects. Fields vary slightly by source:
| Field | Sources | Description |
|---|---|---|
title | all | Result title |
url | all | Link to the result |
description | web, news | Snippet text |
position | all | 1-indexed rank within that source |
imageUrl | images | Full-size image URL |
thumbnailUrl | images, news, videos | Thumbnail URL |
source | news | Publisher name |
date | news, videos | Relative or absolute date string |
duration | videos | Video length, e.g. "12:43" |
result.stats
| Field | Description |
|---|---|
durationMs | How long the whole job took, in milliseconds |
result.success: false with an empty data object means Spidra could not retrieve results for every requested source after retrying — this is rare, but is a normal “no results” outcome, not treated as a hard error, and isn’t billed.Authorizations
BearerAuthApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The job ID returned from POST /search
Was this page helpful?

