Docs-to-Markdown Crawler with llms.txt avatar

Docs-to-Markdown Crawler with llms.txt

Pricing

from $1.00 / 1,000 content page rows

Go to Apify Store
Docs-to-Markdown Crawler with llms.txt

Docs-to-Markdown Crawler with llms.txt

Build llms.txt and convert public documentation, knowledge-base, and product pages to Markdown. Set scope, depth, and page limits. HTTP(S) only; robots.txt obeyed; no JavaScript rendering or login.

Pricing

from $1.00 / 1,000 content page rows

Rating

0.0

(0)

Developer

Iris

Iris

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Create an llms.txt index and Markdown page records from public documentation, knowledge-base, and product pages. Choose the sites and URLs you are permitted to crawl. The Actor fetches HTTP(S) content, always obeys robots.txt, and does not log in, send cookies, or render JavaScript.

What it does

Provide one or more start URLs, then choose how far the crawl may travel. The crawler follows in-scope links, can discover URLs from a sitemap, and converts fetched HTML into Markdown or plain text. Use include and exclude path globs to focus the crawl. When llmsTxt is enabled, the Actor saves llms.txt and llms-full.txt to the key-value store: the first is a sectioned list of page links and the second joins the extracted page Markdown.

Crawl scope can stay on the same host or be limited to the starting path prefix. The crawler checks robots.txt for the requested pages and redirect destinations. It refuses private, loopback, and link-local destinations; redirects are followed only after URL checks. A 5 MB response-body limit applies. Responses that are not HTML are skipped, and pages without extracted content do not become dataset rows. The SKIPPED and SUMMARY key-value records contain skip details and run counts/reason.

What you get

Each dataset row describes a fetched page that produced content. outputFormat selects which content format appears in the main content field; Markdown and text fields are also present in the output schema.

FieldMeaning
urlPage URL that was fetched
canonicalUrlCanonical URL, when the page provides one
titleExtracted document title
descriptionMeta description, when available
contentContent in the format selected by outputFormat
markdownExtracted page represented as Markdown
textPlain-text rendering of extracted content
wordCountNumber of extracted words
depthLink distance from a supplied start URL
httpStatusHTTP response status
fetchedAtFetch time in UTC

The llms.txt index uses a # title, a > summary, and ## sections with Markdown link entries. It is intended as a compact index of the pages actually returned by a crawl, not a guarantee of complete site coverage. llms-full.txt contains page Markdown joined for convenient reading or downstream processing.

How to use

  1. Add the public pages you want to crawl in startUrls.
  2. Set maxPages and maxDepth to bound the run.
  3. Choose sameHost or samePathPrefix for scope; optionally set include/exclude path globs.
  4. Enable useSitemap to discover URLs from sitemap.xml, if useful.
  5. Select markdown or text; set llmsTxt to save the two index files.
  6. Inspect dataset rows and the SUMMARY and SKIPPED key-value records.

You choose the sites. Check that you have permission to access them and that the site's robots.txt policy and terms allow crawling. Robots handling fails closed when the robots request fails or returns an HTTP error; a robots.txt 404 is treated as no published policy. A site returning 403 or 429 is not retried.

Input reference

InputTypeDefaultDescription
startUrlsURL listPython docs URLOne or more HTTP(S) starting URLs; required.
maxPagesInteger, 1–50050Maximum number of URLs to visit.
scopesameHost or samePathPrefixsameHostBoundary for discovered pages.
useSitemapBooleanfalseDiscover URLs from sitemap.xml.
includeGlobsString list[]Optional path patterns to include.
excludeGlobsString list[]Path patterns to skip.
maxDepthInteger, 0–203Maximum link distance from each start URL.
outputFormatmarkdown or textmarkdownFormat selected for the content value.
llmsTxtBooleanfalseSave llms.txt and llms-full.txt in the key-value store.
selfTestBooleanfalseRun the embedded synthetic offline fixture instead of fetching sites.

Input example

This uses a real public documentation page that returned 20 rows in a local crawl. The example caps this run at 10 pages and requests the two key-value files:

{"startUrls":["https://docs.python.org/3/library/index.html"],"maxPages":10,"llmsTxt":true}

Output example

Excerpt from a real page sample collected in the local documentation crawl. This page came from the Kubernetes documentation site; the Markdown excerpt preserves the page headings and links.

