Documentation - pages

Contains the crawled pages. The result is similar to the crawled pages report found in the raw data export in Site Explorer.

Each request to pages costs 1 row.
Each result costs 0.2 row.
Using 'offset' costs 5 rows.
Using 'where' costs 5 rows.
Using 'having' costs 5 rows.

pages

Column Type Where Having Description
url string + + URL of the crawled page.
ahrefs_rank int + + URL Rating of the page.
last_visited date + + Most recent date when the Ahrefs crawler was able to crawl the page.
http_code int + + HTTP code that was last returned for the page.
size int + + Size of the crawled page, in bytes.
links_internal int + + Number of internal links found in the crawled page.
links_external int + + Number of external links found in the crawled page.
encoding string + + Character encoding of the page, for example "utf8" or "iso-8859-1" (Latin-1).
title string + + Title of the crawled page.
redirect_url string + + URL where the page redirects to.
content_encoding string + + Type of encoding used to compress the page data, for example "gzip" or "deflate".

Examples



Request

http://apiv2.ahrefs.com?from=pages&target=ahrefs.com&mode=domain&limit=2&output=xml

Response

<?xml version="1.0" encoding="UTF-8"?>
<AhrefsApiResponse>
  <pages>
    <page>
      <url>
        https://ahrefs.com/
      </url>
      <ahrefs_rank>
        21914831645
      </ahrefs_rank>
      <last_visited>
        2013-11-20T09:46:29Z
      </last_visited>
      <http_code>
        200
      </http_code>
      <size>
        9211
      </size>
      <links_internal>
        26
      </links_internal>
      <links_external>
        4
      </links_external>
      <encoding>
        utf8
      </encoding>
      <title>
        Ahrefs Site Explorer & Backlink Checker
      </title>
      <redirect_url>
        
      </redirect_url>
      <content_encoding>
        gzip
      </content_encoding>
    </page>
    <page>
      <url>
        http://ahrefs.com/
      </url>
      <ahrefs_rank>
        22320239807
      </ahrefs_rank>
      <last_visited>
        2013-11-23T16:50:51Z
      </last_visited>
      <http_code>
        301
      </http_code>
      <size>
        20
      </size>
      <links_internal>
        1
      </links_internal>
      <links_external>
        0
      </links_external>
      <encoding>
        raw
      </encoding>
      <title>
        
      </title>
      <redirect_url>
        https://ahrefs.com/
      </redirect_url>
      <content_encoding>
        gzip
      </content_encoding>
    </page>
  </pages>
  <stats>
    <pages>
      26699
    </pages>
  </stats>
</AhrefsApiResponse>