Formulas > =IMPORTXML()

How to Use IMPORTXML() in Google Sheets

Description

Imports data from any of various structured data types including XML, HTML, CSV, TSV, and RSS and ATOM XML feeds.

How To Actually Use IMPORTXML() in Sheets

IMPORTXML(url, xpath_query)

Try IMPORTXML yourself

Use the IMPORTXML formula to fetch the title of a webpage and display it in cell A1. The URL to use is 'https://www.example.com' and the XPath query should target the title element.

Hints (2)

Better Sheets Tutorial

Zunaid Asks: How to get Get Meta from URLS? Answer: Use ImportXML()

Zunaid Asks: How to get Get Meta from URLS? Answer: Use ImportXML()

how would I do the following? In Google Sheets, it's in column A I have a list of URLs. For each of those URLs, I want to pull that URL's featured image and meta description, and put those in columns B and C. Here's how you do it. I just grabbed Wikipedia articles for this example.
Get Instagram Follower Accounts in Google Sheets

Get Instagram Follower Accounts in Google Sheets

I will show you how to create a hack to retrieve Instagram follower accounts from any Instagram page using import XML. I will explain the step-by-step process, including how to identify the XML, split it, and extract the follower account. Follow along and try it out yourself.
I Built a SEO Meta Description Writer

I Built a SEO Meta Description Writer

Unlock the Secrets of SEO Meta Descriptions! Learn how to craft compelling meta descriptions using AI and Google Sheets. Boost your website's visibility and engage your audience. Dive into the world of effective SEO writing now! 

Transcript-matched member videos for IMPORTXML(). Click through to watch.

Watch more tutorials
REGEXMATCH Formula Generator for Google Sheets

REGEXMATCH Formula Generator for Google Sheets

Revolutionize the way you handle data with the BetterSheets REGEXMATCHER...
Write Apps Script to Create a New Google Sheets Formula

Write Apps Script to Create a New Google Sheets Formula

Create a brand new custom formula in Apps Script. We'll do this for our ...
One Weird Google Sheet Formula for Bulk Publishing With AI

One Weird Google Sheet Formula for Bulk Publishing With AI

'll show you a game-changing Google Sheet formula that will make your da...
Create a Trello Board with Transpose Formula in Google Sheets

Create a Trello Board with Transpose Formula in Google Sheets

Use Transpose() to create a web-based, Kanban style, list-making applica...

Learn more about the IMPORTXML() formula:

Generate a IMPORTXML() formula for your needs

Describe your task in plain English and get a paste-ready formula that uses IMPORTXML(). 2 free AI generations, no signup. Members get unlimited use.

Generate a IMPORTXML() formula