{
  "openapi": "3.0.1",
  "info": {
    "title": "Sitemap Extractor & URL Finder",
    "description": "Returns every URL in a website's sitemaps, one row each, with its sitemap, image count and, when declared, lastmod (UTC), changefreq and priority. Finds sitemaps via robots.txt, follows nested indexes, reads XML, gzip, text, RSS and Atom, filters by pattern or date, can return only new URLs.",
    "version": "1.0",
    "x-build-id": "exG5Tka2OHVvgFaBt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/urameshi7k~sitemap-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-urameshi7k-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/urameshi7k~sitemap-extractor/runs": {
      "post": {
        "operationId": "runs-sync-urameshi7k-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/urameshi7k~sitemap-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-urameshi7k-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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Websites or sitemap URLs",
            "type": "array",
            "description": "Websites (example.com or https://example.com) or direct sitemap URLs (.xml, .xml.gz, .txt, RSS or Atom). For websites, sitemaps are found through robots.txt and, when it lists none, through common locations such as /sitemap.xml and /wp-sitemap.xml. A page with a path, such as https://example.com/blog/, returns only URLs under that path.",
            "items": {
              "type": "string"
            }
          },
          "maxUrls": {
            "title": "Max URLs per run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many URLs in total. Some sites list millions of URLs, so the default is 100,000. Set 0 for no limit (the run still stops at the maximum cost you set for it).",
            "default": 100000
          },
          "maxUrlsPerSite": {
            "title": "Max URLs per site",
            "minimum": 0,
            "type": "integer",
            "description": "Stop reading a site after this many URLs. 0 = no limit.",
            "default": 0
          },
          "includeUrlPatterns": {
            "title": "Only URLs matching",
            "type": "array",
            "description": "Keep only URLs that match at least one of these regular expressions (case-insensitive). Examples: /blog/ or /products/ or \\.pdf$",
            "items": {
              "type": "string"
            }
          },
          "excludeUrlPatterns": {
            "title": "Exclude URLs matching",
            "type": "array",
            "description": "Drop URLs that match any of these regular expressions (case-insensitive). Example: /tag/ or \\?page=",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrlPatterns": {
            "title": "Only sitemaps matching",
            "type": "array",
            "description": "Read URLs only from sitemaps whose own URL matches one of these regular expressions, for example post-sitemap or product. Sitemap index files are always followed.",
            "items": {
              "type": "string"
            }
          },
          "modifiedAfter": {
            "title": "Modified after",
            "type": "string",
            "description": "Keep URLs whose lastmod (in news sitemaps, the publication date) is on or after this moment. Use a date (2025-01-31), a full ISO date-time, or a period counted back from the start of the run, such as \"7 days\" or \"24 hours\". Child sitemaps whose own lastmod is older are skipped, which makes runs on large sites much faster."
          },
          "modifiedBefore": {
            "title": "Modified before",
            "type": "string",
            "description": "Keep URLs whose lastmod (or news publication date) is on or before this moment. Same formats as above."
          },
          "keepUrlsWithoutLastmod": {
            "title": "Keep URLs without a lastmod date",
            "type": "boolean",
            "description": "When a date filter is set, also keep URLs that have no date (no lastmod or news publication date), and read every child sitemap.",
            "default": false
          },
          "sameSiteOnly": {
            "title": "Same site only",
            "type": "boolean",
            "description": "Drop URLs whose host differs from the start URL's host (a leading www. is ignored).",
            "default": false
          },
          "onlyNewUrls": {
            "title": "Only new URLs",
            "type": "boolean",
            "description": "Return only URLs that are new to this monitor: earlier runs did not return them or save them as known. Ideal for scheduled runs that watch competitors for new pages, products or articles: you pay only for new URLs. New URLs a run could not return (Max URLs, cost limit) come back on the next run, unless your filters exclude them by then (a period in Modified after moves with each run). With Modified after, sitemaps skipped as old are not read, so their pages count as new once they are updated.",
            "default": false
          },
          "monitoringName": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Optional name for the saved list of known URLs. Runs that use the same name share it. By default the name is derived from the list of start URLs."
          },
          "baselineOnFirstRun": {
            "title": "First run only saves a baseline",
            "type": "boolean",
            "description": "On the first monitoring run, save the current URLs without returning (or charging for) them. Turn off to receive every URL on the first run.",
            "default": true
          },
          "includeImageUrls": {
            "title": "Include image URLs",
            "type": "boolean",
            "description": "Add the image URLs listed in image sitemaps. The number of images is always included.",
            "default": false
          },
          "includeAlternates": {
            "title": "Include language alternates",
            "type": "boolean",
            "description": "Add alternate language versions (hreflang links) when the sitemap lists them.",
            "default": true
          },
          "maxSitemapDepth": {
            "title": "Max sitemap index depth",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many levels of nested sitemap index files to follow.",
            "default": 5
          },
          "maxConcurrency": {
            "title": "Max parallel downloads",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum simultaneous downloads in total. At most 5 go to the same site at once.",
            "default": 10
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "How long to wait for each sitemap download before retrying.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}