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)

3 Better Sheets Tutorials

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.
IMPORTXML()
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.
IMPORTXML() INDEX() SPLIT()
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! 
IF() IMPORTXML() INDEX() ISBLANK() LEN() +1 more

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