{"id":167,"date":"2019-05-26T08:17:47","date_gmt":"2019-05-26T08:17:47","guid":{"rendered":"http:\/\/www.countingcharacters.com\/blog\/?p=167"},"modified":"2021-04-18T06:58:16","modified_gmt":"2021-04-18T06:58:16","slug":"extract-meta-tags","status":"publish","type":"post","link":"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/","title":{"rendered":"How to Extract Meta Tags from a Website Using Google Sheets?"},"content":{"rendered":"\n<p>Are you doing on page optimization of your website? If yes, so I think meta tags optimization is on top of your task list. To optimize meta tags, first you need to know what meta tags are present in the targeted web pages. <\/p>\n\n\n\n<p>To do this, you can use Screaming Frog or other any software. But what if you haven&#8217;t this tool or you want to extract metadata of few selected URLs. On that time, you can use Google Sheets to extract page title and meta description of your targeted pages. <\/p>\n\n\n\n<p><strong>Follow below mentioned steps to extract meta tags from a website using Google Sheets: <\/strong><\/p>\n\n\n\n<ol><li> Create a new Google spreadsheet by entering <a rel=\"nofollow\" href=\"http:\/\/sheets.new\">sheets.new<\/a> in the URL bar.<br><\/li><li>After creating a spreadsheet, put down your URL list in a sheet, column A. <br><\/li><li>Now enter the =IMPORTXML() formula in the second column. <br><br><code>=IMPORTXML(URL of the page, xpath_query)<\/code><br><\/li><li>This formula requires two parameters, the first is URL, from where you want to extract data. In the second parameter, you have to enter XPATH of your webpage element. For example, you can enter &#8220;\/\/h1&#8221; to extract the H1 of your targeted page.<br><br><code>=IMPORTXML(\"URL of the Page\", \"\/\/h1\")<\/code><br> <\/li><li>To extract page title of your targeted web page, enter this formula<br><br><code>=IMPORTXML(\"URL\",\"\/\/title\")<\/code>.<br><br><img decoding=\"async\" loading=\"lazy\" width=\"887\" height=\"197\" class=\"wp-image-168\" style=\"width: 800px;\" src=\"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-page-title-in-google-sheets-e1604826937959.png\" alt=\"Extract Page Title from a Website Using Google Sheets\" srcset=\"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-page-title-in-google-sheets-e1604826937959.png 887w, https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-page-title-in-google-sheets-e1604826937959-300x67.png 300w, https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-page-title-in-google-sheets-e1604826937959-768x171.png 768w\" sizes=\"(max-width: 887px) 100vw, 887px\" \/><br><\/li><li>To extract meta description of your targeted web page, enter this formula <br><br><code>=IMPORTXML(\"URL\",\"\/\/meta[@name=\u2019description\u2019]\/@content\")<\/code>.<br><br><img decoding=\"async\" loading=\"lazy\" width=\"917\" height=\"197\" class=\"wp-image-172\" style=\"width: 800px;\" src=\"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-description-in-google-sheets-1-e1604827048494.png\" alt=\"Extract Meta Description Using Google Sheets\" srcset=\"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-description-in-google-sheets-1-e1604827048494.png 917w, https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-description-in-google-sheets-1-e1604827048494-300x64.png 300w, https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-description-in-google-sheets-1-e1604827048494-768x165.png 768w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><br><\/li><li>After entering this both formulas in B and C column, now you can drag it down to extract data of all URLs.<\/li><\/ol>\n\n\n\n<p>Now you understand how to extract meta tags, if you want to rewrite your meta tags and optimize for the SEO, you should use our <a href=\"https:\/\/www.countingcharacters.com\/google-serp-tool\">meta description length checker<\/a> that lets you check the character &amp; pixel length of a page title &amp; meta description. By using our tool, you can optimize your meta tags and get outstanding results in the SEO.<\/p>\n\n\n\n<p>I hope you understand IMPORTXML formula, if you have any doubt, so you should check out this <a href=\"https:\/\/www.countingcharacters.com\/blog\/google-sheets-importxml\/\">IMPORTXML<\/a> formula guide.<\/p>\n\n\n\n<p>You can also make a copy of Google Sheet by clicking on below button. In this sheet I have shared the examples.<\/p>\n\n\n\n<a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1VvvKsLTmNS8PlXgybNdzhP0OJaAvEsU5xuIcaqzsm9E\/copy\" rel=\"nofollow\"><button style=\"margin:10px;\">See Demo, Make Copy of Sheet<\/button><\/a>\n","protected":false},"excerpt":{"rendered":"<p>Are you doing on page optimization of your website? If yes, so I think meta tags optimization is on top of your task list. To optimize meta tags, first you need to know what meta tags are present in the targeted web pages. To do this, you can use Screaming Frog or other any software. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":175,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Extract Meta Tags from a Website Using Google Sheets? - Blog - Counting Characters<\/title>\n<meta name=\"description\" content=\"In this tutorial, I will explain how to extract meta tags from a website in bulk using Google Sheets. After learn this you can extract meta data from list of URLs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Extract Meta Tags from a Website Using Google Sheets? - Blog - Counting Characters\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, I will explain how to extract meta tags from a website in bulk using Google Sheets. After learn this you can extract meta data from list of URLs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Counting Characters\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-26T08:17:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-18T06:58:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-tags-using-google-sheets-e1604826759573.png\" \/>\n\t<meta property=\"og:image:width\" content=\"984\" \/>\n\t<meta property=\"og:image:height\" content=\"236\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mohit Harjai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/#website\",\"url\":\"https:\/\/www.countingcharacters.com\/blog\/\",\"name\":\"Blog - Counting Characters\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.countingcharacters.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-tags-using-google-sheets-e1604826759573.png\",\"contentUrl\":\"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-tags-using-google-sheets-e1604826759573.png\",\"width\":984,\"height\":236,\"caption\":\"Extract Meta Tags Using Google Sheets\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#webpage\",\"url\":\"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/\",\"name\":\"How to Extract Meta Tags from a Website Using Google Sheets? - Blog - Counting Characters\",\"isPartOf\":{\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#primaryimage\"},\"datePublished\":\"2019-05-26T08:17:47+00:00\",\"dateModified\":\"2021-04-18T06:58:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/#\/schema\/person\/42edab7be3c3c5054649c5ff3c234b5f\"},\"description\":\"In this tutorial, I will explain how to extract meta tags from a website in bulk using Google Sheets. After learn this you can extract meta data from list of URLs.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.countingcharacters.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Extract Meta Tags from a Website Using Google Sheets?\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/#\/schema\/person\/42edab7be3c3c5054649c5ff3c234b5f\",\"name\":\"Mohit Harjai\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.countingcharacters.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5e9de236da67b39efeabc42863395e36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5e9de236da67b39efeabc42863395e36?s=96&d=mm&r=g\",\"caption\":\"Mohit Harjai\"},\"description\":\"He is fond of digital marketing skills and loves to do creative things in a digital planet.\",\"sameAs\":[\"https:\/\/www.countingcharacters.com\"],\"url\":\"https:\/\/www.countingcharacters.com\/blog\/author\/mohitharjai\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Extract Meta Tags from a Website Using Google Sheets? - Blog - Counting Characters","description":"In this tutorial, I will explain how to extract meta tags from a website in bulk using Google Sheets. After learn this you can extract meta data from list of URLs.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/","og_locale":"en_US","og_type":"article","og_title":"How to Extract Meta Tags from a Website Using Google Sheets? - Blog - Counting Characters","og_description":"In this tutorial, I will explain how to extract meta tags from a website in bulk using Google Sheets. After learn this you can extract meta data from list of URLs.","og_url":"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/","og_site_name":"Blog - Counting Characters","article_published_time":"2019-05-26T08:17:47+00:00","article_modified_time":"2021-04-18T06:58:16+00:00","og_image":[{"width":984,"height":236,"url":"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-tags-using-google-sheets-e1604826759573.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mohit Harjai","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.countingcharacters.com\/blog\/#website","url":"https:\/\/www.countingcharacters.com\/blog\/","name":"Blog - Counting Characters","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.countingcharacters.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#primaryimage","inLanguage":"en-US","url":"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-tags-using-google-sheets-e1604826759573.png","contentUrl":"https:\/\/www.countingcharacters.com\/blog\/wp-content\/uploads\/2019\/05\/extract-meta-tags-using-google-sheets-e1604826759573.png","width":984,"height":236,"caption":"Extract Meta Tags Using Google Sheets"},{"@type":"WebPage","@id":"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#webpage","url":"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/","name":"How to Extract Meta Tags from a Website Using Google Sheets? - Blog - Counting Characters","isPartOf":{"@id":"https:\/\/www.countingcharacters.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#primaryimage"},"datePublished":"2019-05-26T08:17:47+00:00","dateModified":"2021-04-18T06:58:16+00:00","author":{"@id":"https:\/\/www.countingcharacters.com\/blog\/#\/schema\/person\/42edab7be3c3c5054649c5ff3c234b5f"},"description":"In this tutorial, I will explain how to extract meta tags from a website in bulk using Google Sheets. After learn this you can extract meta data from list of URLs.","breadcrumb":{"@id":"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.countingcharacters.com\/blog\/extract-meta-tags\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.countingcharacters.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Extract Meta Tags from a Website Using Google Sheets?"}]},{"@type":"Person","@id":"https:\/\/www.countingcharacters.com\/blog\/#\/schema\/person\/42edab7be3c3c5054649c5ff3c234b5f","name":"Mohit Harjai","image":{"@type":"ImageObject","@id":"https:\/\/www.countingcharacters.com\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/5e9de236da67b39efeabc42863395e36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5e9de236da67b39efeabc42863395e36?s=96&d=mm&r=g","caption":"Mohit Harjai"},"description":"He is fond of digital marketing skills and loves to do creative things in a digital planet.","sameAs":["https:\/\/www.countingcharacters.com"],"url":"https:\/\/www.countingcharacters.com\/blog\/author\/mohitharjai\/"}]}},"_links":{"self":[{"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/posts\/167"}],"collection":[{"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":22,"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":348,"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/posts\/167\/revisions\/348"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/media\/175"}],"wp:attachment":[{"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.countingcharacters.com\/blog\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}