# Llms Txt Finder Parser (`real-estate-api/llms-txt-finder-parser`) Actor

LLMs.txt Finder Parser is a Python tool to discover, validate, and parse llms.txt and llms-full.txt files from domain roots. It extracts section headers, curated Markdown links, inline descriptions, and full-text corpora. It exports structured site manifests into clean JSON or CSV formats

- **URL**: https://apify.com/real-estate-api/llms-txt-finder-parser.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### llms.txt Finder & Parser — Discover and Extract Website AI Documentation

![llms.txt Finder & Parser cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/llms-txt-finder-parser-cover.png)

### Overview

llms.txt Finder & Parser discovers and extracts structured information from websites that publish an `llms.txt` file. It collects document titles, summaries, section counts, and links, then organizes the results into a clean dataset.

The actor can also optionally retrieve each website's `llms-full.txt` file when enabled.

Export your collected data in JSON, CSV, Excel, and other supported Apify dataset formats.

### Features

- **llms.txt Discovery:** Retrieve the public `/llms.txt` file for each supplied domain.
- **Markdown Parsing:** Extract titles, summaries, sections, and links from the document.
- **Full Document Retrieval:** Optionally fetch `/llms-full.txt` when available.
- **Structured Link Extraction:** Capture link text and destination URLs.
- **Multiple Domains:** Process a list of websites in one run.
- **Duplicate Prevention:** Avoid duplicate records for the same document URL.
- **Maximum Item Control:** Set a limit on the number of records collected.
- **Scheduled Collection:** Run the actor periodically to monitor changes in published documentation.

### Collection Mode

| Mode | Description |
|---|---|
| `fetchLlmsTxt` | Retrieves and parses `/llms.txt` for each supplied domain. When `includeFull` is enabled, it also requests `/llms-full.txt`. |

### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Collection mode. Use `fetchLlmsTxt`. |
| `domains` | Array | List of website domains to process. |
| `includeFull` | Boolean | Enable or disable retrieval of the optional `/llms-full.txt` file. |
| `maxItems` | Integer | Maximum number of records to collect. |
| `requestDelayMs` | Integer | Delay between requests in milliseconds. |

### Example Input

```json
{
  "mode": "fetchLlmsTxt",
  "domains": [
    "vercel.com"
  ],
  "includeFull": false,
  "maxItems": 100,
  "requestDelayMs": 1000
}
```

### What Data Does This Actor Extract?

| Field | Description |
|---|---|
| `site` | Website associated with the document. |
| `llmsTxtUrl` | URL of the website's `llms.txt` file. |
| `docTitle` | Title extracted from the document. |
| `summary` | Summary text extracted from the document. |
| `sectionCount` | Number of sections identified in the document. |
| `linkCount` | Total number of links extracted. |
| `links` | Collection of link text and destination URLs. |
| `scrapedAt` | Date and time when the record was collected. |

### Example Output

```json
{
  "site": "https://vercel.com",
  "llmsTxtUrl": "https://vercel.com/llms.txt",
  "docTitle": "Vercel",
  "summary": "Vercel is a cloud platform for building, deploying, and scaling web applications and AI workloads.",
  "sectionCount": 9,
  "linkCount": 25,
  "links": [
    {
      "text": "Set up Vercel for your coding agent",
      "url": "https://vercel.com/get-started.md"
    },
    {
      "text": "Getting started with Vercel",
      "url": "https://vercel.com/docs/getting-started-with-vercel.md?from=llms-txt"
    }
  ],
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **AI SEO Audits:** Identify websites publishing `llms.txt` files and examine the documentation they expose to AI tools.
- **Competitive Research:** Compare documentation sections and link coverage across competitor websites.
- **Agent Tooling Catalogs:** Convert Markdown link indexes into structured datasets for directories and retrieval workflows.
- **RAG Data Preparation:** Organize extracted documentation links for further research and processing.
- **Change Monitoring:** Schedule recurring runs to compare document titles, summaries, section counts, and link counts over time.

### Working with Your Dataset

After a successful run, access the collected records through the Apify Dataset tab.

Export your results in JSON, CSV, Excel, and other supported formats for analysis, reporting, or further processing.

### FAQ

**Who is this actor for?**

It is designed for SEO professionals, developer advocates, researchers, and AI engineers who need structured information from websites publishing `llms.txt`.

**What does the actor collect?**

It extracts document titles, summaries, section counts, link counts, and structured links from public `llms.txt` files.

**Does it also fetch `llms-full.txt`?**

Yes. Enable `includeFull` to request `/llms-full.txt` for each domain. This file is optional and may not be available on every website.

**Can I process multiple domains?**

Yes. Provide multiple domains in the `domains` array.

**What happens if a website does not have an `llms.txt` file?**

The actor may not produce a parsed document record for that website. Not every website publishes an `llms.txt` file.

**Can I run it on a schedule?**

Yes. Configure Apify schedules to revisit your selected domains at regular intervals.

**What export formats are available?**

You can export the dataset in JSON, CSV, Excel, and other supported Apify dataset formats.

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with llms.txt or its maintainers. It collects information from publicly available pages. Users are responsible for ensuring that their use of collected data complies with applicable terms and laws.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

Fetch and parse llms.txt and optionally llms-full.txt.

## `domains` (type: `array`):

Enter multiple domains, one per line. Each domain is checked for llms.txt.

## `includeFull` (type: `boolean`):

Also fetch llms-full.txt when available.

## `maxItems` (type: `integer`):

Maximum total output records, including error records.

## `requestDelayMs` (type: `integer`):

Delay between HTTP requests.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Maximum total scraping time.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each HTTP request.

## `proxyConfiguration` (type: `object`):

Optional Apify proxy configuration.

## Actor input object example

```json
{
  "mode": "fetchLlmsTxt",
  "domains": [
    "vercel.com"
  ],
  "includeFull": false,
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "vercel.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("real-estate-api/llms-txt-finder-parser").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "domains": ["vercel.com"] }

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/llms-txt-finder-parser").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "vercel.com"
  ]
}' |
apify call real-estate-api/llms-txt-finder-parser --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/llms-txt-finder-parser"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ysCdo2ZfNNL0Vstwp/builds/BBYPTuo8oA8UAOAoz/openapi.json
