Syntax

IMPORTXML(url, xpath_query)

Arguments

The printed syntax lists 2 argument(s), in order:

  • url
  • xpath_query

“optional” marks an argument Google prints in square brackets; “repeatable” marks one Google prints with “…”.

Description from Google Docs Editors Help

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

Google’s help article for IMPORTXML →

Source: Google Docs Editors Help, “Google Sheets function list” (support.google.com/docs/table/25273), record record 514 of 516, data fetched 28 September 2026. Data month: September 2026.