Skip to content
Documentation

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"
Response 200
{  "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_idstringrequired

    Crawl identifier.

  • page_idintegerrequiredmin: 1max: 2147483648

    Page number in the crawl.

Query parameters

  • include_htmlbooleandefault: false

    Return raw HTML in the response.

Response200

  • pageobject

    The same data as in the list of pages.

    Fields of page
    • idinteger

      Page number in the crawl.

    • urlstring

      Address of the page.

    • final_urlstring | null

      Address after all redirects.

    • statusinteger | null

      null when the page could not be fetched.

    • errorstring | null

      Error code when the page could not be fetched.

    • depthinteger

      Clicks from the start page.

    • found_onstring

      Page with the first link to this one.

    • titlestring

      Content of the title tag.

    • meta_descriptionstring

      Content of the meta description.

    • canonicalstring

      Canonical address.

    • indexboolean | null

      Whether the page may be indexed.

    • word_countinteger | null

      Number of words in the page content.

    • duration_msinteger | null

      Fetch time in milliseconds.

    • size_bytesinteger | null

      Size of the fetched content in bytes.

    • redirectsinteger

      Number of redirects.

    • h1integer

      Number of h1 headings.

    • linksinteger

      Number of links.

    • missing_altinteger

      Number of images without the alt attribute.

  • dataobject | null

    null when the page could not be fetched.

    Fields of data
    • urlstring

      Requested address.

    • final_urlstring

      Address after all redirects.

    • pathstring

      Path of the final address.

    • statusinteger

      HTTP status of the page.

    • content_typestring

      Content type sent by the server.

    • redirectsobject[]

      Redirects in order, with address and status.

      Fields of redirects
      • urlstring

      • statusinteger

    • headersobject[]

      HTTP headers of the page, names in lowercase.

      Fields of headers
      • namestring

      • valuestring

    • duration_msinteger

      Fetch time in milliseconds.

    • size_bytesinteger

      Size of the fetched content in bytes.

    • truncatedboolean

      Whether the content was cut at the 10 MB limit.

    • langstring

      Language from the lang attribute.

    • titlestring

      Content of the title tag.

    • meta_descriptionstring

      Content of the meta description.

    • canonicalstring

      Canonical address.

    • robotsobject

      Meta robots and X-Robots-Tag, with the resulting index and follow.

      Fields of robots
      • metastring

        Content of meta robots.

      • x_robots_tagstring

        Value of the X-Robots-Tag header.

      • indexboolean

        Whether the page may be indexed.

      • followboolean

        Whether its links may be followed.

    • word_countinteger

      Number of words in the page content.

    • headingsobject[]

      Headings h1 to h6 in page order.

      Fields of headings
      • levelinteger

        1 for h1, 6 for h6.

      • textstring

    • linksobject[]

      Links: address, text, type, rel and nofollow.

      Fields of links
      • urlstring

      • textstring

      • typestring

        other: mailto, tel and similar.

        internalexternalother

      • relstring

        Value of the rel attribute.

      • nofollowboolean

    • imagesobject[]

      Images: src, alt, lazy and dimensions.

      Fields of images
      • srcstring

      • altstring | null

        null: missing attribute, empty string: empty alt.

      • lazyboolean

        Whether the image has loading=lazy.

      • widthstring

      • heightstring

    • htmlstring | null

      Raw 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