{
  "openapi": "3.0.1",
  "info": {
    "title": "Sitemap Diff, Crawl Health & Security Header Audit",
    "description": "Recursive XML sitemap diffing, HTTP redirect/404 crawl health, TLS certificate expiry, OWASP security headers, and technical SEO tags at 512 MB.",
    "version": "1.0",
    "x-build-id": "PwC0DvhWijZeuJGA7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/structmint~sitemap-diff-crawl-security-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-structmint-sitemap-diff-crawl-security-audit",
        "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/structmint~sitemap-diff-crawl-security-audit/runs": {
      "post": {
        "operationId": "runs-sync-structmint-sitemap-diff-crawl-security-audit",
        "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/structmint~sitemap-diff-crawl-security-audit/run-sync": {
      "post": {
        "operationId": "run-sync-structmint-sitemap-diff-crawl-security-audit",
        "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": [
          "targets"
        ],
        "properties": {
          "targets": {
            "title": "Domains or Sitemap URLs",
            "type": "array",
            "description": "Public domains (e.g. 'docs.apify.com'), homepage URLs, or direct XML/.xml.gz sitemap URLs to discover and audit. Private/localhost IPs are blocked. Free tier audits up to 2 targets / 25 URLs per run; paid tiers up to 15 targets / 500 URLs.",
            "default": [
              "https://docs.apify.com/sitemap.xml"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Audit Mode",
            "enum": [
              "full_audit",
              "sitemap_only"
            ],
            "type": "string",
            "description": "'full_audit' checks HTTP status, redirect chains, TLS expiry, 6 OWASP security headers, canonical, meta robots, and JSON-LD types on each URL; 'sitemap_only' parses XML sitemap URLs and diffs without fetching HTML.",
            "default": "full_audit"
          },
          "watchMode": {
            "title": "Enable Sitemap Diff Watch Mode",
            "type": "boolean",
            "description": "Persists complete sitemap URL inventories in a user-scoped Named Key-Value Store (90-day retention) and detects ADDED, REMOVED, and LASTMOD_CHANGED entries across scheduled runs.",
            "default": false
          },
          "onlyChanges": {
            "title": "Emit Dataset Items Only for Changed Sitemap Entries",
            "type": "boolean",
            "description": "Used with watchMode=true. Emits 0 dataset items when no URLs were added, removed, or updated since the last complete scan.",
            "default": true
          },
          "watchStateKey": {
            "title": "Watch State Key",
            "type": "string",
            "description": "Stable namespace isolating saved sitemap baselines for a recurring schedule.",
            "default": "default-sitemap-watch"
          },
          "maxUrlsToAudit": {
            "title": "Max URLs to Audit Per Run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Upper limit on emitted URL records per run (Free tier capped at 25; paid tiers up to 500).",
            "default": 10
          },
          "concurrency": {
            "title": "HTTP Audit Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel HTTP inspection workers (1 to 10).",
            "default": 6
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt Disallow Rules",
            "type": "boolean",
            "description": "Checks each site's robots.txt wildcard Disallow/Allow rules before auditing HTML pages.",
            "default": true
          },
          "checkTls": {
            "title": "Inspect TLS Version & Certificate Expiry",
            "type": "boolean",
            "description": "Runs a lightweight native TLS handshake per HTTPS host to report TLS version, issuer, and days remaining until expiration.",
            "default": true
          },
          "extractSeo": {
            "title": "Extract Canonical, Robots Meta & JSON-LD Types",
            "type": "boolean",
            "description": "Parses page title, canonical self-reference check, robots meta tag, hreflang count, and JSON-LD @type list from HTML.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}