Sitemap URL Extractor avatar

Sitemap URL Extractor

Pricing

$1.00 / 1,000 results

Go to Apify Store
Sitemap URL Extractor

Sitemap URL Extractor

Extract page URLs and last-modified values from XML sitemaps, nested indexes, and gzip sitemap files.

Pricing

$1.00 / 1,000 results

Rating

0.0

(0)

Developer

Ming Zhang

Ming Zhang

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a day ago

Last modified

Categories

Features

Limited permissions

Share

Export page URLs from XML sitemaps for SEO audits, site migrations, and content inventories. The Actor follows nested sitemap indexes, reads gzip-compressed sitemaps, and records which sitemap listed each URL.

Input

FieldDefaultWhat it controls
startUrlsRequiredHTTP(S) URLs for sitemaps, sitemap indexes, or site roots. For each root the Actor tries /sitemap.xml and discovers additional URLs from Sitemap: lines in /robots.txt.
maxSitemaps50Maximum number of distinct sitemap URLs attempted, including indexes and failures.
maxUrls10000Maximum number of dataset rows after filtering and deduplication.
pathContainsEmptyCase-sensitive substring of the URL pathname.
modifiedSinceEmptyInclusive YYYY-MM-DD cutoff. The Actor uses the calendar date written in lastmod and skips URLs with missing or invalid dates when this filter is set.
dedupetrueKeep the first matching occurrence of each normalized URL across all sitemaps.
{
"startUrls": ["https://example.com/sitemap.xml"],
"pathContains": "/articles/",
"modifiedSince": "2026-01-01"
}

Output

The dataset has one row per matching URL. lastmod contains the trimmed value as supplied by the sitemap, or an empty string when absent. sitemap is the requested sitemap URL.

{
"url": "https://example.com/articles/sitemap-basics",
"lastmod": "2026-03-15T09:00:00Z",
"sitemap": "https://example.com/sitemap.xml"
}

Limits

  • Requests run sequentially with a 15-second timeout per request and the user agent OneRice-SitemapExtractor/0.1.
  • Responses are limited to 50 MiB, including after gzip decompression. Sitemaps must be UTF-8 XML. DTDs and custom entities are unsupported.
  • Unavailable and invalid sitemaps are logged and skipped. Results come from page <loc> entries. The Actor fetches sitemap and discovery files only.

Pricing

Pay per result. The owner sets the price in the Apify Store.

Local development

Use Node.js 20 or newer. Run npm test for the offline core tests. Run npm install and then npm start to use the Actor with the Apify SDK. For local storage, place the input JSON in storage/key_value_stores/default/INPUT.json before starting.