{
  "openapi": "3.0.1",
  "info": {
    "title": "Sitemap URL Extractor — Every URL from sitemap.xml, Fast",
    "description": "Lists every URL a website publishes in its XML sitemaps: finds them via robots.txt and common paths, follows nested indexes and .gz files, outputs url, lastmod, changefreq, priority, image and hreflang data per row. Filters by pattern and date. No browser.",
    "version": "0.1",
    "x-build-id": "W2blhYLUodxeYE32b"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~sitemap-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-sitemap-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/fabrikit~sitemap-extractor/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-sitemap-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/fabrikit~sitemap-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-sitemap-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "websites"
        ],
        "properties": {
          "websites": {
            "title": "Websites or sitemap URLs",
            "type": "array",
            "description": "One per line: a domain (example.com), a page URL (https://example.com/blog), a robots.txt URL, or a direct sitemap / feed URL (https://example.com/sitemap.xml, sitemap_index.xml, sitemap.xml.gz, sitemap.txt, RSS/Atom). Up to 10,000 lines per run.",
            "items": {
              "type": "string"
            }
          },
          "onlySitemapList": {
            "title": "Only list the sitemaps",
            "type": "boolean",
            "description": "Save one row per sitemap file found (type, URL count, child sitemaps, lastmod, size) instead of one row per URL. Charged per sitemap row ('sitemap-result') and much cheaper for a site inventory.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 2000000,
            "type": "integer",
            "description": "Stop after this many rows in total (URLs, or sitemaps in list mode). Exact: the run never saves or charges more.",
            "default": 500
          },
          "maxUrlsPerSite": {
            "title": "Maximum URLs per site",
            "minimum": 0,
            "maximum": 2000000,
            "type": "integer",
            "description": "Stop reading a site after this many of its URLs were saved. 0 = no per-site limit (only 'Maximum rows' applies).",
            "default": 0
          },
          "maxSitemapsPerSite": {
            "title": "Maximum sitemap files per site",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many sitemap files (indexes and children) to download per site. Large sites publish hundreds; raise it when you need the whole site.",
            "default": 50
          },
          "maxDepth": {
            "title": "Maximum index depth",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many levels of nested sitemap indexes to follow (0 = read only the sitemaps given or listed in robots.txt, do not open indexes).",
            "default": 5
          },
          "includePatterns": {
            "title": "Include URLs matching",
            "type": "array",
            "description": "Keep only URLs matching at least one pattern: a glob (https://example.com/blog/*, * matches anything), a /regular expression/ (/\\/product\\/\\d+/) or a plain substring (/docs/). Case-insensitive. Empty = keep everything.",
            "items": {
              "type": "string"
            }
          },
          "excludePatterns": {
            "title": "Exclude URLs matching",
            "type": "array",
            "description": "Drop URLs matching any pattern (same syntax as above), for example */tag/* or /\\.(pdf|jpg)$/.",
            "items": {
              "type": "string"
            }
          },
          "lastmodFrom": {
            "title": "Modified since (lastmod)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}(T[0-9:.]+(Z|[+-]\\d{2}:?\\d{2})?)?$",
            "type": "string",
            "description": "Keep only URLs whose <lastmod> is on or after this date (YYYY-MM-DD or ISO 8601). URLs without lastmod are dropped when this is set."
          },
          "includeDetails": {
            "title": "Include image, video, hreflang and news details",
            "type": "boolean",
            "description": "Add the full lists: images (URL, title, caption), videos (URL, title, thumbnail, duration), hreflang alternates and Google News tags. Counts (imageCount, videoCount, alternateCount) are always included. Same price.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Sites in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many websites are read at the same time. Within one site the requests are sequential and paced (polite by design).",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Sitemaps are public files, so the default is no proxy. Pick Apify datacenter proxies if your runs hit rate limits. Residential proxies are refused (large files, bandwidth would cost more than the rows).",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}