Get a crawl report
curl --request GET \
--url https://api.spidra.io/api/crawl/{jobId}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spidra.io/api/crawl/{jobId}/report"
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/crawl/{jobId}/report', 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/crawl/{jobId}/report",
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/crawl/{jobId}/report"
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/crawl/{jobId}/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/crawl/{jobId}/report")
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": "success",
"report": {
"understoodAs": "Individual book detail pages in the mystery category.",
"navigationPages": 1,
"skippedTotal": 60,
"skipped": [
{
"reason": "not_relevant",
"count": 60,
"description": "Didn't match the crawl instruction"
}
],
"skippedUrls": [
{
"url": "https://books.toscrape.com/index.html",
"reason": "not_relevant",
"foundOn": "https://books.toscrape.com/catalogue/category/books/mystery_3/index.html"
},
{
"url": "https://books.toscrape.com/catalogue/category/books_1/index.html",
"reason": "not_relevant",
"foundOn": "https://books.toscrape.com/catalogue/category/books/mystery_3/index.html"
}
],
"skippedUrlsTotal": 60
}
}Crawl
Get a crawl report
Returns how a crawl understood its instruction, how many pages it read only to find the ones it returned, and every link it skipped with the reason. Use it when a crawl returned fewer pages than you expected.
report is null while the crawl runs, and for crawls run before reports existed. Up to 2,000 skipped links are kept per crawl. Filter them with reason and page through them with limit and offset. The reasons are explained in the Crawl guide.
GET
/
crawl
/
{jobId}
/
report
Get a crawl report
curl --request GET \
--url https://api.spidra.io/api/crawl/{jobId}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spidra.io/api/crawl/{jobId}/report"
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/crawl/{jobId}/report', 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/crawl/{jobId}/report",
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/crawl/{jobId}/report"
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/crawl/{jobId}/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/crawl/{jobId}/report")
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": "success",
"report": {
"understoodAs": "Individual book detail pages in the mystery category.",
"navigationPages": 1,
"skippedTotal": 60,
"skipped": [
{
"reason": "not_relevant",
"count": 60,
"description": "Didn't match the crawl instruction"
}
],
"skippedUrls": [
{
"url": "https://books.toscrape.com/index.html",
"reason": "not_relevant",
"foundOn": "https://books.toscrape.com/catalogue/category/books/mystery_3/index.html"
},
{
"url": "https://books.toscrape.com/catalogue/category/books_1/index.html",
"reason": "not_relevant",
"foundOn": "https://books.toscrape.com/catalogue/category/books/mystery_3/index.html"
}
],
"skippedUrlsTotal": 60
}
}Authorizations
BearerAuthApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The crawl's jobId.
Query Parameters
Only list skipped links with this reason.
Available options:
not_relevant, outside_start_path, outside_domain, include_pattern, exclude_pattern, file_type, other_version_or_language, duplicate_page, redirected_off_site, robots_txt, action_link Skipped links per call, from 1 to 2,000.
Required range:
1 <= x <= 2000How many skipped links to skip.
Required range:
x >= 0Was this page helpful?

