Sitemap Crawler — Every URL a Site Publishes avatar

Sitemap Crawler — Every URL a Site Publishes

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Sitemap Crawler — Every URL a Site Publishes

Sitemap Crawler — Every URL a Site Publishes

Enumerate a website's full URL list from its sitemaps. Follows sitemap indexes, handles gzip, reads robots.txt, and returns lastmod, changefreq and priority. Keyless, HTTP-only, no browser.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

Farhan Febrian Nauval

Farhan Febrian Nauval

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

16 days ago

Last modified

Features

Limited permissions

Share

Give it a domain, get back the site's full URL list from its sitemaps, with lastmod, changefreq and priority where the site provides them. Follows sitemap indexes, handles gzip, reads robots.txt. Keyless, HTTP-only, no browser.

Useful as a first step for anything that needs to know what a site contains: feeding a RAG index, auditing SEO coverage, or watching for new pages over time.

Input

{
"sites": ["apify.com", "https://www.shopify.com/sitemap.xml"],
"maxUrlsPerSite": 1000,
"urlPattern": "/blog/"
}

A bare domain, a site URL, or a direct sitemap URL all work.

What you get

FieldMeaning
url, host, pathThe published URL, split for easy filtering
lastmodWhen the site says the page last changed
changefreq, priorityThe site's own hints, when present
hasNewsMetadata, hasImageMetadata, hasVideoMetadataWhether the entry carries those sitemap extensions
alternateLanguagesCount of xhtml:link alternates, for multilingual sites
sitemapUrl, sitemapDepthWhich sitemap file this URL came from, and how deep

Things worth knowing

robots.txt is not a reliable index. Four of ten sites tested named no sitemap in robots.txt while still serving a perfectly good one — shopify.com among them. This actor tries robots.txt first and then the conventional paths, so a silent robots file is not treated as "no sitemap".

A sitemap URL is often an index of sitemaps. apify.com's is a <sitemapindex> pointing at 15 children, which between them publish over 600,000 URLs. Indexes are followed automatically, up to maxSitemapFiles and three levels of nesting.

Set maxUrlsPerSite deliberately. Large sites are very large. The limit counts URLs returned, so it still means what it says when urlPattern is set — a narrow pattern keeps searching later files rather than quietly handing back a short list.

200 does not mean sitemap. reddit.com/sitemap.xml answers 200 with an HTML page. This actor inspects the body and reports not_a_sitemap with the first bytes it saw, rather than parsing nothing and calling it empty.

Gzip is handled either way. A .xml.gz URL usually arrives already inflated, because servers send Content-Encoding: gzip. Some serve the file with no such header; the gzip magic bytes are checked and inflated by hand when that happens.

A refusal can be a 406 with an empty body. github.com/sitemap.xml returns 406 and zero bytes for every Accept header, including none — so some hosts simply do not serve sitemaps to anyone. Two User-Agents are tried before a host is called closed, because a few hosts reject unfamiliar agents and a few reject browsers.

Failure reporting

_errorMeaning
no_sitemap_urlsNo sitemap found or readable — the detail lists what was tried
no_urls_matchedSitemaps read fine, but urlPattern excluded every URL (not a run failure)

If no site yields a readable sitemap the run aborts rather than finishing empty.

Pair it with Website Content Extractor to turn the URL list into clean article text, or with RAG Web Search when you want to start from a question instead of a domain.