{
  "openapi": "3.0.1",
  "info": {
    "title": "Sitemap Extractor: All URLs, SEO Check & Change Monitor",
    "description": "Get every URL from any website's sitemaps with last-modified dates, images and languages. Optional page check finds broken links, redirects and SEO problems. Monitor new, changed and removed pages.",
    "version": "0.2",
    "x-build-id": "t7Z0wkYveAkdmy9fN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/techliondev~sitemap-url-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-techliondev-sitemap-url-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/techliondev~sitemap-url-extractor/runs": {
      "post": {
        "operationId": "runs-sync-techliondev-sitemap-url-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/techliondev~sitemap-url-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-techliondev-sitemap-url-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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Websites or sitemap links",
            "type": "array",
            "description": "Website addresses (https://example.com) to find their sitemaps automatically, or direct links to sitemap files (https://example.com/sitemap.xml, .xml.gz or .txt).",
            "default": [
              "https://apify.com",
              "https://blog.apify.com/sitemap.xml"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxUrlsPerSite": {
            "title": "Maximum URLs per website",
            "minimum": 1,
            "maximum": 2000000,
            "type": "integer",
            "description": "Stop after saving this many URLs from each website. With page checks on, this also limits how many pages are checked.",
            "default": 500
          },
          "urlContains": {
            "title": "Only URLs containing",
            "type": "array",
            "description": "Optional. Keep only URLs that contain at least one of these texts, for example /blog/ or /products/.",
            "items": {
              "type": "string"
            }
          },
          "urlExcludes": {
            "title": "Skip URLs containing",
            "type": "array",
            "description": "Optional. Drop URLs that contain any of these texts, for example /tag/ or ?page=.",
            "items": {
              "type": "string"
            }
          },
          "urlRegex": {
            "title": "URL pattern (regular expression)",
            "type": "string",
            "description": "Optional. Keep only URLs matching this pattern, for example /blog/\\d{4}/ or \\.pdf$. Not case-sensitive. Free."
          },
          "modifiedSince": {
            "title": "Only pages changed since",
            "type": "string",
            "description": "Keep only pages whose sitemap date is on or after this date, for example \"7 days\". Pages without a date are skipped when this is set."
          },
          "checkPages": {
            "title": "Check each page ($)",
            "type": "boolean",
            "description": "Visits every saved URL to read its HTTP status, redirects, response time, title, meta description, main heading (H1), canonical link, noindex tag, language and word count. Finds broken links and SEO (search engine optimization) problems. One request per page, charged as an add-on for each page checked.",
            "default": false
          },
          "onlyProblemPages": {
            "title": "Only save pages with problems",
            "type": "boolean",
            "description": "With page checks on, save only broken pages (errors 400 and up, or no response), redirects, noindex pages, pages whose canonical link points elsewhere, and pages with no title. Each checked page is still charged as a page check.",
            "default": false
          },
          "checkConcurrency": {
            "title": "Pages to check at once",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages to check at the same time. Keep this low for small websites so you don't overload them.",
            "default": 5
          },
          "trackChanges": {
            "title": "Track changes between runs",
            "type": "boolean",
            "description": "Remembers the URLs from the last run and marks each URL as new, modified (its date changed) or removed. Schedule the run to get a feed of site changes. The first run marks everything as new.",
            "default": false
          },
          "onlyChanges": {
            "title": "Save only changes",
            "type": "boolean",
            "description": "With change tracking on, skip URLs that did not change since the last run.",
            "default": true
          },
          "stateName": {
            "title": "Memory name",
            "type": "string",
            "description": "Name of the storage where the previous URL list is kept. Use different names to track the same site for different purposes.",
            "default": "sitemap-monitor-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}