Find Sitemap from url avatar
Find Sitemap from url

Pricing

Pay per usage

Go to Store
Find Sitemap from url

Find Sitemap from url

Developed by

ando

Maintained by Community

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.

0.0 (0)

Pricing

Pay per usage

0

Monthly users

19

Runs succeeded

>99%

Last modified

2 months ago

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

Pricing

Pricing model

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.