{
  "openapi": "3.0.1",
  "info": {
    "title": "Sitemap Generator – Crawl a Website & Create sitemap.xml",
    "description": "XML sitemap generator: crawls your website (robots.txt respected) and writes a ready-to-upload sitemap.xml with lastmod dates, hreflang alternates and optional image entries. Skips noindex, non-canonical, redirected and broken pages. Splits at 50,000 URLs. $0.50 per 1,000 pages.",
    "version": "0.1",
    "x-build-id": "TfFMEdTor9dMkBLdY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~sitemap-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-sitemap-generator",
        "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/gazidev~sitemap-generator/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-sitemap-generator",
        "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/gazidev~sitemap-generator/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-sitemap-generator",
        "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",
        "properties": {
          "startUrl": {
            "title": "Website URL",
            "type": "string",
            "description": "Home page of the website to put in the sitemap, e.g. `https://www.example.com`. The crawler stays on this host (www and non-www count as the same site). `https://` is added if missing. Empty input runs a small demo on crawler-test.com."
          },
          "maxPages": {
            "title": "Max pages to crawl",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of URLs fetched (breadth-first, so the most important pages come first). Set it a bit above the number of pages on your site. Only HTML pages that were downloaded are charged.",
            "default": 100
          },
          "maxDepth": {
            "title": "Max crawl depth",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "How many clicks away from the start page the crawler goes. `0` = only the start page.",
            "default": 20
          },
          "addLastmod": {
            "title": "Add <lastmod> dates",
            "type": "boolean",
            "description": "Adds `<lastmod>` from the page's JSON-LD `dateModified` or `article:modified_time` meta tag, otherwise from the `Last-Modified` HTTP header. A header that is just the current time (dynamic pages) is ignored, so no fake dates are written.",
            "default": true
          },
          "addHreflang": {
            "title": "Add hreflang alternates",
            "type": "boolean",
            "description": "Copies each page's `<link rel=\"alternate\" hreflang=\"…\">` tags into the sitemap as `<xhtml:link>` entries (multilingual sites). Pages without hreflang tags are unaffected.",
            "default": true
          },
          "addImages": {
            "title": "Add image entries",
            "type": "boolean",
            "description": "Adds `<image:image>` entries (Google image sitemap extension) for every `<img>` on the page, up to 1,000 per page.",
            "default": false
          },
          "changefreq": {
            "title": "changefreq (optional)",
            "enum": [
              "",
              "always",
              "hourly",
              "daily",
              "weekly",
              "monthly",
              "yearly",
              "never"
            ],
            "type": "string",
            "description": "Optional `<changefreq>` value for every URL. Google ignores it; leave empty unless another tool needs it.",
            "default": ""
          },
          "includeNoindexPages": {
            "title": "Keep noindex pages",
            "type": "boolean",
            "description": "Off (recommended): pages with `noindex` in a robots meta tag or X-Robots-Tag header are left out.",
            "default": false
          },
          "includeNonCanonicalPages": {
            "title": "Keep non-canonical pages",
            "type": "boolean",
            "description": "Off (recommended): pages whose `rel=canonical` points to another URL are left out (the canonical URL is crawled instead).",
            "default": false
          },
          "sitemapBaseUrl": {
            "title": "Where you will upload the sitemap (optional)",
            "type": "string",
            "description": "Only used when the site has more than 50,000 URLs: the `sitemap_index.xml` points to `<this URL>/sitemap-1.xml`, `/sitemap-2.xml`, … Default: the site root, e.g. `https://www.example.com`."
          },
          "includeGlobs": {
            "title": "Only list URLs matching (globs)",
            "type": "array",
            "description": "Optional. Only URLs matching one of these globs go into the sitemap, e.g. `https://www.example.com/blog/**`. Other pages are still crawled (and charged) to discover links. `*` matches within one path segment, `**` matches anything.",
            "items": {
              "type": "object",
              "required": [
                "glob"
              ],
              "properties": {
                "glob": {
                  "type": "string",
                  "title": "Glob of a web page"
                }
              }
            }
          },
          "excludeGlobs": {
            "title": "Skip URLs matching (globs)",
            "type": "array",
            "description": "Optional. URLs matching these globs are never fetched, e.g. `https://www.example.com/cart/**` or `**/tag/**`.",
            "items": {
              "type": "object",
              "required": [
                "glob"
              ],
              "properties": {
                "glob": {
                  "type": "string",
                  "title": "Glob of a web page"
                }
              }
            }
          },
          "skipUrlsWithQueryString": {
            "title": "Skip URLs with ?query parameters",
            "type": "boolean",
            "description": "On (recommended): links with `?…` (filters, sorting, tracking, pagination parameters) are not crawled. Turn off if your real pages use query strings, e.g. `/page.php?id=5`.",
            "default": true
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Do not fetch URLs disallowed by robots.txt (they are also kept out of the sitemap), honor Crawl-delay (up to 10 s) and meta `nofollow`. Turn off only for a website you own.",
            "default": true
          },
          "concurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many requests are sent to the website at the same time. Keep it low to stay polite. Forced to 1 when robots.txt sets a Crawl-delay.",
            "default": 5
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 3,
            "maximum": 120,
            "type": "integer",
            "description": "A page that does not answer within this time is left out with error `TIMEOUT`.",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}