{
  "openapi": "3.0.1",
  "info": {
    "title": "Sitemap URL Extractor: All Page URLs, Lastmod, Images, News",
    "description": "Get every URL a website lists in its XML sitemaps. Finds sitemaps via robots.txt, follows sitemap indexes and .gz files, and returns lastmod, changefreq, priority, images, news, video and hreflang. Filters, optional status check. Failed sitemaps are free.",
    "version": "0.1",
    "x-build-id": "BnccreK0EMzjG16c2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fjordlabs~sitemap-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fjordlabs-sitemap-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/fjordlabs~sitemap-extractor/runs": {
      "post": {
        "operationId": "runs-sync-fjordlabs-sitemap-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/fjordlabs~sitemap-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-fjordlabs-sitemap-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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Websites or sitemap URLs",
            "type": "array",
            "description": "Domains (apify.com), website URLs, or direct sitemap URLs (sitemap.xml, sitemap_index.xml, .xml.gz, .txt, RSS/Atom). For a website, sitemaps are found via robots.txt, then common paths like /sitemap.xml.",
            "items": {
              "type": "string"
            }
          },
          "maxUrls": {
            "title": "Max URLs (total)",
            "minimum": 1,
            "maximum": 5000000,
            "type": "integer",
            "description": "Stop after this many URLs in total (after filters and de-duplication). Each URL is one result row. Up to about 1 million URLs fit the default 256 MB memory; for more, raise the run memory to 1 GB.",
            "default": 1000
          },
          "maxUrlsPerInput": {
            "title": "Max URLs per website/sitemap",
            "minimum": 0,
            "type": "integer",
            "description": "Optional cap per input, so one huge site can't use up the whole budget. 0 = no per-input cap.",
            "default": 0
          },
          "includeRegex": {
            "title": "Only URLs matching (regex)",
            "type": "array",
            "description": "Keep only URLs that match at least one of these regular expressions, e.g. /blog/ or /products/.",
            "items": {
              "type": "string"
            }
          },
          "excludeRegex": {
            "title": "Skip URLs matching (regex)",
            "type": "array",
            "description": "Drop URLs that match any of these regular expressions, e.g. /tag/ or \\?page=.",
            "items": {
              "type": "string"
            }
          },
          "lastmodSince": {
            "title": "Modified since",
            "type": "string",
            "description": "Keep only URLs whose lastmod is on or after this date: YYYY-MM-DD, or a period like '7 days', '24 hours', '3 months'. Child sitemaps whose own lastmod is older are skipped entirely."
          },
          "includeUrlsWithoutLastmod": {
            "title": "Keep URLs without lastmod",
            "type": "boolean",
            "description": "Only used with 'Modified since'. Many sitemaps omit lastmod; by default such URLs are dropped when you filter by date.",
            "default": false
          },
          "includeExtensions": {
            "title": "Include images, news, video and hreflang",
            "type": "boolean",
            "description": "Adds images[], news{}, videos[] and alternates[] (hreflang) from Google's sitemap extensions when present.",
            "default": true
          },
          "checkStatus": {
            "title": "Check HTTP status of each URL",
            "type": "boolean",
            "description": "Sends one light HEAD request per URL (no page download) and adds statusCode and redirectUrl. Finds broken (404) and redirected URLs in your sitemap. Off by default; slower.",
            "default": false
          },
          "maxStatusChecks": {
            "title": "Max status checks",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit on status checks per run. URLs beyond it get statusError 'maxStatusChecks reached'.",
            "default": 500
          },
          "maxSitemaps": {
            "title": "Max sitemap files",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit on sitemap files downloaded per run (indexes included).",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Parallel websites",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many inputs are processed at the same time. Sitemaps of one site are read one after another.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout per HTTP request. Large sitemaps can take a while.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}