Skip to content
//Sitemap Extractor example\\

URLs from a sitemap.xml file, 15 URLs

Reads a sitemap file directly.

Updated November 14, 2026

What this example returns

This example returns up to 15 URLs.

The dataset’s “URLs” view shows 11 columns: URL, Last modified, Type, Change freq, Priority, Title, Images, Videos, Status, Sitemap, and Site. See every output field.

What each setting does

The input this example runs Sitemap Extractor with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Websites or sitemap URLs startUrls

https://jestjs.io/sitemap.xml

Domains, home pages, sitemap files (.xml, .xml.gz, .txt) or RSS/Atom feeds. For a domain or page URL the actor reads robots.txt and the common sitemap locations and follows sitemap indexes to the end. A direct sitemap URL extracts just that sitemap and its children.

Max URLs maxUrls

15

Stop after saving this many unique URLs in total (default 10,000). 0 = no limit (every URL in every sitemap).

Default: 10000 → this example uses 15

Only URLs on the same domain sameDomainOnly

Yes

Drop URLs that point to another domain than the input (subdomains of the same domain are kept).

Default: No → this example uses Yes

.json
{
  "startUrls": [
    {
      "url": "https://jestjs.io/sitemap.xml"
    }
  ],
  "sameDomainOnly": true,
  "maxUrls": 15
}

What it costs

From about $0.0015 for 15 URLs

An estimate at the lowest plan price: 15 × $0.000102 per url (One unique URL saved to the dataset). A run is charged for the events it reports, so one that finds fewer URLs costs less. Platform usage is included in the event price.

Full pricing

When to use this example

From the Sitemap Extractor readme:

Known limit

lastmod, changefreq and priority are self-reported by the site and may be missing or inaccurate.

How many URLs can I get?

As many as the sitemaps list. Large sitemaps are streamed, so memory stays flat even for hundreds of thousands of URLs. Use Max URLs or Max URLs per site to cap a run.

Other ways to run Sitemap Extractor

All examples of Sitemap Extractor

About Sitemap Extractor

Extract every URL from a website's XML sitemaps: finds sitemaps via robots.txt and common paths, follows sitemap indexes, reads .xml.gz, text sitemaps and RSS/Atom feeds. Get lastmod, changefreq, priority, image, video and news data, with URL pattern and date filters. No login needed.

Price:
From $0.102 / 1,000 results
Developer:
Querystone

Sitemap Extractor pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.