{
  "openapi": "3.0.1",
  "info": {
    "title": "Sitemap Extractor & Change Monitor · New and Removed URLs",
    "description": "Sitemap extractor and change monitor for any website: reads the XML sitemaps (robots.txt, /sitemap.xml, indexes, .xml.gz), lists the URLs on the first run if you want, then reports only new and removed pages. Competitor content and product launches, SEO change logs.",
    "version": "0.1",
    "x-build-id": "tU3JJANILrfE3zadQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thequietstack~sitemap-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thequietstack-sitemap-change-monitor",
        "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/thequietstack~sitemap-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-thequietstack-sitemap-change-monitor",
        "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/thequietstack~sitemap-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-thequietstack-sitemap-change-monitor",
        "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": [
          "sites"
        ],
        "properties": {
          "sites": {
            "title": "Websites",
            "type": "array",
            "description": "Domains or homepage URLs (sitemaps are found via robots.txt, then /sitemap.xml) or a direct sitemap URL (…/sitemap.xml or .xml.gz).",
            "items": {
              "type": "string"
            }
          },
          "firstRunMode": {
            "title": "First run",
            "enum": [
              "baseline",
              "deliver"
            ],
            "type": "string",
            "description": "The first run of a watch only learns the current URLs by default, so you are not charged for thousands of existing pages.",
            "default": "baseline"
          },
          "reportUpdates": {
            "title": "Report updated pages (lastmod changed)",
            "type": "boolean",
            "description": "Also report URLs whose <lastmod> moved forward since the last run. Off by default: many shops (e.g. Shopify) bump lastmod on every stock or price change, which is noise if you only want new and removed pages.",
            "default": false
          },
          "urlContains": {
            "title": "Only URLs containing",
            "type": "array",
            "description": "Optional. Keep only changes whose URL contains one of these strings, e.g. /blog/ or /products/.",
            "items": {
              "type": "string"
            }
          },
          "urlExcludes": {
            "title": "Ignore URLs containing",
            "type": "array",
            "description": "Optional. Drop changes whose URL contains one of these strings, e.g. /tag/ or ?page=.",
            "items": {
              "type": "string"
            }
          },
          "maxRows": {
            "title": "Max changes per run",
            "minimum": 1,
            "type": "integer",
            "description": "Cost cap. Changes above it are not marked as seen and are reported in the next run.",
            "default": 500
          },
          "maxUrlsPerSite": {
            "title": "Max URLs per site",
            "minimum": 100,
            "type": "integer",
            "description": "Safety limit. When a site has more URLs, the scan counts as incomplete and removals are not reported (no false 'removed').",
            "default": 50000
          },
          "maxSitemapsPerSite": {
            "title": "Max sitemap files per site",
            "minimum": 1,
            "type": "integer",
            "description": "Safety limit for very large sitemap indexes.",
            "default": 300
          },
          "delayMs": {
            "title": "Pause between requests (ms)",
            "minimum": 100,
            "type": "integer",
            "description": "Politeness delay between sitemap downloads on the same run.",
            "default": 300
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional. Separate 'only changes' memory for the same site (e.g. one watch per client)."
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store that keeps the last known URLs per site between runs.",
            "default": "thequietstack-sitemap-monitor-state"
          },
          "massUpdateShare": {
            "title": "Ignore mass re-stamping above (share of URLs)",
            "minimum": 0.05,
            "maximum": 1,
            "type": "number",
            "description": "If more than this share of a site's URLs get a new lastmod in one run (≥ 50 URLs), the sitemap was regenerated: you get one massUpdate note in SUMMARY instead of hundreds of 'updated' rows (not charged).",
            "default": 0.3
          },
          "resetMemory": {
            "title": "Start fresh (forget previous run)",
            "type": "boolean",
            "description": "Treat this run as a first run: the previous URL list is ignored and overwritten. Useful for tests or after changing filters.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}