> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Read the Docs

> Documentation projects hosted on Read the Docs: project details, versions, builds, full-text search across docs, and embeddable page sections.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/readthedocs.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=fe5cd7060027dcdfbd739b2a28e1bad9)

[Web Catalog · Developer](https://docs.webrouter.net/data-apis.md?category=developer)

Key for some calls

Endpoints

8

Auth

Key in header

[Vendor docs](https://docs.readthedocs.com/platform/stable/api/v3.html)

## Setup

| Variable | | What it is |
| - | - | - |
| `READTHEDOCS_TOKEN` | some calls | a Read the Docs API token from your profile settings; needed for private data and your own project list, and it raises the rate limit |
| `READTHEDOCS_DOMAIN` | optional | org for Read the Docs Community (app.readthedocs.org), com for Read the Docs Business (app.readthedocs.com) Default `org`. One of `org`, `com`. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Public information needs no token. Unauthenticated calls are limited to 5 per minute, authenticated ones to 60; a token also avoids network-level blocks (403s) from cloud and CI IPs.
* Lists page with limit (default 10) and return count, next and previous; follow next.
* Search and embed return page HTML that is not sanitized; escape it before showing it.

## Endpoints

GET

Get a project

A project's language, repository, default version and branch, documentation URL, tags and privacy level.

[Open](#readthedocs-projects-get)

GET

List your projects

The projects of the user the token belongs to.

[Open](#readthedocs-projects-list)

GET

List a project's versions

Versions (branches and tags) with build status and docs URLs.

[Open](#readthedocs-versions-list)

GET

Get a version

One version's ref, build state, download links (PDF, ePub, HTML zip) and docs URL.

[Open](#readthedocs-versions-get)

GET

List a project's builds

Builds with state, success, commit and timing.

[Open](#readthedocs-builds-list)

GET

Get a build

One build's state, duration, commit, error and (with expand=config) its configuration.

[Open](#readthedocs-builds-get)

GET

Search hosted documentation

Full-text search over the pages of public projects, with highlighted matching sections.

[Open](#readthedocs-search)

GET

Get a section of a docs page

The HTML of a documentation page or one section (by URL fragment).

[Open](#readthedocs-embed)

### Get a project

GET

`/api/v3/projects/{project_slug}/`

`readthedocs.projects.get`

A project's language, repository, default version and branch, documentation URL, tags and privacy level.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`project_slug` required</td><td>string</td><td>path</td><td>Project slug. Example `pip`</td></tr>
    <tr><td>`expand`</td><td>string</td><td>query</td><td>Extra fields: active\_versions (Business also accepts organization); comma-separated. Example `active_versions`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.readthedocs.com/platform/stable/api/v3.html)

```python Python theme={null}
router.call_data_api("readthedocs.projects.get", {'project_slug': 'pip', 'expand': 'active_versions'})
```

```text MCP theme={null}
call_data_api(endpoint="readthedocs.projects.get", params={"project_slug": "pip", "expand": "active_versions"})
```

### List your projects

GET

`/api/v3/projects/`

`readthedocs.projects.list`

Needs&#x20;

`READTHEDOCS_TOKEN`

The projects of the user the token belongs to.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Projects with a matching name.
      </td>
    </tr>

    <tr>
      <td>
        `slug`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Projects with a matching slug.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language code, e.g. en, es, ru.
      </td>
    </tr>

    <tr>
      <td>
        `programming_language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Programming language code, e.g. py, js.
      </td>
    </tr>

    <tr><td>`limit`</td><td>integer</td><td>query</td><td>Items per page; default 10. Example `10`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.readthedocs.com/platform/stable/api/v3.html)

```python Python theme={null}
router.call_data_api("readthedocs.projects.list", {'limit': 10})
```

```text MCP theme={null}
call_data_api(endpoint="readthedocs.projects.list", params={"limit": 10})
```

### List a project's versions

GET

`/api/v3/projects/{project_slug}/versions/`

`readthedocs.versions.list`

Versions (branches and tags) with build status and docs URLs.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`project_slug` required</td><td>string</td><td>path</td><td>Project slug. Example `pip`</td></tr>

    <tr>
      <td>
        `active`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only active versions.
      </td>
    </tr>

    <tr>
      <td>
        `built`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only built versions.
      </td>
    </tr>

    <tr><td>`privacy_level`</td><td>string</td><td>query</td><td>Only this privacy level. One of `public`, `private`</td></tr>

    <tr>
      <td>
        `slug`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Versions with a matching slug.
      </td>
    </tr>

    <tr><td>`type`</td><td>string</td><td>query</td><td>Only branches or tags. One of `branch`, `tag`</td></tr>

    <tr>
      <td>
        `verbose_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Versions with a matching name.
      </td>
    </tr>

    <tr><td>`limit`</td><td>integer</td><td>query</td><td>Items per page; default 10. Example `10`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.readthedocs.com/platform/stable/api/v3.html)

```python Python theme={null}
router.call_data_api("readthedocs.versions.list", {'project_slug': 'pip', 'limit': 10})
```

```text MCP theme={null}
call_data_api(endpoint="readthedocs.versions.list", params={"project_slug": "pip", "limit": 10})
```

### Get a version

GET

`/api/v3/projects/{project_slug}/versions/{version_slug}/`

`readthedocs.versions.get`

One version's ref, build state, download links (PDF, ePub, HTML zip) and docs URL.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`project_slug` required</td><td>string</td><td>path</td><td>Project slug. Example `pip`</td></tr>
    <tr><td>`version_slug` required</td><td>string</td><td>path</td><td>Version slug. Example `stable`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.readthedocs.com/platform/stable/api/v3.html)

```python Python theme={null}
router.call_data_api("readthedocs.versions.get", {'project_slug': 'pip', 'version_slug': 'stable'})
```

```text MCP theme={null}
call_data_api(endpoint="readthedocs.versions.get", params={"project_slug": "pip", "version_slug": "stable"})
```

### List a project's builds

GET

`/api/v3/projects/{project_slug}/builds/`

`readthedocs.builds.list`

Builds with state, success, commit and timing.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`project_slug` required</td><td>string</td><td>path</td><td>Project slug. Example `pip`</td></tr>

    <tr>
      <td>
        `commit`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only builds of this commit hash.
      </td>
    </tr>

    <tr>
      <td>
        `running`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only builds currently running.
      </td>
    </tr>

    <tr><td>`limit`</td><td>integer</td><td>query</td><td>Items per page; default 10. Example `10`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.readthedocs.com/platform/stable/api/v3.html)

```python Python theme={null}
router.call_data_api("readthedocs.builds.list", {'project_slug': 'pip', 'limit': 10})
```

```text MCP theme={null}
call_data_api(endpoint="readthedocs.builds.list", params={"project_slug": "pip", "limit": 10})
```

### Get a build

GET

`/api/v3/projects/{project_slug}/builds/{build_id}/`

`readthedocs.builds.get`

One build's state, duration, commit, error and (with expand=config) its configuration.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`project_slug` required</td><td>string</td><td>path</td><td>Project slug. Example `pip`</td></tr>
    <tr><td>`build_id` required</td><td>integer</td><td>path</td><td>Build ID. Example `8592686`</td></tr>
    <tr><td>`expand`</td><td>string</td><td>query</td><td>config to include the build configuration, as in the docs' example. Example `config`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.readthedocs.com/platform/stable/api/v3.html)

```python Python theme={null}
router.call_data_api("readthedocs.builds.get", {'project_slug': 'pip', 'build_id': 8592686, 'expand': 'config'})
```

```text MCP theme={null}
call_data_api(endpoint="readthedocs.builds.get", params={"project_slug": "pip", "build_id": 8592686, "expand": "config"})
```

### Search hosted documentation

GET

`/api/v3/search/`

`readthedocs.search`

Full-text search over the pages of public projects, with highlighted matching sections.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Search query; scope it with project:\<slug>. Example `project:docs server side search`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number.
      </td>
    </tr>

    <tr>
      <td>
        `page_size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 50.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.readthedocs.com/platform/stable/server-side-search/api.html) · Same job: [Context7](https://docs.webrouter.net/data-apis/context7.md#context7-docs-search)

```python Python theme={null}
router.call_data_api("readthedocs.search", {'q': 'project:docs server side search'})
```

```text MCP theme={null}
call_data_api(endpoint="readthedocs.search", params={"q": "project:docs server side search"})
```

### Get a section of a docs page

GET

`/api/v3/embed/`

`readthedocs.embed`

The HTML of a documentation page or one section (by URL fragment).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url` required</td><td>string</td><td>query</td><td>Full URL of the page, with an optional #fragment for one section. Example `https://docs.readthedocs.com/platform/stable/reference/features.html#feature-reference`</td></tr>
    <tr><td>`doctool`</td><td>string</td><td>query</td><td>Documentation tool that built the page; only sphinx is accepted. One of `sphinx`</td></tr>

    <tr>
      <td>
        `doctoolversion`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Version of that tool, e.g. 4.2.0.
      </td>
    </tr>

    <tr>
      <td>
        `maincontent`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        CSS selector of the page's main content, e.g. div#main.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.readthedocs.com/platform/stable/api/v3.html) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-fetch), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-scrape), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-llm-context), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-fetch), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-product), [Context7](https://docs.webrouter.net/data-apis/context7.md#context7-page-fetch)

```python Python theme={null}
router.call_data_api("readthedocs.embed", {'url': 'https://docs.readthedocs.com/platform/stable/reference/features.html#feature-reference'})
```

```text MCP theme={null}
call_data_api(endpoint="readthedocs.embed", params={"url": "https://docs.readthedocs.com/platform/stable/reference/features.html#feature-reference"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.