# Wikisource — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access the complete text of James Legge's 1891 translation of the Tao Te Ching, retrieving individual chapters or browsing the full collection to study this classic philosophical work. Explore all 81 chapters of this foundational text with reliable, organized access to one of the most respected English translations.

**Category:** Education | **Website:** [en.wikisource.org/wiki/Tao_Te_Ching_(Legge)](https://en.wikisource.org/wiki/Tao_Te_Ching_(Legge)) | **Docs:** [parse.bot/marketplace/6367d052-50ca-4061-b76a-3a857edd8c3c/en-wikisource-org-api](https://parse.bot/marketplace/6367d052-50ca-4061-b76a-3a857edd8c3c/en-wikisource-org-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-en-wikisource-org-api-6367d052/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_chapter

Returns a single chapter of the Tao Te Ching by chapter number. Includes the chapter number and full verbatim text from James Legge's translation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `chapter` | integer | Yes | Chapter number (1-81). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-en-wikisource-org-api-6367d052/get_chapter \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"chapter":"<integer>"}'
```

### get_chapters

Returns all 81 chapters of the Tao Te Ching in James Legge's translation. Each chapter includes the chapter number and full verbatim text. Makes a single request to Wikisource's API.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-en-wikisource-org-api-6367d052/get_chapters \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
