{
  "openapi": "3.0.1",
  "info": {
    "title": "Sitemap URL Extractor - All URLs from Any Website",
    "description": "Extract all page URLs from any website's sitemap.xml: finds sitemaps via robots.txt, follows sitemap indexes and .gz files, filters by path and lastmod, and can check status codes. Clean JSON, CSV or TXT for AI agents, crawlers, n8n and SEO audits. Pay per URL.",
    "version": "1.0",
    "x-build-id": "ovh0QEyVMUEy4T4vb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mcpkit~sitemap-urls-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mcpkit-sitemap-urls-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/mcpkit~sitemap-urls-extractor/runs": {
      "post": {
        "operationId": "runs-sync-mcpkit-sitemap-urls-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/mcpkit~sitemap-urls-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-mcpkit-sitemap-urls-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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Domains or sitemap URLs",
            "type": "array",
            "description": "Domains, page URLs or sitemap URLs. For a domain or page URL the sitemaps are found via robots.txt and standard paths such as /sitemap.xml; a sitemap URL (.xml, .xml.gz, .txt) is read directly. Scheme, www and duplicates are normalized. Example: [\"apify.com\", \"https://example.com/sitemap.xml\"]",
            "items": {
              "type": "string"
            }
          },
          "includePatterns": {
            "title": "Include URL patterns",
            "type": "array",
            "description": "Keep only URLs matching any of these patterns (case-insensitive). A regular expression is searched anywhere in the URL; a pattern with * and no other regex syntax is a glob. Example: [\"/blog/\", \"*.pdf\"]",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludePatterns": {
            "title": "Exclude URL patterns",
            "type": "array",
            "description": "Drop URLs matching any of these patterns, same syntax as includePatterns. Example: [\"\\\\.(jpg|png)$\", \"/tag/\"]",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "lastmodFrom": {
            "title": "Modified from (lastmod)",
            "type": "string",
            "description": "Keep URLs whose sitemap lastmod is on or after this date: ISO date, ISO datetime or a relative age for scheduled runs. URLs without lastmod are kept unless requireLastmod is true. Example: \"2026-11-01\" or \"7 days\"",
            "default": ""
          },
          "lastmodTo": {
            "title": "Modified to (lastmod)",
            "type": "string",
            "description": "Keep URLs whose sitemap lastmod is on or before this date (a date includes the whole day). Same formats as lastmodFrom. Example: \"2026-11-30\"",
            "default": ""
          },
          "requireLastmod": {
            "title": "Drop URLs without lastmod",
            "type": "boolean",
            "description": "When lastmodFrom or lastmodTo is set, drop URLs that have no lastmod in the sitemap. Example: false",
            "default": false
          },
          "maxUrls": {
            "title": "Max URLs",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Safety limit: stop after this many URLs are kept (after filters and deduplication). Example: 100000",
            "default": 100000
          },
          "checkStatus": {
            "title": "Check HTTP status of every URL",
            "type": "boolean",
            "description": "Request every kept URL (HEAD, then GET if needed) and add statusCode, finalUrl and redirected: finds broken (404) and redirected URLs for SEO audits. Slower; charged per checked URL. Example: false",
            "default": false
          },
          "outputTo": {
            "title": "Output to",
            "enum": [
              "dataset",
              "file",
              "both"
            ],
            "type": "string",
            "description": "dataset: one dataset item per URL. file: only a CSV, TXT or JSONL file in the key-value store plus one summary item with the file link (fast and cheap for large sites). both: dataset and file. Example: \"dataset\"",
            "default": "dataset"
          },
          "outputFile": {
            "title": "File format",
            "enum": [
              "none",
              "csv",
              "txt",
              "jsonl"
            ],
            "type": "string",
            "description": "Format of the result file when outputTo is file or both; csv is used if none is chosen. txt is one URL per line. Example: \"csv\"",
            "default": "none"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}