# Sitemap — Multi-Site URL Inventory (`jpmarketdata/sitemap-multi-site-url-inventory`) Actor

Inventory public sitemap indexes and XML/gzip documents across sites with deduplicated URLs, lastmod, source provenance and explicit coverage caps. $0.05 per 1,000 URLs, no start fee.

- **URL**: https://apify.com/jpmarketdata/sitemap-multi-site-url-inventory.md
- **Developed by:** [h ichi](https://apify.com/jpmarketdata) (community)
- **Categories:** Developer tools, Marketing, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.05 / 1,000 url exporteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Sitemap — Multi-Site URL Inventory

**Price:** $0.00005 per delivered unique URL. No start or secondary fee.

Expand public sitemap indexes across sites into a deduplicated URL inventory for SEO and data-collection planning. Export publisher modification hints and source sitemap provenance; repeat snapshots through Apify schedules. Independent tool, not affiliated with sites.

### Input

`sitemapUrls` accepts1–5 public HTTP(S) roots/XML/index/XML.gz URLs, default the full OneScales sitemap index. Root inputs discover robots-declared sitemaps or an allowed `/sitemap.xml` fallback. `maxUrls` defaults1,000 (1–10,000), `maxSitemaps`50 (1–50), `maxDepth`8 (1–8). Optional `includeContains` matches any case-sensitive substring and `excludeContains` excludes any; empty arrays inventory all safe URLs within bounds. Large sites can exceed bounds and are explicitly partial. `maxSitemaps` must accommodate all selected roots, including sitemap roots discovered from robots; a smaller document allowance fails before paid output.

### Output

One deduplicated safe published URL row, with page origin, all encountered source sitemap URLs, publisher lastmod/changefreq/priority, duplicate count and coverage flags. These are source hints, not verified page status or a claim that a page changed. No page bodies or status checks are fetched. `COVERAGE` is an uncharged KVS report of selected roots, traversed/pending documents, unsafe omissions and cap reasons. `coverageComplete=true` requires every selected traversal to finish without caps or omissions. Breadth-first source ordering prevents one root silently replacing the entire multi-site input. All selected roots validate before any paid output; failures are not paid error rows.

### Limits

256MB/300seconds,75HTTPrequests including robots/redirects,50sitemaps/depth8,10,000unique URLs,8MiB wire/16MiB decoded per XML document,64MiB transfer and24MiB staged output. Stream XML/gzip with byte ceilings, clear parsed nodes, reject DTD/entities/decompression bombs/unsupported archives and detect cycles. Sequential minimum1s per origin. At most2 manually checked redirects; each referenced sitemap/redirect host has public IPv4/IPv6 DNS addresses checked/pinned and its robots checked before fetching. Private/reserved/metadata destinations, credentials/secret URLs and nonstandard ports are rejected. Published page URLs are output only. Any required source403/429/timeout/malformed XML/oversize/robots denial fails before paid output; overall empty/no-match is an uncharged error. One$0.00005 `url-exported` event per unique delivered URL, no start/status/default-dataset/secondary fee.1,000URLs cost$0.05.

### Privacy

Only public safe URL strings and sitemap hints. No page bodies, images, contacts/person/customer/account records or secrets. Contact-bearing, token-bearing and private URLs are excluded with explicit uncharged omission counts; no inferred personal data. Preserve source provenance. Website terms apply; robots restrictions and access controls are honored without browser, paid proxy or security bypass.

# Actor input Schema

## `sitemapUrls` (type: `array`):

One to five public HTTP(S) roots, sitemap indexes, XML or XML.gz URLs. Robots checked before every source and redirect. $0.00005 per delivered URL.

## `maxUrls` (type: `integer`):

One to10,000 deduplicated URL rows across sources; default1,000. Caps and pending sitemap references are reported. $0.00005 per delivered URL.

## `maxSitemaps` (type: `integer`):

One to50 XML sitemap/index documents in total. Every selected root is validated, then breadth-first traversal is bounded. $0.00005 per delivered URL.

## `maxDepth` (type: `integer`):

One to8 nested index levels. Cycles are deduplicated; pending documents at depth cap are reported. $0.00005 per delivered URL.

## `includeContains` (type: `array`):

Optional case-sensitive substrings. Empty includes all safe published URLs. No URL pages are opened. $0.00005 per delivered URL.

## `excludeContains` (type: `array`):

Optional case-sensitive URL substrings to exclude after include filter. Empty excludes none. $0.00005 per delivered URL.

## Actor input object example

```json
{
  "sitemapUrls": [
    "https://onescales.com/sitemap.xml"
  ],
  "maxUrls": 1000,
  "maxSitemaps": 50,
  "maxDepth": 8,
  "includeContains": [],
  "excludeContains": []
}
```

# Actor output Schema

## `results` (type: `string`):

One delivered URL per row with published business data and source links.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jpmarketdata/sitemap-multi-site-url-inventory").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("jpmarketdata/sitemap-multi-site-url-inventory").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call jpmarketdata/sitemap-multi-site-url-inventory --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jpmarketdata/sitemap-multi-site-url-inventory"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1YJ6krvfrxmA7dbpE/builds/h9POeiRbgVpXz7Bup/openapi.json
