{
  "openapi": "3.0.1",
  "info": {
    "title": "Website to Markdown Crawler: Docs, Sitemaps & LLM RAG",
    "description": "Website to Markdown crawler & Website Content Crawler: crawl websites, docs, llms.txt & sitemap.xml into clean text, GitHub-Flavored Markdown, metadata & RAG chunks for LLMs and vector databases — no browser or API key. Export JSON/CSV. $0 start, $1/1K pages; failed pages free.",
    "version": "1.0",
    "x-build-id": "gjeowMFfUgdiz2G0Q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/salmon_chaparral~website-markdown-rag-crawler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-salmon_chaparral-website-markdown-rag-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/salmon_chaparral~website-markdown-rag-crawler/runs": {
      "post": {
        "operationId": "runs-sync-salmon_chaparral-website-markdown-rag-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/salmon_chaparral~website-markdown-rag-crawler/run-sync": {
      "post": {
        "operationId": "run-sync-salmon_chaparral-website-markdown-rag-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",
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Public HTTP(S) page URLs, documentation roots, sitemap.xml URLs, or llms.txt URLs to crawl.",
            "items": {
              "type": "string"
            },
            "default": [
              "https://modelcontextprotocol.io/llms.txt",
              "https://docs.python.org/3/tutorial/introduction.html"
            ]
          },
          "discoverLlmsTxt": {
            "title": "Discover llms.txt",
            "type": "boolean",
            "description": "Automatically probe /llms.txt on each seed origin and parse Markdown link indexes when a start URL points to llms.txt.",
            "default": true
          },
          "discoverSitemap": {
            "title": "Discover sitemap.xml",
            "type": "boolean",
            "description": "Automatically probe /sitemap.xml on each seed origin (and parse direct sitemap XML URLs) to enqueue same-origin pages.",
            "default": true
          },
          "crawlLinks": {
            "title": "Crawl Same-Origin HTML Links",
            "type": "boolean",
            "description": "Recursively follow same-origin HTML hyperlinks up to maxDepth.",
            "default": true
          },
          "samePathPrefixOnly": {
            "title": "Restrict to Seed Path Prefix",
            "type": "boolean",
            "description": "When enabled, discovered links and sitemap URLs are restricted to the parent path prefix of each seed URL (ignored for root or llms.txt/sitemap.xml seeds).",
            "default": false
          },
          "includeUrlPatterns": {
            "title": "Include URL Substrings / Globs",
            "type": "array",
            "description": "Optional substrings or simple * wildcard patterns that discovered URLs must match (e.g. \"/docs/*\", \"/guides/\").",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludeUrlPatterns": {
            "title": "Exclude URL Substrings / Globs",
            "type": "array",
            "description": "Optional substrings or * wildcard patterns to skip during discovery (e.g. \"/changelog*\", \"/blog/*\").",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on successfully crawled pages pushed to the dataset (1-500).",
            "default": 10
          },
          "maxDepth": {
            "title": "Max Crawl Depth",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum link traversal depth from seed URLs (0 = seeds only, up to 5).",
            "default": 1
          },
          "mainContentOnly": {
            "title": "Extract Main Content Only",
            "type": "boolean",
            "description": "Prefer <main> or <article> containers and strip nav, header, footer, aside, script, and style boilerplate.",
            "default": true
          },
          "includeChunks": {
            "title": "Generate RAG Chunks",
            "type": "boolean",
            "description": "Split each page's clean Markdown into heading-aware overlapping chunks for vector databases and LLM retrieval.",
            "default": true
          },
          "chunkMaxChars": {
            "title": "Chunk Max Characters",
            "minimum": 200,
            "maximum": 12000,
            "type": "integer",
            "description": "Target maximum character length per RAG chunk when chunkMaxTokens is 0 (200-12000).",
            "default": 1500
          },
          "chunkMaxTokens": {
            "title": "Chunk Max Tokens (Optional Override)",
            "minimum": 0,
            "maximum": 4000,
            "type": "integer",
            "description": "Optional approximate token budget per RAG chunk (0 = use chunkMaxChars; when > 0 uses ~4 chars/token up to 4000 tokens).",
            "default": 0
          },
          "chunkOverlapChars": {
            "title": "Chunk Overlap Characters",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Character overlap preserved between adjacent RAG chunks (0-2000).",
            "default": 200
          },
          "maxMarkdownChars": {
            "title": "Max Markdown Characters per Page",
            "minimum": 1000,
            "maximum": 200000,
            "type": "integer",
            "description": "Truncate individual page Markdown above this character cap to keep dataset items compact (1000-200000).",
            "default": 50000
          },
          "concurrency": {
            "title": "HTTP Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum concurrent pure-HTTP fetches (1-10).",
            "default": 4
          },
          "requestTimeoutSecs": {
            "title": "Request Timeout (seconds)",
            "minimum": 3,
            "maximum": 30,
            "type": "integer",
            "description": "Per-HTTP request timeout in seconds (3-30).",
            "default": 12
          },
          "maxResponseSizeKb": {
            "title": "Max Response Size (KB)",
            "minimum": 64,
            "maximum": 4096,
            "type": "integer",
            "description": "Streaming per-response byte cap in kilobytes (64-4096).",
            "default": 1024
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}