{
  "openapi": "3.0.1",
  "info": {
    "title": "Fast Website & Sitemap Markdown Crawler for AI/RAG",
    "description": "Crawl docs, blogs, sitemaps, and /llms.txt files over direct HTTP into clean GitHub-Flavored Markdown. Strips site chrome, tracks headings and link graphs, and outputs word and LLM token estimates without Chrome.",
    "version": "1.0",
    "x-build-id": "yHC7dxO6KSSctOGhC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tsun_tsun~fast-website-markdown-crawler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tsun_tsun-fast-website-markdown-crawler",
        "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/tsun_tsun~fast-website-markdown-crawler/runs": {
      "post": {
        "operationId": "runs-sync-tsun_tsun-fast-website-markdown-crawler",
        "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/tsun_tsun~fast-website-markdown-crawler/run-sync": {
      "post": {
        "operationId": "run-sync-tsun_tsun-fast-website-markdown-crawler",
        "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": "Start URLs",
            "type": "array",
            "description": "One or more public http(s) documentation, blog, or website URLs to crawl (e.g. https://docs.apify.com/actors). Supports multi-domain and multi-path roots.",
            "items": {
              "type": "string"
            }
          },
          "useSitemap": {
            "title": "Discover Pages From robots.txt & sitemap.xml",
            "type": "boolean",
            "description": "Read robots.txt Sitemap directives and /sitemap.xml (including nested sitemapindex files up to 20 child sitemaps) per origin to seed scoped internal URLs.",
            "default": true
          },
          "preferLlmsTxt": {
            "title": "Check /llms-full.txt & /llms.txt First",
            "type": "boolean",
            "description": "When enabled, checks /llms-full.txt and /llms.txt on each start origin before HTML crawling. If /llms-full.txt is served as valid plain text/Markdown, emits it directly and skips HTML crawling for that origin; if /llms.txt is served, emits it and seeds its scoped links.",
            "default": false
          },
          "includePathPrefix": {
            "title": "Optional Path Prefix Scope",
            "type": "string",
            "description": "Restrict crawled URLs to exact path segment prefixes (e.g. '/actors' matches '/actors/running' but not '/actors-v2'). Leave blank to auto-scope per Start URL."
          },
          "includePathPatterns": {
            "title": "Include URL Patterns (Allowlist)",
            "type": "array",
            "description": "Optional allowlist of path segments (leading '/' matches whole path segments, e.g. '/guides' matches '/guides/rag' without matching '/guides-old') or URL substrings. When non-empty, only matching internal URLs are crawled and emitted.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludePathPatterns": {
            "title": "Exclude URL Patterns",
            "type": "array",
            "description": "Skip internal URLs matching these path segments (leading '/' matches whole path segments, so '/cart' skips '/cart/items' without blocking '/cartoon') or substrings.",
            "items": {
              "type": "string"
            },
            "default": [
              "/login",
              "/signup",
              "/cart",
              "/checkout",
              "/wp-admin"
            ]
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of valid HTTP 2xx pages with real content to convert to Markdown and push to the dataset.",
            "default": 25
          },
          "maxDepth": {
            "title": "Max Link Depth",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum internal link hops from Start URLs (0 crawls only Start URLs and sitemap seeds).",
            "default": 2
          },
          "maxMarkdownChars": {
            "title": "Max Markdown Characters Per Page (0 = Unlimited)",
            "minimum": 0,
            "maximum": 200000,
            "type": "integer",
            "description": "Optional character cap per page applied at a paragraph, line, or word boundary for token-budgeted RAG pipelines. Set 0 to return full page Markdown.",
            "default": 0
          },
          "concurrency": {
            "title": "Request Concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Number of concurrent HTTP page fetches executed in parallel (1 to 15).",
            "default": 5
          },
          "includeLinks": {
            "title": "Include Extracted Links",
            "type": "boolean",
            "description": "Include deduplicated, normalized internalLinks and externalLinks arrays on every dataset record.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}