# Pan Baidu — 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 data from pan.baidu.com.

**Category:** Developer Tools | **Website:** [pan.baidu.com/](https://pan.baidu.com/) | **Docs:** [parse.bot/marketplace/817b26fd-1b47-455b-90f9-4a2ea742ef1b/pan-baidu-com-api](https://parse.bot/marketplace/817b26fd-1b47-455b-90f9-4a2ea742ef1b/pan-baidu-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-pan-baidu-com-api-817b26fd/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_share_info

Retrieve metadata about a Baidu Pan share link using its short URL code. Returns share status (active, cancelled, expired, not_found), owner info, and identifiers. Works for any share link state without requiring authentication.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `surl` | string | Yes | The short URL code from a pan.baidu.com/s/<code> share link (e.g. '1eQlSMtk'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-pan-baidu-com-api-817b26fd/get_share_info \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"surl":"<string>"}'
```

### list_share_files

List files in a Baidu Pan share by visiting the share page and extracting embedded file data. Returns share metadata and file list. For cancelled or expired shares, the file list will be empty.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `shareid` | string | Yes | Numeric share identifier (from get_share_info response). |
| `uk` | string | Yes | Numeric user key of the share owner (from get_share_info response). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-pan-baidu-com-api-817b26fd/list_share_files \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"shareid":"<string>","uk":"<string>"}'
```
