# Read The Docs Search Scraper (`b2b_lead_generation/read-the-docs-search-scraper`) Actor

Search documentation across Read the Docs projects instantly. Query specific projects or topics to extract clean page results, sections, and guides into JSON, CSV, or Excel datasets effortlessly.

- **URL**: https://apify.com/b2b_lead_generation/read-the-docs-search-scraper.md
- **Developed by:** [B2B Lead Generation](https://apify.com/b2b_lead_generation) (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

## Read the Docs Search Scraper

![Read the Docs Search Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/read-the-docs-search-scraper-cover.png)

Search documentation pages across Read the Docs projects using a query. Collect structured search results and export them as JSON, CSV, Excel, or other supported dataset formats.

### What It Does

This actor finds documentation pages matching your search query across Read the Docs projects. Each result is saved as a separate dataset item with page details, project information, version details, and available content snippets.

It supports pagination, request pacing, retry handling, and duplicate prevention.

### Modes

- **Search:** Find documentation pages across Read the Docs projects using your query.

### Input Example

```json
{
  "mode": "search",
  "q": "project:requests install",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

### Input Parameters

| Parameter | Description |
|---|---|
| `mode` | Selects the search mode. Default: `search`. |
| `q` | Search query. Supports project-specific queries such as `project:requests install`. |
| `maxItems` | Maximum number of search results to collect. |
| `requestDelayMs` | Delay between requests in milliseconds. Default: `1000`. |

### Output Example

```json
{
  "pageTitle": "Installation of Requests",
  "resultType": "page",
  "domain": "https://requests.readthedocs.io",
  "path": "/en/latest/user/install/",
  "url": "https://requests.readthedocs.io/en/latest/user/install/",
  "project": {
    "alias": null,
    "slug": "requests"
  },
  "version": {
    "slug": "latest"
  },
  "blocks": [
    {
      "content": "To install Requests, simply run this simple command in your terminal of choice: $ python -m pip install requests",
      "title": "$ python -m pip install requests",
      "type": "section"
    }
  ],
  "highlights": {
    "title": []
  },
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

The main output fields include `pageTitle`, `resultType`, `domain`, `path`, `url`, `project`, and `version`. Additional fields provide content snippets, highlights, source information, and collection timestamps.

The original source fields `title` and `type` are stored as `pageTitle` and `resultType` to avoid reserved Apify dataset field names.

### Use Cases

- **Documentation Discovery:** Find relevant documentation pages across different projects.
- **Technical Research:** Collect documentation references for research and development.
- **Project Cataloging:** Build searchable collections of documentation pages.
- **Documentation Analysis:** Review installation guides, technical topics, and project resources.
- **Data Archiving:** Export search results for offline analysis and record keeping.

### FAQ

**Who can use this actor?**

Developers, researchers, and technical teams who need structured documentation search results.

**What information does it collect?**

It collects page titles, result types, URLs, project details, version information, and available content snippets.

**What export formats are supported?**

You can export results as JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I schedule recurring searches?**

Yes. You can use Apify schedules to run the same search query automatically at your preferred intervals.

### Trademark Notice

Read the Docs is a trademark of its respective owner. This actor is an independent tool and is not affiliated with or endorsed by Read the Docs.

### Disclaimer

This actor is provided for documentation discovery and research purposes. Users are responsible for ensuring that their collection and use of documentation content comply with applicable laws, licensing requirements, and the source website's policies.

### Is Web Scraping Legal?

This actor collects publicly accessible documentation information without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Documentation pages may contain author names or other personal information. Handle such information responsibly and follow applicable privacy regulations, including GDPR and CCPA where relevant.
- **Copyright and Licensing:** Documentation text, examples, and other materials may be protected by copyright or open-source licences. Check the applicable licence and attribution requirements before reusing or redistributing content.
- **Platform Terms and Rate Limits:** Respect Read the Docs' terms, usage policies, and request limits.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional if you have questions about your intended use.

For more information, read [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to fetch. Search runs docs search across Read the Docs projects via the public RTD search API.

## `q` (type: `string`):

Passed to the source as q. Supports RTD search syntax such as project:requests install.

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

Stop after this many successful rows. Hard max is 1000.

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

Milliseconds to wait before each request. Raise if you see 429 responses.

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

User-Agent header sent with each request.

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

Overall run budget in seconds.

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

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "search",
  "q": "project:requests install",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Search result 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b_lead_generation/read-the-docs-search-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("b2b_lead_generation/read-the-docs-search-scraper").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 '{}' |
apify call b2b_lead_generation/read-the-docs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_lead_generation/read-the-docs-search-scraper"
        }
    }
}
```

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/EkeOXLhp73zEhczHd/builds/c0g7m48XloHhtBagA/openapi.json
