Find Sitemap from url

Find Sitemap from url

A powerful [Apify Actor] that finds sitemap URLs for any website. This Actor helps you discover XML sitemaps by checking common locations, robots.txt files, and analyzing HTML content for sitemap links.

DEVELOPER_TOOLSAUTOMATIONAIApify

Sitemap Finder

A powerful Apify Actor that finds sitemap URLs for any website. This Actor helps you discover XML sitemaps by checking common locations, robots.txt files, and analyzing HTML content for sitemap links.

Features

  • Checks common sitemap locations (e.g., /sitemap.xml, /sitemap-index.xml, etc.)
  • Parses robots.txt for Sitemap directives
  • Analyzes website HTML for sitemap links
  • Verifies discovered URLs are valid XML sitemaps
  • Option to find either the primary sitemap or all available sitemaps
  • Configurable request timeout and verbose logging

Input Parameters

ParameterTypeDescription
urlStringThe URL of the website to search for sitemaps (required)
findAllBooleanIf true, find all available sitemaps. If false, find only the primary sitemap (default: true)
noVerifyBooleanIf true, skip verification of sitemap XML format (default: false)
timeoutIntegerTimeout in seconds for HTTP requests (default: 5)
verboseBooleanEnable detailed logging of the sitemap discovery process (default: false)

Output

The Actor saves results to the default dataset with the following structure:

When findAll = true

1{
2  "url": "example.com",
3  "sitemaps": [
4    "https://example.com/sitemap.xml",
5    "https://example.com/post-sitemap.xml"
6  ],
7  "count": 2
8}

When findAll = false

1{
2  "url": "example.com",
3  "sitemap": "https://example.com/sitemap.xml"
4}

Example Usage

You can run the Actor on the Apify Platform or integrate it into your own applications using the Apify API.

Running on Apify Platform

  1. Navigate to the Actor page
  2. Enter the website URL you want to search for sitemaps
  3. Configure optional parameters as needed
  4. Run the Actor and wait for results

API Example

1import apify_client
2
3# Initialize the ApifyClient with your API token
4client = apify_client.ApifyClient(token="YOUR_API_TOKEN")
5
6# Prepare the Actor input
7run_input = {
8    "url": "example.com",
9    "findAll": True,
10    "verbose": True
11}
12
13# Run the Actor and wait for it to finish
14run = client.actor("YOUR_ACTOR_ID").call(run_input=run_input)
15
16# Fetch and print Actor results from the default dataset
17results = client.dataset(run["defaultDatasetId"]).list_items().items
18print(results)

Use Cases

  • SEO Analysis: Quickly locate all sitemaps to analyze website structure and content organization
  • Web Scraping: Find sitemaps to extract URLs for crawling
  • Website Auditing: Check if sitemaps are properly configured and accessible
  • Content Discovery: Identify pages and sections included in sitemaps

Resources

Frequently Asked Questions

Is it legal to scrape job listings or public data?

Yes, if you're scraping publicly available data for personal or internal use. Always review Websute's Terms of Service before large-scale use or redistribution.

Do I need to code to use this scraper?

No. This is a no-code tool — just enter a job title, location, and run the scraper directly from your dashboard or Apify actor page.

What data does it extract?

It extracts job titles, companies, salaries (if available), descriptions, locations, and post dates. You can export all of it to Excel or JSON.

Can I scrape multiple pages or filter by location?

Yes, you can scrape multiple pages and refine by job title, location, keyword, or more depending on the input settings you use.

How do I get started?

You can use the Try Now button on this page to go to the scraper. You’ll be guided to input a search term and get structured results. No setup needed!