<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: thriving_adder</title>
    <description>The latest articles on DEV Community by thriving_adder (@adcens).</description>
    <link>https://dev.to/adcens</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4265779%2Faae9f005-2335-4632-944a-87185f7080c2.jpg</url>
      <title>DEV Community: thriving_adder</title>
      <link>https://dev.to/adcens</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adcens"/>
    <language>en</language>
    <item>
      <title>Generate an llms.txt for your docs site</title>
      <dc:creator>thriving_adder</dc:creator>
      <pubDate>Thu, 26 Nov 2026 02:09:51 +0000</pubDate>
      <link>https://dev.to/adcens/generate-an-llmstxt-for-your-docs-site-1md4</link>
      <guid>https://dev.to/adcens/generate-an-llmstxt-for-your-docs-site-1md4</guid>
      <description>&lt;p&gt;Agents that read your documentation often have to wade through navigation, cookie banners and other page chrome before they reach the actual content. An &lt;code&gt;llms.txt&lt;/code&gt; file is a short, curated Markdown map of a site — proposed at &lt;a href="https://llmstxt.org" rel="noopener noreferrer"&gt;llmstxt.org&lt;/a&gt; — that points them at the pages that matter.&lt;/p&gt;

&lt;p&gt;This post explains the current format, shows how to write a file by hand (often the right first step), and then shows how to generate a first draft with &lt;a href="https://apify.com/thriving_adder/web-to-markdown-llms-txt" rel="noopener noreferrer"&gt;Web to Markdown &amp;amp; llms.txt&lt;/a&gt;, an Apify Actor I built and publish as &lt;code&gt;thriving_adder&lt;/code&gt;. I earn when it is used. You do not need the Actor to publish an &lt;code&gt;llms.txt&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an llms.txt looks like
&lt;/h2&gt;

&lt;p&gt;The proposal is now in its second version (updated August 2026). The file is Markdown, usually published at &lt;code&gt;/llms.txt&lt;/code&gt;, or at a sub-path such as &lt;code&gt;/docs/llms.txt&lt;/code&gt; if it should only cover that section of the site.&lt;/p&gt;

&lt;p&gt;The only required part is an H1 with the project or site name. After that, the usual structure is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Title
&lt;/span&gt;
&lt;span class="ge"&gt;&amp;gt; Optional description goes here
&lt;/span&gt;
Optional details go here

