Sitemap API — Robots.txt & URL Extractor
Pricing
from $0.63 / 1,000 api requests
Go to Apify Store
Sitemap API — Robots.txt & URL Extractor
Read robots.txt, follow sitemap indexes and extract website URLs as clean JSON — with lastmod, changefreq and priority. Gzip-aware, reliable, no browser.
Pricing
from $0.63 / 1,000 api requests
Rating
0.0
(0)
Developer
RD.Galih Rakasiwi
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
3 days ago
Last modified
Categories
Features
Limited permissionsSingle-tenantServer interface
Share
Read robots.txt, follow sitemap indexes and extract a website's URLs as
clean, LLM-ready JSON. Gzip-aware, no browser.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /robots?url= | Fetch and parse robots.txt (sitemaps + rules) |
| GET | /sitemap?url= | Follow sitemaps and return URLs |
| GET | /analyze?url= | Summary: sitemap counts + lastmod range |
| GET | /health | Liveness probe |
Parameters: maxSitemaps (1–50), maxUrls (1–10000).
curl "https://<container-url>/robots?url=apify.com"curl "https://<container-url>/sitemap?url=apify.com&maxUrls=500"curl "https://<container-url>/analyze?url=apify.com"
Output
{"site": "https://apify.com","robots": {"found": true, "sitemaps": ["https://apify.com/sitemap.xml"], "rules": []},"sitemapsProcessed": [{"url": "https://apify.com/sitemap.xml", "type": "sitemapindex", "count": 6}],"urlCount": 500,"urls": [{"loc": "https://apify.com/…", "lastmod": "2026-10-01", "changefreq": null, "priority": null}],"errors": []}
Notes
- Works with plain sitemaps and
.xml.gzfiles. - If the given URL is not a sitemap, the API discovers sitemaps from robots.txt,
then falls back to
/sitemap.xml.
Related searches
sitemap api, sitemap scraper, robots.txt parser, website urls extractor, seo crawler, sitemap index, url discovery
Local development
pip install -r requirements.txtuvicorn src.main:app --reload