Find Sitemap from url
Pricing
Pay per usage
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.
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
Parameter | Type | Description |
---|---|---|
url | String | The URL of the website to search for sitemaps (required) |
findAll | Boolean | If true, find all available sitemaps. If false, find only the primary sitemap (default: true) |
noVerify | Boolean | If true, skip verification of sitemap XML format (default: false) |
timeout | Integer | Timeout in seconds for HTTP requests (default: 5) |
verbose | Boolean | Enable 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
- Navigate to the Actor page
- Enter the website URL you want to search for sitemaps
- Configure optional parameters as needed
- 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 usageThis Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.