# Docs Livecode — 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 comprehensive LiveCode Script documentation to look up commands, functions, control structures, and language reference entries. Quickly find detailed information about any LiveCode language feature you need while coding.

**Category:** Developer Tools | **Website:** [docs.livecode.com/docs/](https://docs.livecode.com/docs/) | **Docs:** [parse.bot/marketplace/7f9ed7ad-d186-46da-8c9a-3045a13ed5a4/docs-livecode-com-api](https://parse.bot/marketplace/7f9ed7ad-d186-46da-8c9a-3045a13ed5a4/docs-livecode-com-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-docs-livecode-com-api-7f9ed7ad/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_entry

Retrieves the full documentation for a specific LiveCode Script entry, including its type, summary, syntax, description, parameters, examples, and related references. Entry names are obtained from list_entries results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | Yes | The LiveCode Script documentation category the entry belongs to. |
| `name` | string | Yes | The name of the entry to retrieve (e.g. 'add', 'if', 'abs'). Obtained from list_entries results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-livecode-com-api-7f9ed7ad/get_entry \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","name":"<string>"}'
```

### list_entries

Lists all entries in a given LiveCode Script documentation category. Returns entry names and their documentation paths. Categories include Commands (631 items), Functions (606 items), Control Structures (18 items), Constants, Glossary, Keywords, Libraries, Messages, Objects, Operators, Properties, Widgets, and com.livecode.language.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | Yes | The LiveCode Script documentation category to list entries for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-livecode-com-api-7f9ed7ad/list_entries \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>"}'
```
