namestringobbligatorio
WeChat Official Account name used to fetch basic profile information.
https://api.sandbase.ai/v1/api/wechat-mp/account-basic-infoGet basic profile information for a WeChat Official Account by account name. Use it to identify or enrich a known account before article, ownership, or publishing research.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Returns the basic public profile of a WeChat Official Account: its name, description, avatar, account type, WeChat ID and biz identifier. It needs one input, the account name in name.
wxid before further research.biz value of an account so you can match it against article links.curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/account-basic-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "人民日报"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | WeChat Official Account name used to fetch basic profile information. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"avatar": "http://mmbiz.qpic.cn/mmbiz_png/xrFYciaHL08D1hiaVU0brP9YwQH1wFm9D9AG7oAVaNE8RzGia…",
"biz": "MjM5MjAxNDM4MA==",
"desc": "参与、沟通、记录时代。",
"name": "人民日报",
"type": "订阅号",
"wxid": "rmrbwx"
}
}
| Field | Meaning |
|---|---|
data.name | The display name of the Official Account. |
data.wxid | The WeChat ID of the account, for example rmrbwx. |
data.biz | The biz identifier of the account. The value looks like a Base64 string, for example MjM5MjAxNDM4MA==. |
data.desc | The account's profile description, as the account owner wrote it. |
data.type | The account type as a text label. The sample value 订阅号 means subscription account. |
data.avatar | URL of the account's avatar image. |
name. The sample request uses 人民日报.biz and wxid from the response to identify the account in later calls.$0.142857 per successful call. Failed calls are not charged.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/account-basic-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "人民日报"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
namestringobbligatorioWeChat Official Account name used to fetch basic profile information.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
WeChat MP Account Basic InfoQuesta API WeChat MP | $0.142857 per chiamata | JSON |
WeChat MP | $0.042857 per chiamata | JSON |
WeChat MP | $0.028571 per chiamata | JSON |
WeChat MP | $0.021429 per chiamata | JSON |
WeChat MP | $0.021429 per chiamata | JSON |
WeChat MP | $0.014286 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/wechat-mp/account-basic-info con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.142857 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: name (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. WeChat MP Account Basic Info funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API WeChat MP.