{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Content Crawler: Markdown for AI & RAG, $1/1K",
    "description": "$1 per 1,000 pages, JavaScript pages included, no start fee. 20 pages in about 3 s. No login. Websites, docs, blogs or URL lists to clean Markdown and text for LLMs, RAG and AI agents: menus, footers and cookie banners removed, title, language, headings, RAG chunks, sitemaps, PDFs.",
    "version": "0.1",
    "x-build-id": "Nl3GQ3uPYxuJw6pAX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~website-content-crawler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-website-content-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/laptime~website-content-crawler/runs": {
      "post": {
        "operationId": "runs-sync-laptime-website-content-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/laptime~website-content-crawler/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-website-content-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": "Websites, sections or pages to crawl, e.g. https://docs.example.com/, example.com/blog/ or one article. The crawl follows links under each start URL (see Crawl scope). Plain URLs and Apify's {\"url\": \"…\"} objects both work, as does {\"requestsFromUrl\": \"…\"} for a text file of URLs.",
            "items": {
              "type": "string"
            }
          },
          "maxCrawlPages": {
            "title": "Max pages",
            "minimum": 0,
            "type": "integer",
            "description": "Most pages saved in this run (all start URLs together). You pay only for saved pages, so this also caps the cost. 0 = no limit. Default 100.",
            "default": 100
          },
          "crawlScope": {
            "title": "Crawl scope",
            "enum": [
              "path",
              "site",
              "domain",
              "pages"
            ],
            "type": "string",
            "description": "Which links to follow: path (default) = pages under the start URL (https://example.com/docs/ reads only /docs/... pages); site = every page of that host, www or not; domain = also subdomains (blog.example.com etc.); pages = only the start URLs, no links followed.",
            "default": "path"
          },
          "maxCrawlDepth": {
            "title": "Max link depth",
            "minimum": 0,
            "type": "integer",
            "description": "How many links away from a start URL the crawl goes. 0 = only the start URLs, 1 = start URLs and the pages they link to. Default 20.",
            "default": 20
          },
          "includeUrlGlobs": {
            "title": "Only URLs matching",
            "type": "array",
            "description": "Optional. Crawl only links matching one of these. A full-URL glob (https://example.com/blog/**) sets the scope itself, as in Apify's Website Content Crawler; /docs/** matches the path; plain text such as /guide/ matches any URL containing it.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "glob"
              ],
              "properties": {
                "glob": {
                  "type": "string",
                  "title": "Glob of a web page"
                }
              }
            }
          },
          "excludeUrlGlobs": {
            "title": "Skip URLs matching",
            "type": "array",
            "description": "Optional. Links matching one of these are never fetched, e.g. https://example.com/**/tag/**, /blog/page/*, or ?replytocom=. Same forms as above. Start URLs are always read.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "glob"
              ],
              "properties": {
                "glob": {
                  "type": "string",
                  "title": "Glob of a web page"
                }
              }
            }
          },
          "useSitemaps": {
            "title": "Use sitemaps",
            "type": "boolean",
            "description": "Also read the pages listed in the website's sitemaps (from robots.txt or /sitemap.xml) that no link led to. They follow the same scope and patterns and come after the linked pages.",
            "default": true
          },
          "outputFormats": {
            "title": "Output formats",
            "type": "array",
            "description": "Any of: markdown (keeps headings, lists, tables, links and code blocks), text (the same content without formatting), html (the cleaned main content as HTML). Default: markdown and text.",
            "items": {
              "type": "string",
              "enum": [
                "markdown",
                "text",
                "html"
              ],
              "enumTitles": [
                "Markdown",
                "Plain text",
                "Cleaned HTML"
              ]
            },
            "default": [
              "markdown",
              "text"
            ]
          },
          "extractMainContent": {
            "title": "Main content only",
            "type": "boolean",
            "description": "Keep the page's own content and leave out menus, headers, footers, sidebars, cookie banners, share buttons and text the website repeats on most pages. Untick to keep the whole page.",
            "default": true
          },
          "removeElementsCssSelector": {
            "title": "Also remove these elements",
            "type": "string",
            "description": "Optional CSS selector of more elements to leave out, e.g. .newsletter, #comments, table.ads."
          },
          "keepElementsCssSelector": {
            "title": "Only keep these elements",
            "type": "string",
            "description": "Optional CSS selector: only matching elements are read, e.g. article or .docs-content. A page where nothing matches is skipped and not charged."
          },
          "chunkSize": {
            "title": "Chunk size (characters)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional. Split each page into chunks of at most this many characters for embeddings, each with the headings above it (field chunks, view Chunks). 1,000-2,000 suits most models. 0 = no chunks. Same price.",
            "default": 0
          },
          "chunkOverlap": {
            "title": "Chunk overlap (characters)",
            "minimum": 0,
            "type": "integer",
            "description": "Each chunk starts with up to this many characters from the end of the one before, cut at a word. At most a quarter of the chunk size. 0 = no overlap.",
            "default": 0
          },
          "crawlPdfs": {
            "title": "Read PDF files",
            "type": "boolean",
            "description": "Also read PDF files linked inside the crawl scope (and PDF start URLs) and save their text as rows, same price per file. Off: PDF links are skipped.",
            "default": false
          },
          "renderingType": {
            "title": "Rendering",
            "enum": [
              "auto",
              "http",
              "browser"
            ],
            "type": "string",
            "description": "auto (default) = fast HTTP for every page, a headless browser only for pages that build their text with JavaScript; http = never a browser (fastest); browser = every page in a browser (slow; for sites that need it).",
            "default": "auto"
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip pages the website's robots.txt disallows and wait as long as its Crawl-delay asks (up to 10 s). Off by default, like Apify's Website Content Crawler; turn on for websites you don't own.",
            "default": false
          },
          "telemetry": {
            "title": "Anonymous error reports",
            "type": "boolean",
            "description": "Sends the Actor's author an anonymous report when a run hits an error (error type, failing step, HTTP status, counts). Never your input, results, URLs or account. Untick to turn it off.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}