{
  "data": {
    "id": "02aZv7M1d156algH4",
    "actId": "YC5cBkA5b3MUz3iaH",
    "userId": "IYgBDiXtHOijAaUel",
    "startedAt": "2026-11-23T12:21:32.733Z",
    "finishedAt": "2026-11-23T12:21:42.354Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 9430,
      "runTimeSecs": 9.43,
      "computeUnits": 0.010477777777777779,
      "imageSizeBytes": 370473984
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "QYo53EZkJk0prePWY",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"Website Sitemap URL Inventory Extractor Input\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"startUrls\": {\n      \"title\": \"Sitemap, site or feed URLs\",\n      \"type\": \"array\",\n      \"description\": \"One or more URLs. Accepts a sitemap, sitemap index, .xml.gz file, sitemap.txt, RSS/Atom feed, robots.txt URL, bare domain (example.com) or homepage. With discovery on, site URLs are resolved through robots.txt, the homepage's sitemap link and common sitemap paths.\",\n      \"editor\": \"stringList\",\n      \"prefill\": [\n        \"https://onescales.com/sitemap.xml\"\n      ],\n      \"minItems\": 1,\n      \"sectionCaption\": \"Sitemaps to read\"\n    },\n    \"discoverSitemaps\": {\n      \"title\": \"Find sitemaps automatically\",\n      \"type\": \"boolean\",\n      \"description\": \"When the input is a domain or homepage, read robots.txt, the homepage <link rel=\\\"sitemap\\\"> hint, common sitemap paths and—when no sitemap is advertised—the homepage's RSS/Atom autodiscovery links. Turn off to read only the exact URLs you supplied.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"followSitemapIndexes\": {\n      \"title\": \"Follow sitemap indexes\",\n      \"type\": \"boolean\",\n      \"description\": \"When a sitemap index points to child sitemaps, fetch and merge them. Turn off to read only the sitemap files you supplied and stop at any index.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"maxSitemapDepth\": {\n      \"title\": \"Maximum sitemap-index depth\",\n      \"type\": \"integer\",\n      \"description\": \"How many levels of nested sitemap indexes to follow. 0 reads only the supplied sitemaps, 1 follows one index level, and so on.\",\n      \"default\": 5,\n      \"prefill\": 5,\n      \"minimum\": 0,\n      \"maximum\": 10\n    },\n    \"maxSitemaps\": {\n      \"title\": \"Maximum sitemap files\",\n      \"type\": \"integer\",\n      \"description\": \"Stop after attempting this many sitemap files (indexes and child sitemaps both count). Protects very large sitemap trees such as newspaper archives.\",\n      \"default\": 1000,\n      \"prefill\": 1000,\n      \"minimum\": 1,\n      \"maximum\": 10000,\n      \"sectionCaption\": \"Limits\"\n    },\n    \"maxUrls\": {\n      \"title\": \"Maximum URLs\",\n      \"type\": \"integer\",\n      \"description\": \"Total URL rows to emit across all inputs. Set to 0 for no limit. Filtered and duplicate URLs do not count toward this cap.\",\n      \"default\": 0,\n      \"prefill\": 500,\n      \"minimum\": 0,\n      \"maximum\": 1000000\n    },\n    \"lastmodAfter\": {\n      \"title\": \"Only URLs modified on or after\",\n      \"type\": \"string\",\n      \"description\": \"Keep URLs whose lastmod, feed date or news publication date is on or after this point. Use an ISO date (2026-01-01), a full timestamp, or a relative window such as \\\"7 days\\\", \\\"24 hours\\\" or \\\"2 weeks\\\". Leave blank to keep every URL.\",\n      \"editor\": \"textfield\"\n    },\n    \"keepUrlsWithoutLastmod\": {\n      \"title\": \"Keep URLs without a date\",\n      \"type\": \"boolean\",\n      \"description\": \"When a date filter is set, also keep URLs and feed items that carry no usable date. Without this, undated entries are dropped by the date filter.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"urlFilterInclude\": {\n      \"title\": \"URLs matching (include filter)\",\n      \"type\": \"string\",\n      \"description\": \"Keep only URLs that match this pattern. Interpretation depends on URL match mode: a regular expression, a plain-text substring, or a wildcard pattern. Leave blank to keep every URL.\",\n      \"editor\": \"textfield\",\n      \"sectionCaption\": \"URL filters\"\n    },\n    \"urlFilterExclude\": {\n      \"title\": \"URLs matching (exclude filter)\",\n      \"type\": \"string\",\n      \"description\": \"Drop URLs that match this pattern, applied after the include filter. Uses the same URL match mode.\",\n      \"editor\": \"textfield\"\n    },\n    \"urlMatchMode\": {\n      \"title\": \"URL filter mode\",\n      \"type\": \"string\",\n      \"description\": \"How the include and exclude filters are interpreted. Regular expressions are case-insensitive. Plain text matches a literal substring. Wildcards use * for any characters except /, ** for any characters including /, and ? for one character.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"regex\",\n        \"text\",\n        \"glob\"\n      ],\n      \"enumTitles\": [\n        \"Regular expression\",\n        \"Plain text contains\",\n        \"Wildcard pattern\"\n      ],\n      \"default\": \"regex\",\n      \"prefill\": \"regex\"\n    },\n    \"sameHostOnly\": {\n      \"title\": \"Only URLs on the input host\",\n      \"type\": \"boolean\",\n      \"description\": \"Drop URLs whose hostname differs from the host of your input URLs. Useful when a sitemap includes CDN or alternate-domain pages you do not want.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"deduplicateUrls\": {\n      \"title\": \"Remove duplicate URLs\",\n      \"type\": \"boolean\",\n      \"description\": \"Emit each page URL once even when it appears in several sitemaps. Turn off to keep one row per sitemap listing.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"includeImages\": {\n      \"title\": \"Include image metadata\",\n      \"type\": \"boolean\",\n      \"description\": \"Add the image sitemap entries attached to a URL (location, title, caption, license, geo location).\",\n      \"default\": true,\n      \"prefill\": true,\n      \"sectionCaption\": \"Metadata to include\"\n    },\n    \"includeVideos\": {\n      \"title\": \"Include video metadata\",\n      \"type\": \"boolean\",\n      \"description\": \"Add the video sitemap entries attached to a URL, including thumbnail, player/content URLs, duration, dates, tags, categories, ratings, restrictions and live status.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"includeNews\": {\n      \"title\": \"Include Google News metadata\",\n      \"type\": \"boolean\",\n      \"description\": \"Add the Google News entries attached to a URL: publication name and language, publication date, headline, genres, keywords and stock tickers.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"includeAlternates\": {\n      \"title\": \"Include hreflang alternates\",\n      \"type\": \"boolean\",\n      \"description\": \"Add the xhtml:link hreflang alternates attached to a URL, including x-default, even when the sitemap uses a legacy xhtml namespace.\",\n      \"default\": true,\n      \"prefill\": true\n    }\n  },\n  \"required\": [\n    \"startUrls\"\n  ]\n}",
    "readme": "# Website Sitemap URL Inventory Extractor\n\nA website that wants search engines to index its pages publishes an XML sitemap, and often a sitemap index, an image sitemap, a video sitemap, a Google News sitemap, a text sitemap or an RSS/Atom feed. This actor reads those public files and turns them into one flat dataset row per URL, with the publisher's own dates and hints intact.\n\nIt is an inventory tool, not a crawler: it reads only the sitemap files, never the pages they list, so it stays fast, light and free of cookies, logins or proxy setup.\n\n## What this actor does\n\n- Reads XML sitemaps, sitemap indexes, gzip files, plain-text sitemaps and RSS/Atom feeds.\n- Accepts a direct sitemap, index, `.xml.gz`, `.txt`, feed or `robots.txt` URL, a bare domain, or a homepage.\n- Finds sitemaps from `robots.txt` `Sitemap:` lines, the homepage `<link rel=\"sitemap\">` hint, and the usual sitemap paths. When no sitemap is advertised, it also follows RSS/Atom autodiscovery links from the homepage.\n- Follows nested sitemap indexes with a user-controlled depth and file budget, and uses index `lastmod` values to skip stale branches when a date filter is on.\n- Parses sitemaps with or without an XML namespace, and sitemaps that declare an old or non-standard xhtml namespace.\n- Carries through `lastmod`, `changefreq` and `priority` whenever the publisher provides them, plus a normalised `lastmodIso`.\n- Extracts the full Google image, video, Google News and hreflang annotations, including `x-default`.\n- Removes duplicate URLs across overlapping sitemaps, and can filter by date, host, or a regex/plain-text/wildcard URL pattern.\n- Omits every field the sitemap did not provide; there are no empty strings, nulls, empty arrays or empty objects in a row.\n- Emits a single `sitemap_error` status row when nothing could be read, so an empty run is never silent.\n\n## Output\n\nEach dataset row describes one URL:\n\n| Field | Meaning |\n|---|---|\n| `url` | The page URL declared by the sitemap or feed, resolved to an absolute http(s) URL. |\n| `lastmod` | The publisher's raw last-modified value, unchanged. |\n| `lastmodIso` | The same value normalised to UTC ISO 8601 when it can be parsed. |\n| `changefreq` | The publisher's change-frequency hint, when declared. |\n| `priority` | The publisher's priority hint as a number, when declared. |\n| `host` | Hostname of the page URL. |\n| `source` | The sitemap or feed file that declared this URL. |\n| `sourceType` | `urlset`, `txt`, `rss` or `atom`. |\n| `sitemapDepth` | How many index levels deep the source sitemap was; `0` for a supplied file. |\n| `sourceSitemapLastmod` | The `lastmod` on this sitemap's entry in its parent index, when present. |\n| `title` | Item title for RSS/Atom feed rows. |\n| `images` | Image sitemap entries: `loc`, `title`, `caption`, `license`, `geoLocation`. |\n| `videos` | Video sitemap entries. See the field list below. |\n| `news` | Google News entries: `title`, `publicationName`, `language`, `publicationDate`, `genres`, `keywords`, `stockTickers`. |\n| `alternates` | hreflang links: `hreflang`, `href`, including `x-default`. |\n| `mobile` | `true` when the URL entry carries a mobile sitemap marker. |\n| `scrapedAt` | When this run extracted the row. |\n\nVideo entries carry `title`, `description`, `thumbnail`, `contentUrl`, `playerUrl`, `durationSeconds`, `publicationDate`, `expirationDate`, `rating`, `viewCount`, `familyFriendly`, `tags`, `categories`, `galleryUrl`, `uploader`, `platforms`, `restrictions`, `requiresSubscription` and `live` when the sitemap declares them.\n\nIf no URL can be extracted, the dataset contains one row with `type: \"sitemap_error\"`, a `reason`, a plain-language `message`, the requested URLs, the sitemap URLs visited and, when applicable, the failed ones.\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `startUrls` | array | - | Sitemap, sitemap index, `.xml.gz`, `.txt`, RSS/Atom feed, `robots.txt`, bare domain or homepage URLs. Required. |\n| `discoverSitemaps` | boolean | `true` | Find sitemaps from robots.txt, the homepage sitemap link, common paths, and RSS/Atom autodiscovery links when a site URL is supplied. |\n| `followSitemapIndexes` | boolean | `true` | Fetch and merge the child sitemaps listed in a sitemap index. |\n| `maxSitemapDepth` | integer | `5` | Maximum sitemap-index depth to follow (0–10). |\n| `maxSitemaps` | integer | `1000` | Maximum sitemap files to attempt per run (1–10,000). |\n| `maxUrls` | integer | `0` | Maximum URL rows to emit; 0 means unlimited. Filtered and duplicate URLs do not count. |\n| `lastmodAfter` | string | - | Keep URLs dated on or after this point. Accepts ISO dates/timestamps and windows such as `7 days`, `24 hours`, `2 weeks`. |\n| `keepUrlsWithoutLastmod` | boolean | `false` | Keep undated URLs when a date filter is active. |\n| `urlFilterInclude` | string | - | Keep only URLs matching this pattern. |\n| `urlFilterExclude` | string | - | Drop URLs matching this pattern, after the include filter. |\n| `urlMatchMode` | string | `regex` | `regex`, `text` or `glob` for both URL filters. |\n| `sameHostOnly` | boolean | `false` | Drop URLs whose host differs from the host of your input URLs. |\n| `deduplicateUrls` | boolean | `true` | Emit each URL once even when several sitemaps list it. |\n| `includeImages` | boolean | `true` | Include image sitemap metadata. |\n| `includeVideos` | boolean | `true` | Include video sitemap metadata. |\n| `includeNews` | boolean | `true` | Include Google News metadata. |\n| `includeAlternates` | boolean | `true` | Include hreflang alternates. |\n\n`urlMatchMode=regex` uses Python regular expressions, case-insensitively. `text` matches a literal substring. `glob` uses `*` for any characters except `/`, `**` for any characters including `/`, and `?` for one character.\n\n## Examples\n\n### Read a known sitemap index\n\n```json\n{\n  \"startUrls\": [\"https://example.com/sitemap_index.xml\"],\n  \"maxUrls\": 5000\n}\n```\n\n### Discover the sitemaps from a bare domain\n\n```json\n{\n  \"startUrls\": [\"example.com\"],\n  \"discoverSitemaps\": true,\n  \"deduplicateUrls\": true\n}\n```\n\n### Only pages changed in the last week\n\n```json\n{\n  \"startUrls\": [\"https://example.com/sitemap.xml\"],\n  \"lastmodAfter\": \"7 days\",\n  \"includeAlternates\": false,\n  \"includeImages\": false\n}\n```\n\n### Product URLs only, using a wildcard filter\n\n```json\n{\n  \"startUrls\": [\"https://example.com/sitemap.xml\"],\n  \"urlMatchMode\": \"glob\",\n  \"urlFilterInclude\": \"**/products/**\",\n  \"urlFilterExclude\": \"**/products/tag/**\"\n}\n```\n\n### RSS or Atom feed as a sitemap\n\n```json\n{\n  \"startUrls\": [\"https://example.com/feed.xml\", \"https://example.com/sitemap.txt\"],\n  \"maxUrls\": 2000\n}\n```\n\n## Limits and honest notes\n\n- The sitemap protocol asks publishers to keep each file at or below 50,000 URLs and 50 MB uncompressed. This is a publisher limit, not an actor truncation: the actor reads larger files and only refuses a single fetched file above 100 MB as a safety guard.\n- `maxUrls` defaults to `0`, which means no total-row limit. You can set a cap up to 1,000,000. The actor attempts at most 10,000 sitemap files (default 1,000) and follows at most 10 index levels (default 5); these two are hard actor caps.\n- A date filter uses `lastmod`, then the feed date, then a news publication date. When none is readable, the URL counts as undated and is dropped unless `keepUrlsWithoutLastmod` is on. With a date filter, a child sitemap whose own entry in the parent index is older than the cutoff is skipped for speed; turn on `keepUrlsWithoutLastmod` to fetch every child anyway. An invalid date window is logged and ignored rather than failing the run.\n- `changefreq` and `priority` are the publisher's hints. Search engines may ignore them; this actor does not invent or recalculate them.\n- A sitemap can be incomplete. Pages that the site owner did not include in a sitemap cannot appear here.\n- Some sites block sitemap requests from automated clients (a 403 challenge or a captcha) or return an HTML page at the sitemap URL. Those paths fail softly and are logged; check the site in a browser and pass the exact file if you know it.\n- This actor does not check the HTTP status, canonical tag or indexing status of the pages it lists, and does not remember URLs between runs. Use a dedicated link checker for status checks and a scheduler plus your own storage for new-URL monitoring.\n- The actor does not use a proxy or cookies. If a site blocks the request, the block is a site-side limitation, not a missing setting.\n\n## FAQ\n\n**Do I need a proxy, login or API key?**\nNo. Sitemaps are public files meant for search engines. The actor reads them over plain HTTPS without cookies or credentials.\n\n**What if I do not know the sitemap URL?**\nPass the domain or homepage. The actor reads `robots.txt`, the homepage's `<link rel=\"sitemap\">` hint, common sitemap paths, and—when no sitemap is advertised—the homepage's RSS/Atom autodiscovery links. If the site blocks those probes, pass the exact sitemap or feed URL.\n\n**Which formats are supported?**\nXML urlsets, sitemap indexes, gzip files (detected by content, not by the `.gz` suffix), plain-text sitemaps, RSS 2.0, RSS 1.0/RDF and Atom feeds.\n\n**Are nested sitemap indexes followed?**\nYes, up to `maxSitemapDepth`. Set it to 0 or turn off `followSitemapIndexes` to read only the files you supplied.\n\n**Why is `lastmod` or `priority` missing on some rows?**\nBoth are optional in the sitemap standard. The field is omitted rather than padded with a placeholder.\n\n**Why do I also see `lastmodIso`?**\n`lastmod` is exactly what the publisher wrote, while `lastmodIso` is the same moment in UTC ISO 8601 for sorting and joins. It is present only when the value can be parsed.\n\n**Does it extract image, video, news and hreflang data?**\nYes, when the sitemap carries those extensions. Each toggle can turn a block off to keep the dataset smaller. hreflang is read even from old or non-standard xhtml namespaces.\n\n**Does it follow the page URLs?**\nNo. It reads only the sitemap files, which keeps runs cheap and avoids touching the target site's pages.\n\n**What happens when a site has no sitemap?**\nThe run emits one `sitemap_error` row explaining that no URLs were extracted. A site without a published sitemap cannot be inventoried this way.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "website-sitemap-url-inventory-extractor",
      "title": "Website Sitemap URL Inventory Extractor",
      "description": "Turn any website's sitemap, sitemap index, text sitemap or RSS/Atom feed into one flat URL inventory with lastmod dates, index depth, source sitemap, and full image, video, Google News and hreflang metadata.",
      "version": "1.0",
      "buildTag": "latest",
      "input": {
        "title": "Website Sitemap URL Inventory Extractor Input",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "startUrls": {
            "title": "Sitemap, site or feed URLs",
            "type": "array",
            "description": "One or more URLs. Accepts a sitemap, sitemap index, .xml.gz file, sitemap.txt, RSS/Atom feed, robots.txt URL, bare domain (example.com) or homepage. With discovery on, site URLs are resolved through robots.txt, the homepage's sitemap link and common sitemap paths.",
            "editor": "stringList",
            "prefill": [
              "https://onescales.com/sitemap.xml"
            ],
            "minItems": 1,
            "sectionCaption": "Sitemaps to read"
          },
          "discoverSitemaps": {
            "title": "Find sitemaps automatically",
            "type": "boolean",
            "description": "When the input is a domain or homepage, read robots.txt, the homepage <link rel=\"sitemap\"> hint, common sitemap paths and—when no sitemap is advertised—the homepage's RSS/Atom autodiscovery links. Turn off to read only the exact URLs you supplied.",
            "default": true,
            "prefill": true
          },
          "followSitemapIndexes": {
            "title": "Follow sitemap indexes",
            "type": "boolean",
            "description": "When a sitemap index points to child sitemaps, fetch and merge them. Turn off to read only the sitemap files you supplied and stop at any index.",
            "default": true,
            "prefill": true
          },
          "maxSitemapDepth": {
            "title": "Maximum sitemap-index depth",
            "type": "integer",
            "description": "How many levels of nested sitemap indexes to follow. 0 reads only the supplied sitemaps, 1 follows one index level, and so on.",
            "default": 5,
            "prefill": 5,
            "minimum": 0,
            "maximum": 10
          },
          "maxSitemaps": {
            "title": "Maximum sitemap files",
            "type": "integer",
            "description": "Stop after attempting this many sitemap files (indexes and child sitemaps both count). Protects very large sitemap trees such as newspaper archives.",
            "default": 1000,
            "prefill": 1000,
            "minimum": 1,
            "maximum": 10000,
            "sectionCaption": "Limits"
          },
          "maxUrls": {
            "title": "Maximum URLs",
            "type": "integer",
            "description": "Total URL rows to emit across all inputs. Set to 0 for no limit. Filtered and duplicate URLs do not count toward this cap.",
            "default": 0,
            "prefill": 500,
            "minimum": 0,
            "maximum": 1000000
          },
          "lastmodAfter": {
            "title": "Only URLs modified on or after",
            "type": "string",
            "description": "Keep URLs whose lastmod, feed date or news publication date is on or after this point. Use an ISO date (2026-01-01), a full timestamp, or a relative window such as \"7 days\", \"24 hours\" or \"2 weeks\". Leave blank to keep every URL.",
            "editor": "textfield"
          },
          "keepUrlsWithoutLastmod": {
            "title": "Keep URLs without a date",
            "type": "boolean",
            "description": "When a date filter is set, also keep URLs and feed items that carry no usable date. Without this, undated entries are dropped by the date filter.",
            "default": false,
            "prefill": false
          },
          "urlFilterInclude": {
            "title": "URLs matching (include filter)",
            "type": "string",
            "description": "Keep only URLs that match this pattern. Interpretation depends on URL match mode: a regular expression, a plain-text substring, or a wildcard pattern. Leave blank to keep every URL.",
            "editor": "textfield",
            "sectionCaption": "URL filters"
          },
          "urlFilterExclude": {
            "title": "URLs matching (exclude filter)",
            "type": "string",
            "description": "Drop URLs that match this pattern, applied after the include filter. Uses the same URL match mode.",
            "editor": "textfield"
          },
          "urlMatchMode": {
            "title": "URL filter mode",
            "type": "string",
            "description": "How the include and exclude filters are interpreted. Regular expressions are case-insensitive. Plain text matches a literal substring. Wildcards use * for any characters except /, ** for any characters including /, and ? for one character.",
            "editor": "select",
            "enum": [
              "regex",
              "text",
              "glob"
            ],
            "enumTitles": [
              "Regular expression",
              "Plain text contains",
              "Wildcard pattern"
            ],
            "default": "regex",
            "prefill": "regex"
          },
          "sameHostOnly": {
            "title": "Only URLs on the input host",
            "type": "boolean",
            "description": "Drop URLs whose hostname differs from the host of your input URLs. Useful when a sitemap includes CDN or alternate-domain pages you do not want.",
            "default": false,
            "prefill": false
          },
          "deduplicateUrls": {
            "title": "Remove duplicate URLs",
            "type": "boolean",
            "description": "Emit each page URL once even when it appears in several sitemaps. Turn off to keep one row per sitemap listing.",
            "default": true,
            "prefill": true
          },
          "includeImages": {
            "title": "Include image metadata",
            "type": "boolean",
            "description": "Add the image sitemap entries attached to a URL (location, title, caption, license, geo location).",
            "default": true,
            "prefill": true,
            "sectionCaption": "Metadata to include"
          },
          "includeVideos": {
            "title": "Include video metadata",
            "type": "boolean",
            "description": "Add the video sitemap entries attached to a URL, including thumbnail, player/content URLs, duration, dates, tags, categories, ratings, restrictions and live status.",
            "default": true,
            "prefill": true
          },
          "includeNews": {
            "title": "Include Google News metadata",
            "type": "boolean",
            "description": "Add the Google News entries attached to a URL: publication name and language, publication date, headline, genres, keywords and stock tickers.",
            "default": true,
            "prefill": true
          },
          "includeAlternates": {
            "title": "Include hreflang alternates",
            "type": "boolean",
            "description": "Add the xhtml:link hreflang alternates attached to a URL, including x-default, even when the sitemap uses a legacy xhtml namespace.",
            "default": true,
            "prefill": true
          }
        },
        "required": [
          "startUrls"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Website Sitemap URL Inventory Extractor Output",
        "description": "Every URL declared in a website's XML sitemap, sitemap index, text sitemap or RSS/Atom feed, with last-modified data, change hints, source sitemap, and image, video, Google News or hreflang metadata when the source provides it.",
        "properties": {
          "urls": {
            "type": "string",
            "title": "Sitemap URLs",
            "description": "Dataset containing one row per URL extracted from the supplied sitemaps, indexes, text sitemaps or feeds.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "dockerfile": "../Dockerfile",
      "readme": "# Website Sitemap URL Inventory Extractor\n\nA website that wants search engines to index its pages publishes an XML sitemap, and often a sitemap index, an image sitemap, a video sitemap, a Google News sitemap, a text sitemap or an RSS/Atom feed. This actor reads those public files and turns them into one flat dataset row per URL, with the publisher's own dates and hints intact.\n\nIt is an inventory tool, not a crawler: it reads only the sitemap files, never the pages they list, so it stays fast, light and free of cookies, logins or proxy setup.\n\n## What this actor does\n\n- Reads XML sitemaps, sitemap indexes, gzip files, plain-text sitemaps and RSS/Atom feeds.\n- Accepts a direct sitemap, index, `.xml.gz`, `.txt`, feed or `robots.txt` URL, a bare domain, or a homepage.\n- Finds sitemaps from `robots.txt` `Sitemap:` lines, the homepage `<link rel=\"sitemap\">` hint, and the usual sitemap paths. When no sitemap is advertised, it also follows RSS/Atom autodiscovery links from the homepage.\n- Follows nested sitemap indexes with a user-controlled depth and file budget, and uses index `lastmod` values to skip stale branches when a date filter is on.\n- Parses sitemaps with or without an XML namespace, and sitemaps that declare an old or non-standard xhtml namespace.\n- Carries through `lastmod`, `changefreq` and `priority` whenever the publisher provides them, plus a normalised `lastmodIso`.\n- Extracts the full Google image, video, Google News and hreflang annotations, including `x-default`.\n- Removes duplicate URLs across overlapping sitemaps, and can filter by date, host, or a regex/plain-text/wildcard URL pattern.\n- Omits every field the sitemap did not provide; there are no empty strings, nulls, empty arrays or empty objects in a row.\n- Emits a single `sitemap_error` status row when nothing could be read, so an empty run is never silent.\n\n## Output\n\nEach dataset row describes one URL:\n\n| Field | Meaning |\n|---|---|\n| `url` | The page URL declared by the sitemap or feed, resolved to an absolute http(s) URL. |\n| `lastmod` | The publisher's raw last-modified value, unchanged. |\n| `lastmodIso` | The same value normalised to UTC ISO 8601 when it can be parsed. |\n| `changefreq` | The publisher's change-frequency hint, when declared. |\n| `priority` | The publisher's priority hint as a number, when declared. |\n| `host` | Hostname of the page URL. |\n| `source` | The sitemap or feed file that declared this URL. |\n| `sourceType` | `urlset`, `txt`, `rss` or `atom`. |\n| `sitemapDepth` | How many index levels deep the source sitemap was; `0` for a supplied file. |\n| `sourceSitemapLastmod` | The `lastmod` on this sitemap's entry in its parent index, when present. |\n| `title` | Item title for RSS/Atom feed rows. |\n| `images` | Image sitemap entries: `loc`, `title`, `caption`, `license`, `geoLocation`. |\n| `videos` | Video sitemap entries. See the field list below. |\n| `news` | Google News entries: `title`, `publicationName`, `language`, `publicationDate`, `genres`, `keywords`, `stockTickers`. |\n| `alternates` | hreflang links: `hreflang`, `href`, including `x-default`. |\n| `mobile` | `true` when the URL entry carries a mobile sitemap marker. |\n| `scrapedAt` | When this run extracted the row. |\n\nVideo entries carry `title`, `description`, `thumbnail`, `contentUrl`, `playerUrl`, `durationSeconds`, `publicationDate`, `expirationDate`, `rating`, `viewCount`, `familyFriendly`, `tags`, `categories`, `galleryUrl`, `uploader`, `platforms`, `restrictions`, `requiresSubscription` and `live` when the sitemap declares them.\n\nIf no URL can be extracted, the dataset contains one row with `type: \"sitemap_error\"`, a `reason`, a plain-language `message`, the requested URLs, the sitemap URLs visited and, when applicable, the failed ones.\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `startUrls` | array | - | Sitemap, sitemap index, `.xml.gz`, `.txt`, RSS/Atom feed, `robots.txt`, bare domain or homepage URLs. Required. |\n| `discoverSitemaps` | boolean | `true` | Find sitemaps from robots.txt, the homepage sitemap link, common paths, and RSS/Atom autodiscovery links when a site URL is supplied. |\n| `followSitemapIndexes` | boolean | `true` | Fetch and merge the child sitemaps listed in a sitemap index. |\n| `maxSitemapDepth` | integer | `5` | Maximum sitemap-index depth to follow (0–10). |\n| `maxSitemaps` | integer | `1000` | Maximum sitemap files to attempt per run (1–10,000). |\n| `maxUrls` | integer | `0` | Maximum URL rows to emit; 0 means unlimited. Filtered and duplicate URLs do not count. |\n| `lastmodAfter` | string | - | Keep URLs dated on or after this point. Accepts ISO dates/timestamps and windows such as `7 days`, `24 hours`, `2 weeks`. |\n| `keepUrlsWithoutLastmod` | boolean | `false` | Keep undated URLs when a date filter is active. |\n| `urlFilterInclude` | string | - | Keep only URLs matching this pattern. |\n| `urlFilterExclude` | string | - | Drop URLs matching this pattern, after the include filter. |\n| `urlMatchMode` | string | `regex` | `regex`, `text` or `glob` for both URL filters. |\n| `sameHostOnly` | boolean | `false` | Drop URLs whose host differs from the host of your input URLs. |\n| `deduplicateUrls` | boolean | `true` | Emit each URL once even when several sitemaps list it. |\n| `includeImages` | boolean | `true` | Include image sitemap metadata. |\n| `includeVideos` | boolean | `true` | Include video sitemap metadata. |\n| `includeNews` | boolean | `true` | Include Google News metadata. |\n| `includeAlternates` | boolean | `true` | Include hreflang alternates. |\n\n`urlMatchMode=regex` uses Python regular expressions, case-insensitively. `text` matches a literal substring. `glob` uses `*` for any characters except `/`, `**` for any characters including `/`, and `?` for one character.\n\n## Examples\n\n### Read a known sitemap index\n\n```json\n{\n  \"startUrls\": [\"https://example.com/sitemap_index.xml\"],\n  \"maxUrls\": 5000\n}\n```\n\n### Discover the sitemaps from a bare domain\n\n```json\n{\n  \"startUrls\": [\"example.com\"],\n  \"discoverSitemaps\": true,\n  \"deduplicateUrls\": true\n}\n```\n\n### Only pages changed in the last week\n\n```json\n{\n  \"startUrls\": [\"https://example.com/sitemap.xml\"],\n  \"lastmodAfter\": \"7 days\",\n  \"includeAlternates\": false,\n  \"includeImages\": false\n}\n```\n\n### Product URLs only, using a wildcard filter\n\n```json\n{\n  \"startUrls\": [\"https://example.com/sitemap.xml\"],\n  \"urlMatchMode\": \"glob\",\n  \"urlFilterInclude\": \"**/products/**\",\n  \"urlFilterExclude\": \"**/products/tag/**\"\n}\n```\n\n### RSS or Atom feed as a sitemap\n\n```json\n{\n  \"startUrls\": [\"https://example.com/feed.xml\", \"https://example.com/sitemap.txt\"],\n  \"maxUrls\": 2000\n}\n```\n\n## Limits and honest notes\n\n- The sitemap protocol asks publishers to keep each file at or below 50,000 URLs and 50 MB uncompressed. This is a publisher limit, not an actor truncation: the actor reads larger files and only refuses a single fetched file above 100 MB as a safety guard.\n- `maxUrls` defaults to `0`, which means no total-row limit. You can set a cap up to 1,000,000. The actor attempts at most 10,000 sitemap files (default 1,000) and follows at most 10 index levels (default 5); these two are hard actor caps.\n- A date filter uses `lastmod`, then the feed date, then a news publication date. When none is readable, the URL counts as undated and is dropped unless `keepUrlsWithoutLastmod` is on. With a date filter, a child sitemap whose own entry in the parent index is older than the cutoff is skipped for speed; turn on `keepUrlsWithoutLastmod` to fetch every child anyway. An invalid date window is logged and ignored rather than failing the run.\n- `changefreq` and `priority` are the publisher's hints. Search engines may ignore them; this actor does not invent or recalculate them.\n- A sitemap can be incomplete. Pages that the site owner did not include in a sitemap cannot appear here.\n- Some sites block sitemap requests from automated clients (a 403 challenge or a captcha) or return an HTML page at the sitemap URL. Those paths fail softly and are logged; check the site in a browser and pass the exact file if you know it.\n- This actor does not check the HTTP status, canonical tag or indexing status of the pages it lists, and does not remember URLs between runs. Use a dedicated link checker for status checks and a scheduler plus your own storage for new-URL monitoring.\n- The actor does not use a proxy or cookies. If a site blocks the request, the block is a site-side limitation, not a missing setting.\n\n## FAQ\n\n**Do I need a proxy, login or API key?**\nNo. Sitemaps are public files meant for search engines. The actor reads them over plain HTTPS without cookies or credentials.\n\n**What if I do not know the sitemap URL?**\nPass the domain or homepage. The actor reads `robots.txt`, the homepage's `<link rel=\"sitemap\">` hint, common sitemap paths, and—when no sitemap is advertised—the homepage's RSS/Atom autodiscovery links. If the site blocks those probes, pass the exact sitemap or feed URL.\n\n**Which formats are supported?**\nXML urlsets, sitemap indexes, gzip files (detected by content, not by the `.gz` suffix), plain-text sitemaps, RSS 2.0, RSS 1.0/RDF and Atom feeds.\n\n**Are nested sitemap indexes followed?**\nYes, up to `maxSitemapDepth`. Set it to 0 or turn off `followSitemapIndexes` to read only the files you supplied.\n\n**Why is `lastmod` or `priority` missing on some rows?**\nBoth are optional in the sitemap standard. The field is omitted rather than padded with a placeholder.\n\n**Why do I also see `lastmodIso`?**\n`lastmod` is exactly what the publisher wrote, while `lastmodIso` is the same moment in UTC ISO 8601 for sorting and joins. It is present only when the value can be parsed.\n\n**Does it extract image, video, news and hreflang data?**\nYes, when the sitemap carries those extensions. Each toggle can turn a block off to keep the dataset smaller. hreflang is read even from old or non-standard xhtml namespaces.\n\n**Does it follow the page URLs?**\nNo. It reads only the sitemap files, which keeps runs cheap and avoids touching the target site's pages.\n\n**What happens when a site has no sitemap?**\nThe run emits one `sitemap_error` row explaining that no URLs were extracted. A site without a published sitemap cannot be inventoried this way.\n",
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "URLs",
              "transformation": {
                "fields": [
                  "url",
                  "lastmod",
                  "changefreq",
                  "priority",
                  "host",
                  "sourceType",
                  "sitemapDepth",
                  "source"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "url": {
                    "label": "URL",
                    "format": "link"
                  },
                  "lastmod": {
                    "label": "Last modified",
                    "format": "text"
                  },
                  "changefreq": {
                    "label": "Change frequency",
                    "format": "text"
                  },
                  "priority": {
                    "label": "Priority",
                    "format": "number"
                  },
                  "host": {
                    "label": "Host",
                    "format": "text"
                  },
                  "sourceType": {
                    "label": "Sitemap format",
                    "format": "text"
                  },
                  "sitemapDepth": {
                    "label": "Index depth",
                    "format": "number"
                  },
                  "source": {
                    "label": "Source sitemap",
                    "format": "link"
                  }
                }
              }
            },
            "extensions": {
              "title": "Sitemap metadata",
              "transformation": {
                "fields": [
                  "url",
                  "lastmodIso",
                  "title",
                  "news",
                  "images",
                  "videos",
                  "alternates",
                  "sourceSitemapLastmod"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "url": {
                    "label": "URL",
                    "format": "link"
                  },
                  "lastmodIso": {
                    "label": "Last modified (ISO)",
                    "format": "text"
                  },
                  "title": {
                    "label": "Feed title",
                    "format": "text"
                  },
                  "news": {
                    "label": "News",
                    "format": "array"
                  },
                  "images": {
                    "label": "Images",
                    "format": "array"
                  },
                  "videos": {
                    "label": "Videos",
                    "format": "array"
                  },
                  "alternates": {
                    "label": "Hreflang alternates",
                    "format": "array"
                  },
                  "sourceSitemapLastmod": {
                    "label": "Index lastmod",
                    "format": "text"
                  }
                }
              }
            }
          }
        }
      }
    },
    "buildNumber": "1.0.2",
    "imageDigest": "e7f388e0c8ac82288ebe78c60119a14be66e76477da4af5b0ece377f890a74b9",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.010477777777777779
    }
  }
}