Skip to content
Documentation

SQLite file

The whole crawl in one file that opens in any SQLite program.

Download

In the panel click Download SQLite on the page of a crawl. In the API:

curl -L --compressed -o crawl.sqlite \
  https://api.seoscraper.io/v1/crawls/CRAWL_ID/download \
  -H "Authorization: Bearer ssk_YOUR_KEY"

The file is sent compressed with gzip. Browsers and most HTTP libraries unpack it on their own, and curl needs --compressed.

Open it with the sqlite3 program, DB Browser for SQLite, Python, DuckDB or any other tool that reads SQLite.

Tables

crawl

One row about the whole crawl: start_url, options (JSON), mode, stop_reason, started_at, finished_at, pages.

pages

ColumnContent
idPage number, the same as in the API
url, final_url, pathAddress, address after redirects, path
status, errorHTTP status, or an error code when there was no response
depth, found_onClicks from the start page, page with the first link
content_type, langContent type, language
title, meta_description, canonicalMetadata
robots_meta, x_robots_tagMeta robots, X-Robots-Tag header
is_index, is_follow1 when indexing and following links is allowed
word_countNumber of words
duration_ms, size_bytes, truncatedFetch time, size, 1 when the content was cut
redirectsRedirects as JSON

Other tables

Each has page_id, which points to pages.id.

TableColumns
linksurl, text, type (internal, external, other), rel, nofollow
imagessrc, alt, lazy, width, height
headingslevel, text
headersname, value
htmlhtml, compressed with zstd

Sample queries

Broken links and the pages they are on:

SELECT source.path, links.text, target.url, target.status
FROM links
JOIN pages AS source ON source.id = links.page_id
JOIN pages AS target ON target.url = links.url
WHERE target.status >= 400
ORDER BY target.url;

Pages with the same title:

SELECT title, count(*) AS pages, group_concat(path, ', ') AS paths
FROM pages
WHERE title <> ''
GROUP BY title
HAVING count(*) > 1
ORDER BY pages DESC;

Pages with the fewest internal links leading to them:

SELECT pages.url, count(links.url) AS incoming
FROM pages
LEFT JOIN links ON links.url = pages.url AND links.type = 'internal' AND links.page_id <> pages.id
GROUP BY pages.id
ORDER BY incoming;

Images without alt:

SELECT pages.url, images.src
FROM images
JOIN pages ON pages.id = images.page_id
WHERE images.alt IS NULL;

Raw HTML

HTML is compressed with zstd. In Python, after pip install zstandard:

import sqlite3
import zstandard

db = sqlite3.connect("crawl.sqlite")
unpack = zstandard.ZstdDecompressor().decompress
for url, html in db.execute("SELECT url, html FROM html JOIN pages ON pages.id = html.page_id"):
    print(url, len(unpack(html).decode()))