{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Content & Markdown Scraper (llms.txt) | 2Space",
    "description": "High-speed website content scraper and Markdown crawler for AI, ChatGPT, and RAG. Scrapes /llms.txt and XML sitemaps first, strips boilerplate, and outputs clean Markdown and RAG chunks.",
    "version": "1.0",
    "x-build-id": "gTfrAgsbHuPqjs26u"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/2space~llms-sitemap-rag-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-2space-llms-sitemap-rag-mcp",
        "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/2space~llms-sitemap-rag-mcp/runs": {
      "post": {
        "operationId": "runs-sync-2space-llms-sitemap-rag-mcp",
        "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/2space~llms-sitemap-rag-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-2space-llms-sitemap-rag-mcp",
        "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": {
          "startDomainsOrUrls": {
            "title": "Start Domains or URLs",
            "minItems": 1,
            "type": "array",
            "description": "List of root domains (e.g. crawlee.dev) or full URLs (e.g. https://plausible.io/docs) to probe via /llms.txt, robots.txt, and XML sitemaps.",
            "items": {
              "type": "string"
            },
            "default": [
              "crawlee.dev"
            ]
          },
          "preferLlmsTxt": {
            "title": "Prefer /llms.txt & /llms-full.txt",
            "type": "boolean",
            "description": "Probe /llms.txt and /llms-full.txt first before falling back to or supplementing with robots.txt and sitemap.xml.",
            "default": true
          },
          "prioritySections": {
            "title": "Priority Sections",
            "type": "array",
            "description": "Ordered list of path segments/topics used to score, prioritize, and classify pages into sectionBucket.",
            "items": {
              "type": "string"
            },
            "default": [
              "docs",
              "api",
              "pricing",
              "changelog",
              "about",
              "security",
              "blog"
            ]
          },
          "includePathPatterns": {
            "title": "Include Path Patterns",
            "type": "array",
            "description": "Optional path substrings, globs (e.g. /docs/*), or regex patterns (/^\\/v2\\//). Only matching URLs are kept when non-empty.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludePathPatterns": {
            "title": "Exclude Path Patterns",
            "type": "array",
            "description": "Optional path substrings, globs (e.g. */tag/*), or regex patterns to exclude from crawling.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxPagesPerDomain": {
            "title": "Max Pages Per Domain",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on saved pages per domain. Prevents runaway crawls on large documentation sites.",
            "default": 10
          },
          "minWordCount": {
            "title": "Minimum Word Count",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Minimum extracted Markdown words required to keep and charge a page. Thin pages below this threshold are skipped for free.",
            "default": 50
          },
          "maxTokensTotal": {
            "title": "Max Tokens Total",
            "minimum": 100,
            "type": "integer",
            "description": "Global hard circuit breaker on cumulative estimated tokens saved across the entire run.",
            "default": 200000
          },
          "maxCostUsd": {
            "title": "Max Cost (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Pre-charge budget circuit breaker in USD. Execution stops cleanly before exceeding this limit.",
            "default": 0.5
          },
          "emitRagChunks": {
            "title": "Emit RAG Chunks",
            "type": "boolean",
            "description": "Split each page's Markdown into heading-aligned RAG chunks capped by chunkMaxTokens.",
            "default": false
          },
          "chunkMaxTokens": {
            "title": "Chunk Max Tokens",
            "minimum": 50,
            "maximum": 8192,
            "type": "integer",
            "description": "Maximum estimated tokens per heading-aligned RAG chunk when Emit RAG Chunks is enabled.",
            "default": 600
          },
          "compileBundle": {
            "title": "Compile Domain LLMS Bundle",
            "type": "boolean",
            "description": "Write a consolidated LLMS_BUNDLE_<domain>.md file to Key-Value Store when at least one qualifying page is extracted for a domain.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy or custom proxy configuration for protected documentation hosts. Direct HTTP is used by default.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}