# WeChat Channels ID to Username API

> Convert a public WeChat Channels Channel ID (sph… short ID) into the finder username (v2_…@finder) required by the other WeChat Channels APIs.

Source: https://www.sandbase.ai/apis/wechat-channels/v2/channel-id-to-username
API reference: https://www.sandbase.ai/apis/wechat-channels/v2/channel-id-to-username/docs

## Facts

- Provider: WeChat Channels
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-id-to-username`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, wechat channels
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-id-to-username` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `channel_id` | string | yes |  |
| `raw` | boolean | no |  |

## FAQ

### How do I use the WeChat Channels ID to Username API?

Send a POST request to https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-id-to-username with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the WeChat Channels ID to Username API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the WeChat Channels ID to Username API accept?

Required: channel_id (string). Optional: raw (boolean). The Parameters table and the Playground on this page list every field.

### What does the WeChat Channels ID to Username API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a WeChat Channels developer account or API key?

No. WeChat Channels ID to Username runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for WeChat Channels API access separately.

## README

### WeChat Channels ID to Username API

WeChat Channels shows a short public Channel ID (`sph…`) on profiles, but the data APIs need the internal finder username. Pass the Channel ID and get the username, nickname and bio.

#### Use cases

- Resolve Channel IDs collected from profiles or links.
- First step before calling User Videos or Account Info.
- Deduplicate accounts across data sources.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-id-to-username" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel_id": "sphi9BjV8GK0Zsl", "raw": false}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `channel_id` | string | Yes | Channel ID (`sph…` short ID), e.g. |
| `raw` | boolean | No | Optional, default True. |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "channel_id": "sphi9BjV8GK0Zsl",
  "username": "v2_0600002310…@finder",
  "nickname": "人民日报",
  "desc": "参与、沟通、记录时代。"
}
```

#### Notes

- The Channel ID must start with `sph`.

#### Related APIs

- [WeChat Channels Account Info](/model/wechat-channels/v2/channel-info): Get the public "More info" panel of a WeChat Channels account: Channel ID, IP and profile location, and verification details such as entity type, service categ…
- [WeChat Channels User Videos](/model/wechat-channels/v2/user-videos): Get the videos on a WeChat Channels account's homepage with descriptions, publish time, like, comment, share and favorite counts, and media download info, with…
- [WeChat Channels Video Detail](/model/wechat-channels/v2/video-detail): Get the full detail of a WeChat Channels video: description, author, engagement counts and the media URL with decode key for download.
