# WeChat MP Account Profile API

> Retrieves the profile details of an official WeChat account, including name, avatar, signature, and verification entity type using its official account ID.

Source: https://www.sandbase.ai/apis/wechat-mp/v2/account-profile
API reference: https://www.sandbase.ai/apis/wechat-mp/v2/account-profile/docs

## Facts

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

## Call it

`POST https://api.sandbase.ai/v1/api/wechat-mp/v2/account-profile` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

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

## FAQ

### How do I use the WeChat MP Account Profile API?

Send a POST request to https://api.sandbase.ai/v1/api/wechat-mp/v2/account-profile 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 MP Account Profile 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 MP Account Profile API accept?

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

### What does the WeChat MP Account Profile API return?

A JSON response returned in the same HTTP request (synchronous).

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

No. WeChat MP Account Profile 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 MP API access separately.

## README

### WeChat MP Account Profile API

Look up official WeChat account profile information by passing the account ID in `username`.

#### Use cases

- Verify official WeChat account details such as verification status and entity type.
- Display official account avatar, nickname, and signature in external dashboards.
- Inspect raw or simplified profile data structures for integrated WeChat monitoring tools.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/account-profile" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "<username>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `username` | string | Yes | Official account `gh_username` (`gh_…`). |
| `raw` | boolean | No | Optional, default True. |

#### Notes

- Set `username` using the `gh_` ID obtained from article details or WeChat search results.
- Set `raw` to false for simplified parsing, or keep it true by default for raw profile data.
- Profile fields such as nickname, signature, or avatar URL may return as null.

#### Related APIs

- [WeChat MP Account Articles](/model/wechat-mp/v2/account-articles): Get the published articles of a WeChat official account by its gh_ username: titles, links, covers and post dates, one page at a time, including video and audi…
- [WeChat MP Article Ads](/model/wechat-mp/v2/article-ad): Returns embedded ad slot information for a specified WeChat MP article URL.
- [WeChat MP Article Comments](/model/wechat-mp/v2/article-comments): Get the comments on a WeChat official account article from its URL: comment text, likes, time and commenter region, with cursor pagination.
