{
  "openapi": "3.0.1",
  "info": {
    "title": "Sitemap Extractor & SEO Audit: URLs, robots.txt, Status",
    "description": "Extract every URL from a site's XML sitemaps (index, gzip, hreflang, images) and audit them: robots.txt conflicts, stale lastmod, duplicates, status, redirects, canonical, noindex.",
    "version": "0.1",
    "x-build-id": "E1z4a208eEuBiQenS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kayorama~sitemap-extractor-seo-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kayorama-sitemap-extractor-seo-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/kayorama~sitemap-extractor-seo-audit/runs": {
      "post": {
        "operationId": "runs-sync-kayorama-sitemap-extractor-seo-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/kayorama~sitemap-extractor-seo-audit/run-sync": {
      "post": {
        "operationId": "run-sync-kayorama-sitemap-extractor-seo-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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Websites or sitemap URLs",
            "type": "array",
            "description": "A website (example.com) to find its sitemaps through robots.txt, or a direct sitemap link (XML, .xml.gz or .txt). One per line.",
            "default": [
              "https://docs.python.org"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxUrlsPerSite": {
            "title": "Max URLs per site",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop reading sitemaps after this many URLs for one site.",
            "default": 5000
          },
          "maxSitemapsPerSite": {
            "title": "Max sitemap files per site",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit on sitemap files (including nested index files) read per site.",
            "default": 200
          },
          "urlContains": {
            "title": "Only URLs containing",
            "type": "array",
            "description": "Keep only URLs that contain one of these, for example /blog/ or /products/.",
            "items": {
              "type": "string"
            }
          },
          "urlExcludes": {
            "title": "Skip URLs containing",
            "type": "array",
            "description": "Drop URLs that contain any of these.",
            "items": {
              "type": "string"
            }
          },
          "checkUrls": {
            "title": "Live URL check",
            "enum": [
              "none",
              "sample",
              "all"
            ],
            "type": "string",
            "description": "Request URLs to get status code, redirects, canonical and noindex. Sample spreads the checks evenly across the list.",
            "default": "none"
          },
          "checkSampleSize": {
            "title": "Sample size",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many URLs to check per site in sample mode.",
            "default": 50
          },
          "maxChecksPerSite": {
            "title": "Max checks per site",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Safety cap for live checks per site, also in 'every URL' mode. At the default pace that is about 1 check per second.",
            "default": 1000
          },
          "staleDays": {
            "title": "Stale after (days)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Flag URLs whose lastmod is older than this.",
            "default": 365
          },
          "auditUserAgent": {
            "title": "robots.txt rules to audit against",
            "type": "string",
            "description": "Which crawler's robots.txt rules to test sitemap URLs against, for example Googlebot or Bingbot.",
            "default": "Googlebot"
          },
          "includeUrlRows": {
            "title": "Output one row per URL",
            "type": "boolean",
            "description": "Turn off to get only the summary row per site.",
            "default": true
          },
          "onlyUrlsWithIssues": {
            "title": "Only URLs with issues",
            "type": "boolean",
            "description": "Output only URL rows that have at least one issue. The summary still counts everything.",
            "default": false
          },
          "trackChanges": {
            "title": "Track new and removed URLs",
            "type": "boolean",
            "description": "Save the URL list of each site and compare the next run against it. Rows get changeType new or unchanged, and removed URLs get their own rows. The first run only saves the baseline.",
            "default": false
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "all",
              "changesOnly"
            ],
            "type": "string",
            "description": "With tracking on, output every URL or only new and removed URLs. Summary rows are always written.",
            "default": "all"
          },
          "stateStoreName": {
            "title": "Snapshot store name",
            "type": "string",
            "description": "Named key-value store that keeps the URL snapshots. Use a different name per schedule.",
            "default": "sitemap-audit-state"
          },
          "requestDelayMs": {
            "title": "Delay between requests to a site (ms)",
            "minimum": 500,
            "maximum": 60000,
            "type": "integer",
            "description": "Pause between requests to the same host. A Crawl-delay in robots.txt is respected when it is longer.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}