Get one crawled page
GET/v1/crawls/{crawl_id}/pages/{page_id}
curl "https://api.seoscraper.io/v1/crawls/CRAWL_ID/pages/PAGE_ID" \ -H "Authorization: Bearer ssk_YOUR_KEY"{ "page": { "id": 1, "url": "https://books.toscrape.com", "final_url": "https://books.toscrape.com/", "status": 200, "error": null, "depth": 0, "found_on": "", "title": "All products | Books to Scrape - Sandbox", "meta_description": "", "canonical": "", "index": true, "word_count": 315, "duration_ms": 198, "size_bytes": 51011, "redirects": 0, "h1": 1, "links": 94, "missing_alt": 0 }, "data": { "url": "https://books.toscrape.com", "final_url": "https://books.toscrape.com/", "path": "/", "status": 200, "content_type": "text/html", "redirects": [], "headers": [ { "name": "content-type", "value": "text/html" } ], "duration_ms": 826, "size_bytes": 51294, "truncated": false, "lang": "en-us", "title": "All products | Books to Scrape - Sandbox", "meta_description": "", "canonical": "", "robots": { "meta": "NOARCHIVE,NOCACHE", "x_robots_tag": "", "index": true, "follow": true }, "word_count": 309, "headings": [ { "level": 1, "text": "All products" } ], "links": [ { "url": "https://books.toscrape.com/catalogue/page-2.html", "text": "next", "type": "internal", "rel": "", "nofollow": false } ], "images": [ { "src": "https://books.toscrape.com/media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg", "alt": "A Light in the Attic", "lazy": false, "width": "", "height": "" } ], "html": null }}Path parameters
crawl_idstringrequiredCrawl identifier.
page_idintegerrequiredmin: 1max: 2147483648Page number in the crawl.
Query parameters
include_htmlbooleandefault: falseReturn raw HTML in the response.
Response200
pageobjectThe same data as in the list of pages.
Fields of page
idintegerPage number in the crawl.
urlstringAddress of the page.
final_urlstring | nullAddress after all redirects.
statusinteger | nullnull when the page could not be fetched.
errorstring | nullError code when the page could not be fetched.
depthintegerClicks from the start page.
found_onstringPage with the first link to this one.
titlestringContent of the title tag.
meta_descriptionstringContent of the meta description.
canonicalstringCanonical address.
indexboolean | nullWhether the page may be indexed.
word_countinteger | nullNumber of words in the page content.
duration_msinteger | nullFetch time in milliseconds.
size_bytesinteger | nullSize of the fetched content in bytes.
redirectsintegerNumber of redirects.
h1integerNumber of h1 headings.
linksintegerNumber of links.
missing_altintegerNumber of images without the alt attribute.
dataobject | nullnull when the page could not be fetched.
Fields of data
urlstringRequested address.
final_urlstringAddress after all redirects.
pathstringPath of the final address.
statusintegerHTTP status of the page.
content_typestringContent type sent by the server.
redirectsobject[]Redirects in order, with address and status.
Fields of redirects
urlstringstatusinteger
headersobject[]HTTP headers of the page, names in lowercase.
Fields of headers
namestringvaluestring
duration_msintegerFetch time in milliseconds.
size_bytesintegerSize of the fetched content in bytes.
truncatedbooleanWhether the content was cut at the 10 MB limit.
langstringLanguage from the lang attribute.
titlestringContent of the title tag.
meta_descriptionstringContent of the meta description.
canonicalstringCanonical address.
robotsobjectMeta robots and X-Robots-Tag, with the resulting index and follow.
Fields of robots
metastringContent of meta robots.
x_robots_tagstringValue of the X-Robots-Tag header.
indexbooleanWhether the page may be indexed.
followbooleanWhether its links may be followed.
word_countintegerNumber of words in the page content.
headingsobject[]Headings h1 to h6 in page order.
Fields of headings
levelinteger1 for h1, 6 for h6.
textstring
linksobject[]Links: address, text, type, rel and nofollow.
Fields of links
urlstringtextstringtypestringother: mailto, tel and similar.
internalexternalotherrelstringValue of the rel attribute.
nofollowboolean
imagesobject[]Images: src, alt, lazy and dimensions.
Fields of images
srcstringaltstring | nullnull: missing attribute, empty string: empty alt.
lazybooleanWhether the image has loading=lazy.
widthstringheightstring
htmlstring | nullRaw HTML if you ask for include_html, otherwise null.
Errors
Every error has the same format. See what each code means.
- 401
- unauthorized
- 404
- not_found
- 409
- crawl_not_ready
- 422
- invalid_request