XML Sitemap URL and Metadata Batch Extractor avatar

XML Sitemap URL and Metadata Batch Extractor

Pricing

from $0.33 / 1,000 sitemap page url extracteds

Go to Apify Store
XML Sitemap URL and Metadata Batch Extractor

XML Sitemap URL and Metadata Batch Extractor

Extract page URLs and available last-modified date, change frequency, and priority from XML sitemaps. Start with a website or sitemap URL; sitemap indexes, gzip files, and robots.txt Sitemap directives are supported.

Pricing

from $0.33 / 1,000 sitemap page url extracteds

Rating

0.0

(0)

Developer

PlainKit bin

PlainKit bin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Sitemap URL Extractor

Introduction

Sitemap URL Extractor serves as a specialized XML sitemap URL extractor for SEO and site audits, discovering and extracting web page URLs directly from sitemap XML feeds, sitemap indexes, and gzip-compressed sitemaps. It reads robots.txt Sitemap declarations automatically or traverses direct sitemap links, extracting each unique URL alongside available metadata such as lastmod, changefreq, and priority. The Actor fetches sitemaps only without downloading page contents.

Use cases

  • SEO technical auditing: Collect complete inventories of sitemap URLs to feed into site-wide SEO audit tools and crawlers.
  • Content inventory & migration: Build comprehensive crawl lists during domain migrations or content inventory audits.
  • Freshness monitoring: Track changes in lastmod timestamps across recurring sitemap exports.

Tutorial

Step-by-step guide

  1. Prepare a JSON input object specifying start_urls with 1 to 5 website or direct sitemap URLs, and set max_urls (1 to 500).
  2. Start the Actor execution on the Apify platform or trigger it via the Apify API.
  3. The Actor inspects robots.txt, identifies sitemaps or sitemap indexes, uncompresses gzip files if necessary, and extracts unique URLs.
  4. Export the extracted page list and metadata in JSON, CSV, or Excel format.

Pricing

The Actor is priced per extracted unique page URL under the Pay-Per-Event model using the page-url-extracted event.

Usage tierPrice per page URL
FREE$0.0005
BRONZE$0.00045
SILVER$0.0004
GOLD, PLATINUM, DIAMOND$0.000333

Charge contract

Each row is pushed first and charged right after a successful push; a refused charge stops work and that row stays delivered and uncharged; a reached limit stops work after that row was charged; failed items are neither pushed nor charged. Status records written to the key-value store under STATUS are uncharged. Rows already in the dataset of a restarted run are skipped and not charged again; if the dataset of a restarted run cannot be read, the run fails with DATASET_READ_FAILED before any new row or charge.

Operational limits

  • Accepts 1 to 5 starting URLs per run.
  • Extracts up to 500 unique page URLs (max_urls configurable 1 to 500, default 100).
  • Traverses sitemap indexes up to depth 2, processing at most 20 sitemap files.
  • Maximum sitemap size is 1,000,000 bytes before and after gzip expansion.
  • Crawl-delay is capped at 14 seconds per origin; higher crawl delays trigger a safe skip.
  • Request timeout is 20 seconds with up to 5 redirect hops. Private IP ranges are blocked.

Input and output examples

Input example

{
"start_urls": [
"https://www.sitemaps.org/sitemap.xml"
],
"max_urls": 100
}

Output example

{
"record_type": "page",
"url": "https://www.sitemaps.org/protocol.html",
"lastmod": "2026-10-11",
"changefreq": "weekly",
"priority": 0.8,
"sitemap": "https://www.sitemaps.org/sitemap.xml"
}

Output fields

FieldTypeDescription
record_typeStringType indicator (page)
urlStringExtracted target page URL
lastmodStringLast modified date string when available in sitemap
changefreqStringExpected change frequency hint (e.g. weekly, monthly)
priorityNumberPriority score (0.0 to 1.0) declared in sitemap
sitemapStringSource sitemap file URL where the item was found

Actor recommendations

Pair this Actor with:

  • SEO On-Page Audit: Audit technical SEO factors on the URLs extracted from your sitemap.
  • Readable Article Extractor: Extract clean article copy from all newly discovered blog posts in the sitemap.
  • Web Page to Markdown Converter: Convert full sitemap pages into Markdown documentation sets.

FAQ and support

Does the Actor fetch or crawl page contents?

No. The Actor processes XML sitemap and robots documents only; it does not download destination web pages.

Does it support compressed gzip (.xml.gz) sitemaps?

Yes. Both uncompressed XML and gzip-compressed sitemaps are automatically decompressed and parsed.

How does it discover sitemaps from a base domain?

When given a website URL, the Actor inspects robots.txt for Sitemap: directives, defaulting to /sitemap.xml if none are found.

Support and inquiries

For issues, bug reports, or feature requests, submit a ticket in the Apify Console.