pages_info - Ahrefs API

Documentation - pages_info

Contains additional info about the target, such as IP address, canonical URL, social meta tags and social metrics.

Each request to pages_info costs 10 rows.
Each result costs 10 rows.
Using 'where' costs 5 rows.
Using 'having' costs 5 rows.

pages

Column Type Where Having Description
url string + + URL of the crawled page.
ip string + + IP address of the server that returned 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.
canonical_url string + + Canonical URL of the page.
content_encoding string + + Type of encoding used to compress the page data, for example "gzip" or "deflate".
description string + + Description of the crawled page.
meta_social string + + Contents of meta tags for social sharing sites.
twitter int + + Number of Twitter shares of the page.
pinterest int + + Number of Pinterest shares of the page.
facebook_likes int + + Number of Facebook likes of the page.
facebook_shares int + + Number of Facebook shares of the page.
facebook_comments int + + Number of Facebook comments of the page.
facebook_clicks int + + Number of Facebook clicks of the page.
facebook_comments_box int + + Number of Facebook box comments of the page.
facebook int + + Total number of Facebook shares/likes of the page.
total_shares int + + Total number of shares of the page across all social networks.
median_shares int + + Median number of shares of the page across all social networks.

Examples



Request

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

Response

{
  "pages":[
    {
      "url":"https://ahrefs.com/",
      "ip":"192.168.1.1",
      "size":12345,
      "http_code":200,
      "size":9211,
      "links_internal":26,
      "links_external":4,
      "encoding":"utf8",
      "title":"Ahrefs Site Explorer & Backlink Checker",
      "redirect_url":"",
      "canonical_url":"",
      "content_encoding":"gzip",
      "description":"",
      "meta_social":"",
      "twitter":15901,
      "pinterest":6186,
      "facebook_likes":9144,
      "facebook_shares":571,
      "facebook_comments":1134,
      "facebook_clicks":836,
      "facebook_comments_box":964
      "facebook":0,
      "total_shares":0,
      "median_shares":0,
    },
    {
      "url":"http://ahrefs.com/",
      "ip":"192.168.1.1",
      "size":123456,
      "http_code":0,
      "size":0,
      "links_internal":0,
      "links_external":0,
      "encoding":"",
      "title":"",
      "redirect_url":"",
      "canonical_url":"",
      "content_encoding":"",
      "description":"",
      "meta_social":"",
      "twitter":0,
      "pinterest":0,
      "facebook_likes":0,
      "facebook_shares":0,
      "facebook_comments":2334,
      "facebook_clicks":1342,
      "facebook_comments_box":1537
      "facebook":0,
      "total_shares":0,
      "median_shares":0,
    }
  ],
  "stats":{
    "pages":393209
  }
}