# Kubernetes Documentation | Kubernetes
Source: https://kubernetes.io/docs/home/
Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications.
## Understand Kubernetes
Learn about Kubernetes and its fundamental concepts.
- [Why Kubernetes?](https://kubernetes.io/docs/concepts/overview/#why-you-need-kubernetes-and-what-can-it-do)
- [Components of a cluster](https://kubernetes.io/docs/concepts/overview/components/)

Measured coverage (November 2026)

In a 300-host sample frozen on 2026-11-21 before target requests, 50 hosts returned a complete Markdown-classified /llms.txt body and 18 did so for /llms-full.txt. “Markdown” means a non-HTML response whose first nonblank line begins with a Markdown heading; this is a syntax check, not a quality judgment. Hosts came in rank order from the 2026-11-01 30-day PyPI ranking, preferring documentation URLs then home/project URLs. Intended exclusions covered code-hosting and package-index hosts, duplicates, and selected personal/vanity hosts. Yet legacy code-hosting hostname code.google.com remained in the denominator; neither target path was queried because its robots.txt specified Crawl-delay: 120, above the skip threshold. This ranking-derived convenience sample is not random.

Per-host outcome/llms.txt/llms-full.txt
Markdown body5018
404150178
Redirect not followed15
HTML23
Other response21
Not queried: robots unavailable9090
Not queried: disallowed by robots44
Not queried: crawl-delay skip11
Requests made205205

Requests ran sequentially from 2026-11-21 21:13:55 to 21:29:33 UTC; the collector checked robots.txt first and requested only allowed paths, without redirects or retries. Each path’s 300-host denominator includes all 95 unqueried hosts. A 404 at these exact paths does not establish that equivalent guidance is absent elsewhere; robots-blocked or unavailable hosts are missing observations. This one convenience sample cannot estimate prevalence across the web, and the syntactic classification does not assess usefulness.

Price

The configured charge is $0.001 for each page row written to the default dataset, plus a $0.00005 start event for a run. A 100-page run is calculated as $0.001 × 100 = $0.10, plus $0.00005, for $0.10005 in event charges. A 1,000-page run is $0.001 × 1,000 = $1.00, plus $0.00005, for $1.00005. These estimates assume every page produces a row and one start event. Skipped or empty pages do not produce dataset rows. Separate platform usage, if any, is not included in these event arithmetic examples. Live charging for this Actor has not been verified.

Limits

The crawler uses ordinary HTTP(S) requests and parses returned HTML. It has no JavaScript rendering, browser automation, login, cookies, or PDF extraction. It always obeys robots.txt, including on redirect destinations. You choose the sites; crawl only where you are permitted and where the site's policy allows it. A 5 MB body limit and the input page/depth caps bound individual runs. Some navigation text may remain in extracted Markdown, depending on the page's HTML structure. In the saved Requests quickstart capture, the word-overlap audit retained 2,280 of 2,550 source-main words. It does not promise that every page will be discovered or yield a dataset row.

Limits and FAQ

Does it execute JavaScript or handle pages that require a login?

No. It downloads HTML over HTTP(S) without a browser engine, credentials, or cookies. Content that only appears after JavaScript runs is not rendered, and authenticated pages are not accessible through this Actor.

Will it obey robots.txt?

Yes. It checks robots.txt before page requests and redirect destinations. Policy errors and request failures block the origin; a 404 is treated as no published robots policy. You are responsible for choosing sites you may crawl and following applicable terms.

Why are some navigation links or labels in my Markdown?

The extractor removes common structural and navigation elements, but page templates vary. Some navigation text may remain if it is embedded in content or uses markup the extractor cannot identify as navigation.

Why did a URL not appear as a dataset row?

Only fetched pages with extracted content become rows. A URL may be outside the selected scope, excluded by a path glob, disallowed by robots.txt, unreachable, non-HTML, or empty after extraction. Check SKIPPED for recorded reasons and SUMMARY for the run's counts and stop reason.

Where are the index files?

Set llmsTxt to true. The Actor writes llms.txt and llms-full.txt to the run's key-value store. The compact file contains sectioned page links; the full file joins extracted Markdown for the pages returned.

Can I crawl any site?

You choose the sites and start URLs, subject to permission, site policy, and the crawler's public HTTP(S), scope, and robots.txt rules. The Actor refuses private-network destinations and does not bypass access controls.