&lt;span class="gu"&gt;## Section name
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;[Link title](https://link_url): Optional link details

&lt;span class="gu"&gt;## Optional
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;[Link title](https://link_url)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few rules that matter when you write or edit one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The H1 is required. The blockquote is a short summary of the project.&lt;/li&gt;
&lt;li&gt;Between the summary and the first H2 you can add notes, but not more headings.&lt;/li&gt;
&lt;li&gt;Each H2 introduces a list of links. Every item is a Markdown link, optionally followed by a colon and a one-line description.&lt;/li&gt;
&lt;li&gt;By convention, a section named &lt;code&gt;Optional&lt;/code&gt; holds secondary links an agent can skip when it needs a shorter context.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The file is meant to stay small enough to fit in a context window. The detail lives on the pages you link to. The proposal also encourages clean Markdown versions of those pages (for example &lt;code&gt;page.md&lt;/code&gt; next to the HTML) and &lt;code&gt;rel="describedby"&lt;/code&gt; / &lt;code&gt;rel="alternate"&lt;/code&gt; hints so clients can find them. That part is useful, but you can publish a useful &lt;code&gt;llms.txt&lt;/code&gt; without it.&lt;/p&gt;

&lt;p&gt;For a small docs site, writing the file yourself is often enough. Pick the 10–20 pages an agent should read first, give each a clear title and one-line description, and put secondary material under &lt;code&gt;## Optional&lt;/code&gt;. Several documentation platforms (Mintlify, GitBook, and some WordPress plugins, among others) can also generate a file automatically. After you publish it, test it: give an agent only the file and ask questions about your product.&lt;/p&gt;

&lt;p&gt;The rest of this post is for when you want a first draft to edit, generated from a site you already have.&lt;/p&gt;

&lt;h2&gt;
  
  
  Generate a first draft
&lt;/h2&gt;

&lt;p&gt;The Actor fetches public pages over HTTP (no headless browser), strips menus, footers and cookie banners, reads titles and descriptions, groups pages by URL path, and writes a spec-compliant &lt;code&gt;llms.txt&lt;/code&gt;. It discovers pages from the site's sitemap, or from home-page links if there is no usable sitemap. By default it respects &lt;code&gt;robots.txt&lt;/code&gt; and AI opt-outs (&lt;code&gt;noai&lt;/code&gt; in robots tags, and robots.txt rules that block common AI crawlers such as GPTBot). JavaScript-only pages come back with the error code &lt;code&gt;EMPTY_CONTENT&lt;/code&gt; and are not charged.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use this on a site you own or have permission to work with.&lt;/strong&gt; Review and edit the file before you publish it. Converting a page does not give you the right to republish someone else's content.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cost
&lt;/h3&gt;

&lt;p&gt;Prices below are from the &lt;a href="https://apify.com/thriving_adder/web-to-markdown-llms-txt" rel="noopener noreferrer"&gt;live Store listing&lt;/a&gt; on 25 November 2026. Check that page before you run anything, in case they have changed.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Event&lt;/th&gt;
&lt;th&gt;Price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Actor start&lt;/td&gt;
&lt;td&gt;$0.00005 (one event per GB of memory, minimum one; the default 512 MB run counts as one event)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Page converted to Markdown&lt;/td&gt;
&lt;td&gt;$0.001&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;llms.txt generated&lt;/td&gt;
&lt;td&gt;$0.02&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The $0.02 &lt;code&gt;llms.txt&lt;/code&gt; price covers reading and listing up to &lt;code&gt;maxPagesPerSite&lt;/code&gt; pages in that file. If you also turn on &lt;code&gt;generateLlmsFullTxt&lt;/code&gt;, each included page is charged as a page conversion ($0.001) as well. Failed, non-HTML, blocked, and robots.txt or AI-opt-out skipped pages are free.&lt;/p&gt;

&lt;p&gt;A 10-page &lt;code&gt;llms.txt&lt;/code&gt; draft therefore costs about $0.02 plus the start fee. The Actor requires a run cap (&lt;code&gt;maxTotalChargeUsd&lt;/code&gt;) of at least $0.03; you only pay for events that actually happen, not the cap.&lt;/p&gt;

&lt;p&gt;Apify's Free plan includes $5 of monthly usage and does not require a card (&lt;a href="https://apify.com/pricing" rel="noopener noreferrer"&gt;apify.com/pricing&lt;/a&gt;, checked 25 November 2026).&lt;/p&gt;

&lt;h3&gt;
  
  
  One API call
&lt;/h3&gt;

&lt;p&gt;Create a free Apify account and copy an API token from &lt;strong&gt;Console → Settings → API &amp;amp; Integrations&lt;/strong&gt;. Replace &lt;code&gt;APIFY_TOKEN&lt;/code&gt; in the request below. The Python 3 docs URL is only a public example so you can see the shape of the output — point &lt;code&gt;llmsTxtSites&lt;/code&gt; at your own docs home, or at a sub-path such as &lt;code&gt;https://example.com/docs/&lt;/code&gt;, when you generate a file you intend to publish.&lt;/p&gt;

&lt;p&gt;This calls Apify's public synchronous endpoint, which waits for the run to finish (up to 300 seconds) and returns the dataset items as JSON. Ten pages is usually well under that limit. Set a long enough client timeout.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sS --max-time 300 -X POST \
  &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/thriving_adder~web-to-markdown-llms-txt/run-sync-get-dataset-items?maxTotalChargeUsd=0.03"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer APIFY_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "llmsTxtSites": [{ "url": "https://docs.python.org/3/" }],
    "maxPagesPerSite": 10
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same call in JavaScript:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/thriving_adder~web-to-markdown-llms-txt/run-sync-get-dataset-items?maxTotalChargeUsd=0.03"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer APIFY_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;llmsTxtSites&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://docs.python.org/3/"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;maxPagesPerSite&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Run failed: ${response.status} ${JSON.stringify(items)}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"llms-txt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;site&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;site&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s2"&gt;"No llms.txt row in the result"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${site.site}: ${site.pageCount} pages via ${site.discovery}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;site&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;llmsTxt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The site row (&lt;code&gt;type&lt;/code&gt; is &lt;code&gt;"llms-txt"&lt;/code&gt;) includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;llmsTxt&lt;/code&gt; — the file text&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pageCount&lt;/code&gt; — how many pages were listed&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;discovery&lt;/code&gt; — &lt;code&gt;sitemap&lt;/code&gt;, &lt;code&gt;home-page-links&lt;/code&gt;, or &lt;code&gt;sitemap+home-page-links&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sections&lt;/code&gt; — the H2 groups it built from URL paths&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;existingLlmsTxt&lt;/code&gt; — whether the site already publishes &lt;code&gt;/llms.txt&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;llmsTxtUrl&lt;/code&gt; — a download URL for the file in the run's key-value store&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is a shortened example of a previously generated draft for the public Python 3 docs, so you can see the format (not something to publish as your own):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Python documentation
&lt;/span&gt;
&lt;span class="ge"&gt;&amp;gt; The official Python documentation.
&lt;/span&gt;
This file lists the main pages of docs.python.org/3/ for large language models, following the llms.txt proposal (https://llmstxt.org).

&lt;span class="gu"&gt;## Main
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;[Python 3.15 documentation](https://docs.python.org/3/): The official Python documentation.
&lt;span class="k"&gt;- &lt;/span&gt;[About this documentation](https://docs.python.org/3/about.html): Python's documentation is generated from reStructuredText sources using Sphinx...

&lt;span class="gu"&gt;## Faq
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;[Python Frequently Asked Questions](https://docs.python.org/3/faq/index.html): General Python FAQ, Programming FAQ, Design and History FAQ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copy-paste versions of this script, plus a curl one-pager and a Python example that writes Markdown chunks for RAG, are in the MIT-licensed &lt;a href="https://github.com/adcens/apify-actor-examples" rel="noopener noreferrer"&gt;examples repo&lt;/a&gt; under &lt;code&gt;web-to-markdown/&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  After you get the file
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Read it. Drop pages an agent does not need. Tighten the blockquote summary. Move secondary links under a section named &lt;code&gt;## Optional&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Check &lt;code&gt;existingLlmsTxt&lt;/code&gt; so you do not overwrite a file you already publish without meaning to.&lt;/li&gt;
&lt;li&gt;If the draft included pages you wanted to skip, rerun with &lt;code&gt;includeUrlPattern&lt;/code&gt; or &lt;code&gt;excludeUrlPattern&lt;/code&gt; (regular expressions, for example &lt;code&gt;/(tag|author|page)/&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Publish the edited file at &lt;code&gt;/llms.txt&lt;/code&gt; or at the sub-path it should cover, then test it with an agent.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you also want a single file that contains the cleaned Markdown of every listed page, set &lt;code&gt;"generateLlmsFullTxt": true&lt;/code&gt;. Each of those pages is then charged at $0.001, so a 10-page &lt;code&gt;llms-full.txt&lt;/code&gt; is about $0.03 plus the start fee. Raise &lt;code&gt;maxTotalChargeUsd&lt;/code&gt; to &lt;code&gt;0.05&lt;/code&gt; if you use this option. Some teams keep that file internal; some publish it next to &lt;code&gt;llms.txt&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Clean Markdown for individual pages
&lt;/h2&gt;

&lt;p&gt;The same Actor can convert specific public URLs to cleaned Markdown, with optional heading-aware chunks for embeddings. This uses the &lt;code&gt;urls&lt;/code&gt; field, not &lt;code&gt;llmsTxtSites&lt;/code&gt;. A two-page run with 400-token chunks looks like this and costs $0.002 plus the start fee:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sS --max-time 300 -X POST \
  &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/thriving_adder~web-to-markdown-llms-txt/run-sync-get-dataset-items?maxTotalChargeUsd=0.03"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer APIFY_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "urls": [
      { "url": "https://www.python.org/about/" },
      { "url": "https://docs.python.org/3/tutorial/index.html" }
    ],
    "chunkTokens": 400,
    "chunkOverlapTokens": 40
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each successful page row includes &lt;code&gt;markdown&lt;/code&gt;, &lt;code&gt;title&lt;/code&gt;, &lt;code&gt;description&lt;/code&gt;, &lt;code&gt;wordCount&lt;/code&gt;, &lt;code&gt;tokensEstimate&lt;/code&gt;, and, when &lt;code&gt;chunkTokens&lt;/code&gt; is greater than 0, a &lt;code&gt;chunks&lt;/code&gt; array with heading paths. Email addresses and phone numbers are redacted by default.&lt;/p&gt;

&lt;p&gt;Only convert pages you are allowed to use. The publisher's copyright still applies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;There is no headless browser. Pages that render their content only in JavaScript return &lt;code&gt;EMPTY_CONTENT&lt;/code&gt; (free). Most docs, blogs and company sites that are server-rendered work.&lt;/li&gt;
&lt;li&gt;Only public &lt;code&gt;http(s)&lt;/code&gt; pages. No logins, cookies or paywalls. Localhost and private-network addresses are rejected and not charged.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;respectRobotsTxt&lt;/code&gt; and &lt;code&gt;respectAiOptOuts&lt;/code&gt; default to &lt;code&gt;true&lt;/code&gt;. Skipped pages are free. Turn those off only for sites you own or have permission for.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;maxPagesPerSite&lt;/code&gt; defaults to 25 and accepts 1–500. A short &lt;code&gt;llms.txt&lt;/code&gt; usually means the sitemap or home page did not expose more allowed URLs, or you hit the cap.&lt;/li&gt;
&lt;li&gt;If the synchronous endpoint times out (HTTP 408 after 300 seconds), start a smaller run or use Apify's asynchronous run API instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If something looks wrong, open an issue on the &lt;a href="https://apify.com/thriving_adder/web-to-markdown-llms-txt/issues" rel="noopener noreferrer"&gt;Actor's Issues tab&lt;/a&gt; with the URL and the input you used.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>showdev</category>
      <category>documentation</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
