MCP + API · kestrel/sitemap-url-extractor
Sitemap URL Extractor - Links, Lastmod & Nested Indexes | 站点地图
Extract URLs from XML sitemaps, gzip files and nested sitemap indexes. Each URL includes link, lastmod, priority, change frequency and source sitemap. Filter paths and last-modified dates; exclude known IDs for repeat runs. Source parsing is billed even with zero matches. No browser or proxy.
Open Actor Download MCP config
Connect this tool
Add this URL as a remote MCP server in your client, then sign in to Apify. For a client-specific setup, use Apify's configurator.
https://mcp.apify.com?tools=call-actor,fetch-actor-details,kestrel/sitemap-url-extractor
Generic MCP client configuration
{
"mcpServers": {
"kestrel-sitemap-url-extractor": {
"url": "https://mcp.apify.com?tools=call-actor,fetch-actor-details,kestrel/sitemap-url-extractor"
}
}
}
Understand the output before you run
Declared dataset fields and row types · Output locations and dataset links
Use the declared dataset schema for item fields; the output schema describes where results are stored. Optional fields may be null or absent. If an integration shows a sampled schema without an optional field, check this declaration, the Actor instructions and actual returned rows before concluding that the field is unsupported.
Inspect 8 declared output fields
| Field | Type | Meaning |
|---|---|---|
type | string | |
id | string | |
url | string / null | |
lastmod | string / null | |
changefreq | string / null | |
priority | string / null | |
sitemap_url | string | |
fetched_at | string |
Start with a small sample
Use call-actor with the JSON below. The $0.25 run ceiling is separate from the Actor input and may stop the sample early. Change the target to match your request. This input validates against build 1.0.8; it is not a promise that the source has matching rows today.
{
"actor": "kestrel/sitemap-url-extractor",
"input": {
"sitemapUrls": [
"https://docs.python.org/sitemap.xml"
],
"maxResults": 3,
"maxSources": 3
},
"callOptions": {
"maxTotalChargeUsd": 0.25,
"timeout": 300
},
"waitSecs": 30
}
After completion, use get-dataset-items with storages.datasets.default.id. If still running, poll get-actor-run using the returned runId. Check status rows and errors before treating an empty dataset as no matches.
Call from Python, JavaScript or REST
Python SDK 3 example · JavaScript SDK 2 example · curl + jq example. Each uses this same small input, reads APIFY_TOKEN from your environment, sets a five-minute run timeout and exports all dataset row types as JSON Lines. The $0.25 run ceiling is separate from the Actor input and may stop the sample early. Inspect the run and source status before treating results as complete. Installation and usage.
Pricing and limits
Current listed event prices in USD. Some Actors charge for successful source checks even when no output rows match. The event descriptions below define those differences.
| Event | USD each | What is charged |
|---|---|---|
sitemap-parsed | $0.005 | One successfully parsed sitemap file: $5 per 1,000 files. Index files count. URL rows have a separate $0.10 per 1,000 fee. Empty sources and sources with no matching or new rows ARE charged for parsing. Invalid input, HTTP failures, malformed XML and duplicate source URLs are not charged. No start fee; compute and transfer are included. maxTotalChargeUsd is an Apify run option, not an input field. Work stops when the remaining budget cannot cover the next event. |
url | $0.0001 | One delivered URL row (keys id, url, lastmod, changefreq, priority, sitemap_url): $0.10 per 1,000 URLs, plus $0.005 per successfully parsed sitemap or index file. Filtered, excluded and duplicate rows are not charged as URLs. No start fee; compute and transfer included. 1,000 URLs from one file cost $0.105. maxTotalChargeUsd is an Apify run option; no URL is delivered beyond its charge limit. |
Contracts for agents
- Input schema and sample input
- Prepared MCP call and pricing events
- Full Actor instructions and limits
- REST API
Public contract checked 2026-11-11. Active build: 1.0.8. Refresh live details before a large or recurring run.