# Follow a sitemap index down to every child file

**Use case:** 

An index that points at other indexes is followed all the way down, gzip unpacked on the way, and every file that was read is reported together with the parent that led to it. On a large site that means a dozen or more files across two levels of nesting.

## Input

```json
{
  "startUrls": [
    "https://wordpress.org"
  ],
  "maxUrls": 300,
  "flatten": true,
  "includeSitemapReport": true,
  "reportOnly": false,
  "maxSitemaps": 60,
  "timeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "website": {
    "label": "Website"
  },
  "recordType": {
    "label": "Record type"
  },
  "sitemapUrl": {
    "label": "Sitemap"
  },
  "discoveredVia": {
    "label": "Found via"
  },
  "status": {
    "label": "Status"
  },
  "urlCount": {
    "label": "URLs"
  },
  "childCount": {
    "label": "Child sitemaps"
  },
  "note": {
    "label": "Note"
  }
}
```

## About this Actor

This example demonstrates how to use [Sitemap URL Extractor — All Page URLs from a Website](https://apify.com/power_on/sitemap-url-list.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/power_on/sitemap-url-list.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/power_on/sitemap-url-list.md

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`).
