Extract Page Information API

page_information contains the page's title, description, canonical URL, language and favicon. final_url is the URL after redirects. feeds lists the page's RSS, Atom or JSON feeds.

API examples

Page Information for https://en.wikipedia.org/wiki/Coffee

Page Information for https://en.wikipedia.org/wiki/Coffee

JSON Example

{
  ...
  "page_information": {
    "title": "Coffee - Wikipedia",
    "final_url": "https://en.wikipedia.org/wiki/Coffee",
    "canonical": "https://en.wikipedia.org/wiki/Coffee",
    "language": "en",
    "favicon": "https://en.wikipedia.org/static/favicon/wikipedia.ico"
  }
}

Meta tags for https://en.wikipedia.org/wiki/Coffee


JSON Example

{
  ...
  "meta_tags": {
    "generator": "MediaWiki 1.47.0-wmf.6",
    "robots": "max-image-preview:standard"
  }
}

Feeds


JSON Example

{
  ...
  "feeds": [
    {
      "title": "Wikipedia Atom feed",
      "source": "https://en.wikipedia.org/w/index.php?title=Special:RecentChanges&feed=atom",
      "type": "application/atom+xml"
    }
  ]
}

JSON structure overview

{
  ...
  "page_information": {
    "title": "String - Title of the page",
    "final_url": "String - URL after redirects",
    "description": "String - Content of the description meta tag",
    "canonical": "String - Canonical URL of the page",
    "language": "String - Language from the lang attribute of the html tag",
    "favicon": "String - URL of the page's favicon"
  },
  "meta_tags": {
    "keywords": "String - Content of the keywords meta tag",
    "author": "String - Content of the author meta tag",
    "robots": "String - Content of the robots meta tag",
    "generator": "String - Content of the generator meta tag",
    "application_name": "String - Content of the application-name meta tag"
  },
  "feeds": [
    {
      "title": "String - Title of the feed",
      "source": "String - URL of the feed",
      "type": "String - MIME type of the feed (e.g. 'application/rss+xml', 'application/atom+xml')"
    },
    ...
  ],
  ...
}