Sitemap Extractor & URL Classifier (Sitemap Parser API) avatar

Sitemap Extractor & URL Classifier (Sitemap Parser API)

Pricing

from $0.20 / 1,000 url returneds

Go to Apify Store
Sitemap Extractor & URL Classifier (Sitemap Parser API)

Sitemap Extractor & URL Classifier (Sitemap Parser API)

Sitemap Extractor is an Apify Actor that pulls every URL from a site's sitemaps and robots.txt and tags it as pricing, docs, blog, changelog, legal or support.

Pricing

from $0.20 / 1,000 url returneds

Rating

0.0

(0)

Developer

mohamed senator

mohamed senator

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

Sitemap Extractor & URL Classifier (API name s3nafps/sitemap-intelligence-api) is an Apify Actor by Mohamed Senator that reads a website's public sitemaps and robots.txt, deduplicates every URL, and classifies each page by business use — pricing, docs, blog, changelog, product, legal, support, landing page — with a confidence score. It returns one structured record per URL for $0.0002 each.

demo

What does Sitemap Extractor do?

  • Normalizes domains (no protocol → HTTPS) and sitemap URLs
  • Checks /sitemap.xml and, optionally, sitemap references in robots.txt
  • Parses sitemap indexes and URL sets, deduplicates URLs
  • Classifies URLs by path (and optionally page-title) signals, with confidenceScore 0–1 and detectedSignals
  • Keeps sitemap metadata: lastModified, priority, changeFrequency

How do I get all URLs from a website's sitemap?

  1. Enter 1–20 domains or sitemap URLs in startUrls.
  2. Keep includeRobotsTxt and classifyUrls on (defaults).
  3. Set maxUrls (default 5,000, max 10,000).
  4. Click Start and export JSON or CSV.

How do I use it with ChatGPT, Claude or an MCP agent?

Add https://mcp.apify.com/?actors=s3nafps/sitemap-intelligence-api as an MCP server in Claude, Cursor, VS Code or any MCP client (see mcp.apify.com). Then ask e.g. "Find the pricing and changelog pages on example.com." Pair it with Website to Markdown Crawler to read the docs/blog pages it finds.

Use cases

  • Website URL inventory for SEO or content audits
  • Find competitor pricing, docs, blog, changelog and legal pages
  • Prepare crawl targets for monitoring or extraction
  • Group large sitemaps by page type before analysis
  • Scheduled refreshes of public URL inventories

Input example

{
"startUrls": ["https://www.apify.com"],
"includeRobotsTxt": true,
"maxUrls": 50,
"classifyUrls": true,
"fetchPageTitles": false
}

Output example

{
"domain": "www.apify.com",
"sitemapUrl": "https://www.apify.com/sitemap.xml",
"url": "https://www.apify.com/pricing",
"path": "/pricing",
"pageType": "pricing",
"confidenceScore": 0.7,
"detectedSignals": ["\\b(pricing|plans|price)\\b"],
"title": null,
"lastModified": "2026-01-01",
"priority": "0.8",
"changeFrequency": "weekly",
"discoveredFrom": "https://www.apify.com/sitemap.xml",
"scrapedAt": "2026-07-04T00:00:00.000Z"
}

If no sitemap URLs are found for a start URL you get an item with extractionStatus: "failed" and an errorMessage.

How much does it cost?

Pay per event: $0.0002 per URL returned ($0.20 per 1,000 URLs) plus an Actor start event of $0.05 per GB of memory.

⚠️ Verify before publishing: the API lists the start event at $0.05/GB, while the other Actors charge $0.00005. Fix if unintended — it dominates the cost of small runs.

FAQ

How do I extract all URLs from a sitemap.xml? Give the domain or sitemap URL to this Actor; it follows sitemap indexes and returns every deduplicated URL.

How can I find a competitor's pricing or changelog page? Run it with classifyUrls: true and filter results by pageType = pricing or changelog.

What if the site has no sitemap? Enable includeRobotsTxt to find sitemaps listed there; if none exist, the Actor returns a failed item with the reason. It does not crawl links.

How accurate is the page-type classification? It is heuristic (path/regex signals); enable fetchPageTitles for stronger signals at the cost of speed.

How many URLs can I extract per run? Up to 10,000 (maxUrls), across up to 20 start URLs.

Can it access private or login-protected pages? No. Public sitemaps and robots.txt only.

Limitations

Public data only; completeness depends on what sites expose in sitemaps; classification can be wrong on unusual URL structures.

API

curl -X POST "https://api.apify.com/v2/acts/s3nafps~sitemap-intelligence-api/runs?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"startUrls":["https://www.apify.com"],"maxUrls":50}'

About the author

Built by Mohamed Senator — all Actors: apify.com/s3nafps.