Category: FUNCTION | Updated: 2026-11-22
How to Use the IMPORTFEED Function: Fetch Latest Article Lists from RSS and Atom Feeds
Overview of the IMPORTFEED Function
The IMPORTFEED function takes the URL of an RSS or Atom feed published by a website or blog and automatically fetches a list of the latest articles—including titles, URLs, publication dates, and summaries. It is useful for monitoring competitor blog updates and building information-gathering dashboards.
Syntax
=IMPORTFEED(url, [query], [headers], [num_items])
- url: The URL of the RSS or Atom feed (
"https://.../feed"or"https://.../rss.xml"). - query (optional): Specifies the type of data to fetch. Defaults to
"items"(all fields for the article list). - headers (optional): Specify
TRUEorFALSE(default) to include a header row of column names in the first row. - num_items (optional): The maximum number of articles to fetch, specified as a number.
Practical Examples with a Table
This example fetches the latest 5 articles with headers, or just the latest 3 titles, from a news site’s RSS feed.
| Cell | A (Feed URL) | B (Formula) | C (Sample Result) |
|---|---|---|---|
| 1 | RSS URL | Formula | Expanded Output |
| 2 | https://example.com/feed.xml | =IMPORTFEED(A2, "items", TRUE, 5) |
Expands 5 columns × 6 rows (Title / Author / URL / Date Created / Summary) |
| 3 | https://example.com/feed.xml | =IMPORTFEED(A3, "items title", FALSE, 3) |
Expands only the latest 3 article titles vertically across 3 rows |
Common Errors and Precautions
- Passing a regular web page URL (
#N/Aerror): You must pass the XML feed URL (RSS/Atom), not the website’s homepage URL. If the site does not offer an RSS feed, it cannot be fetched. - Cell collision in the expansion range (
#REF!error): Because cells automatically expand downward and rightward for the number of fetched items, an error occurs if other data occupies the surrounding cells. - Outdated feed formats or malformed XML: If the source XML has syntax errors, Google Sheets may fail to parse it and return an
#N/Aerror.
Frequently Asked Questions
Q. What types of items (queries) can be retrieved with IMPORTFEED?
A. Options include "feed" for overall feed information, "items" for full article entries, and specific elements like "items title", "items url", and "items created".
Q. Can I limit the number of articles fetched by IMPORTFEED?
A. Yes. By passing a number as the fourth argument 'num_items', you can limit the output to the latest N items.