Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

WeChat MP Account Profile

Dokumentasi API
https://api.sandbase.ai/v1/api/wechat-mp/v2/account-profile

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

Harga
$0.01USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 1 opsional

Playground

Input
Official account `gh_username` (`gh_…`). Sources: `content.user_name` from article detail, or `jumpInfo.userName` from WeChat Search V2 `fetch_search` (business_type=account) results. E.g. `gh_363b924965e9`
Optional, default True. True=raw; False=simplified parsing.
OutputContoh
Responsoutputs · 24.7 KB · 646 baris
[
  {
    "data": {
      "accountInfo": {
        "banReason": "",
        "banType": 0,
        "pbRequestMsgInfo": null,
        "serviceType": 0,
        "userName": "gh_363b924965e9",
        "userRole": 0
      },
      "aiChatInfo": {
        "aiChatOpen": 2,
        "extInfo": "",
        "pbRequestMsgInfo": null,
        "pollInterval": 180,
        "reportExtInfo": "",
        "roomInfo": "",
        "stringBizuin": "MjM5MjAxNDM4MA=="
      },
      "aiIvrReplyInfo": {
        "aiReplyOpen": 0,
        "pbRequestMsgInfo": null,
        "wording": ""
      },
      "articleTab": {
        "msgList": {
          "featuredList": [],
          "featuredUpdateTime": 1790688730,
          "hideList": false,
          "msg": [
            {
              "appMsg": {
                "baseInfo": {
                  "appMsgId": 2667036897,
                  "bigPic": 1,
                  "createTime": 1790687968,
                  "hasExpanded": false,
                  "pbRequestMsgInfo": null,
                  "type": 9,
                  "updateTime": 1790688728
                },
                "detailInfo": [
                  "…"
                ],
                "pbRequestMsgInfo": null
              },
              "baseInfo": {
                "dateTime": 1790687967,
                "funcFlag": 0,
                "msgId": 2667036897,
                "msgType": 49,
                "pbRequestMsgInfo": null,
                "status": 0,
                "uniqueId": "0_2667036897",
                "virtualMsgType": 0
              },
              "featuredExposed": false,
              "image": null,
              "pbRequestMsgInfo": null,
              "text": null,
              "video": null,
              "voice": null
            },
            {
              "appMsg": {
                "baseInfo": {
                  "appMsgId": 2667036881,
                  "bigPic": 1,
                  "createTime": 1790685094,
                  "hasExpanded": false,
                  "pbRequestMsgInfo": null,
                  "type": 9,
                  "updateTime": 1790686415
                },
                "detailInfo": [
                  "…"
                ],
                "pbRequestMsgInfo": null
              },
              "baseInfo": {
                "dateTime": 1790685600,
                "funcFlag": 0,
                "msgId": 2667036881,
                "msgType": 49,
                "pbRequestMsgInfo": null,
                "status": 0,
                "uniqueId": "0_2667036881",
                "virtualMsgType": 0
              },
              "featuredExposed": false,
              "image": null,
              "pbRequestMsgInfo": null,
              "text": null,
              "video": null,
              "voice": null
            },
            "… 8 more items in the full response"
          ],
          "pagingInfo": {
            "isEnd": 0,
            "offset": "WABgAGiBoIC+n+PR3Wo=",
            "pbRequestMsgInfo": null
          },
          "pbRequestMsgInfo": null,
          "poiInfo": null
        },
        "pbRequestMsgInfo": null,
        "show": true,
        "topicList": {
          "pbRequestMsgInfo": null,
          "title": "Top Topics",
          "topic": []
        }
      },
      "audioTab": {
        "msgList": {
          "featuredList": [],
          "featuredUpdateTime": 1790688730,
          "hideList": false,
          "msg": [],
          "pagingInfo": {
            "isEnd": 1,
            "offset": "WABgAGgAcAA=",
            "pbRequestMsgInfo": null
          },
          "pbRequestMsgInfo": null,
          "poiInfo": null
        },
        "pbRequestMsgInfo": null,
        "show": false,
        "topicList": {
          "pbRequestMsgInfo": null,
          "title": "Top Topics",
          "topic": []
        }
      },
      "baseInfo": {
        "bizRecommendUrl": "",
        "friendSubscribeCount": 0,
        "friendSubscribeStr": "",
        "isSubscribed": 0,
        "nickNameWhenSubscribe": "",
        "originalArticleCount": 795,
        "originalContentStr": "795 original articles",
        "pbRequestMsgInfo": null
      },
      "baseResponse": {
        "errMsg": {
          "pbRequestMsgInfo": null,
          "string": ""
        },
        "pbRequestMsgInfo": null,
        "ret": 0
      },
      "brandInfo": null,
      "debug_id": "7f6fa333",
      "debug_info": "gAAAAABqu8jtfBR6tZGGZbPCiOFrlw58nRRxdbKniT2hJbtuobsz1hY44_O3YIp_twWSmWr2wsRPhVa7712o2uKsWbn5LxmcD0msZO9x1jFIrUxNs_Uwgnn30YRLxihF_sYFK_C350R_gtsTAydZaPjun1cpeWJssmTXNDgEbxyK651qbWJi0u7PrRNYD4ofHYkL00aMVdRnO-SX1NFM6xnDbNOpxTuaGmQDiAL8HBQgk6cvb2Xj13RSmuTPDfkzWCCsGe93C4TrQ1fFXNvCAd1a5TBAzmpEAw==",
      "finderVideoIsBizMode": false,
      "funcFlag": 64,
      "funcFlagWording": [
        {
          "funcFlag": 64,
          "jumpUrl": "",
          "pbRequestMsgInfo": null,
          "wording": "Follow the Official Account to watch more videos"
        }
      ],
      "gender": 0,
      "hideMsgList": false,
      "introRichContent": null,
      "ipwording": "北京",
      "liveExtInfo": null,
      "liveInfo": [],
      "liveInfoV2": null,
      "loveStatus": null,
      "msgList": {
        "featuredList": [],
        "featuredUpdateTime": 1790688730,
        "hideList": false,
        "msg": [
          {
            "appMsg": {
              "baseInfo": {
                "appMsgId": 2667036897,
                "bigPic": 1,
                "createTime": 1790687968,
                "hasExpanded": false,
                "pbRequestMsgInfo": null,
                "type": 9,
                "updateTime": 1790688728
              },
              "detailInfo": [
                {
                  "appEditJumpUrl": "",
                  "audioDuRation": 0,
                  "audioId": 0,
                  "audioPlayUrl": "",
                  "authorDesc": "",
                  "canModifyByWxa": 0,
                  "contentUrl": "http://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667036897&idx=1&sn=114b0005f5d6c47e4aa1b1d431980ba1&chksm=bc309ed1292bf53451ab6910b440beffacef5c980847b6a65445709fa619279b9c048fba6938&scene=126&sessionid=0#rd",
                  "coverImgUrl": "https://mmbiz.qpic.cn/mmbiz_jpg/QaRWjMxooXsJHOMd8MXUs8ruLTCBeRx0sqmwfMJMbzuQb3e7hzfeHeusfF4iamvCEVTWk0DN09dSnpzicibYJIUTkaXqpZTgXO6rdGOvcLo65A/640?wxtype=jpeg&wxfrom=25",
                  "coverImgUrl11": "https://mmbiz.qpic.cn/mmbiz_jpg/QaRWjMxooXv9aCvIvx5OhEXmiaXTY8oNbWmqfZ2xBcVbCeKBt9D1a04MSrnRqFaUUdOqJeUyex0kNdicf805xEibWQ6bO0a1pUyHD5tlKZAhfk/300?wxtype=jpeg&wxfrom=25",
                  "coverImgUrl169": "https://mmbiz.qpic.cn/mmbiz_jpg/QaRWjMxooXsJHOMd8MXUs8ruLTCBeRx0sqmwfMJMbzuQb3e7hzfeHeusfF4iamvCEVTWk0DN09dSnpzicibYJIUTkaXqpZTgXO6rdGOvcLo65A/640?wxtype=jpeg&wxfrom=25",
                  "coverImgUrl169640": "https://mmbiz.qpic.cn/mmbiz_jpg/QaRWjMxooXsJHOMd8MXUs8ruLTCBeRx0sqmwfMJMbzuQb3e7hzfeHeusfF4iamvCEVTWk0DN09dSnpzicibYJIUTkaXqpZTgXO6rdGOvcLo65A/640?wxtype=jpeg&wxfrom=25",
                  "coverImgUrl2351": "https://mmbiz.qpic.cn/mmbiz_jpg/QaRWjMxooXsJHOMd8MXUs8ruLTCBeRx0sqmwfMJMbzuQb3e7hzfeHeusfF4iamvCEVTWk0DN09dSnpzicibYJIUTkaXqpZTgXO6rdGOvcLo65A/640?wxtype=jpeg&wxfrom=25",
                  "coverimgurl34": "https://mmbiz.qpic.cn/mmbiz_jpg/QaRWjMxooXsJHOMd8MXUs8ruLTCBeRx0sqmwfMJMbzuQb3e7hzfeHeusfF4iamvCEVTWk0DN09dSnpzicibYJIUTkaXqpZTgXO6rdGOvcLo65A/540?wxtype=jpeg&wxfrom=25",
                  "createTime": 0,
                  "digest": "",
                  "featuredInfo": "…",
                  "finderFeedXml": "",
                  "finderLive": null,
                  "isModified": 0,
                  "isPaid": 0,
                  "isPaySubscribe": 0,
                  "itemIndex": 1,
                  "itemShowType": 0,
                  "listenItem": "",
                  "listenItemExt": null,
                  "moreActionJumpUrl": "",
                  "msgid": 0,
                  "nonceId": "",
                  "pbRequestMsgInfo": null,
                  "picCount": 0,
                  "picUrls": null,
                  "poiInfo": null,
                  "preloadPictureInfo": "…",
                  "sendTime": 1790687981,
                  "shortShowDesc": "5504 likes  ",
                  "showDesc": "100k+ reads  5504 likes  ",
                  "sourceUrl": "https://www.peopleapp.com",
                  "textTitle": "",
                  "tid": "",
                  "title": "【夜读】你相信什么,就会发生什么",
                  "…": "7 more fields in the full response"
                }
              ],
              "pbRequestMsgInfo": null
            },
            "baseInfo": {
              "dateTime": 1790687967,
              "funcFlag": 0,
              "msgId": 2667036897,
              "msgType": 49,
              "pbRequestMsgInfo": null,
              "status": 0,
              "uniqueId": "0_2667036897",
              "virtualMsgType": 0
            },
            "featuredExposed": false,
            "image": null,
            "pbRequestMsgInfo": null,
            "text": null,
            "video": null,
            "voice": null
          },
          {
            "appMsg": {
              "baseInfo": {
                "appMsgId": 2667036881,
                "bigPic": 1,
                "createTime": 1790685094,
                "hasExpanded": false,
                "pbRequestMsgInfo": null,
                "type": 9,
                "updateTime": 1790686415
              },
              "detailInfo": [
                {
                  "appEditJumpUrl": "",
                  "audioDuRation": 0,
                  "audioId": 0,
                  "audioPlayUrl": "",
                  "authorDesc": "",
                  "canModifyByWxa": 0,
                  "contentUrl": "http://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667036881&idx=1&sn=653000c2b7685c29df1a90d978658625&chksm=bce8248c17752f43405410f74c9c5a982ebf8cbdd206e6033f9ac5a14788be76b7eef0017f81&scene=126&sessionid=0#rd",
                  "coverImgUrl": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/QaRWjMxooXugWmGWeF2c8ovf9GMKJOheTicvJuUlOaWr9lrBdZ8ic0PqFSibsTRJibN0799COqMlO9AzO95hiczSJBRdLQJIRiaiccBt0ibSlZpfWoc/640?wxtype=jpeg&wxfrom=25",
                  "coverImgUrl11": "https://mmbiz.qpic.cn/mmbiz_jpg/QaRWjMxooXvnX00BvReUe2cgrFCgMJIrDM00j4Xb3TDkjkWQ45n9czxuHzroZyTpZauhw6G9olXRicTn00Y8TOcaNv0vElgg0luwAYosHBaE/300?wxtype=jpeg&wxfrom=25",
                  "coverImgUrl169": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/QaRWjMxooXugWmGWeF2c8ovf9GMKJOheTicvJuUlOaWr9lrBdZ8ic0PqFSibsTRJibN0799COqMlO9AzO95hiczSJBRdLQJIRiaiccBt0ibSlZpfWoc/640?wxtype=jpeg&wxfrom=25",
                  "coverImgUrl169640": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/QaRWjMxooXugWmGWeF2c8ovf9GMKJOheTicvJuUlOaWr9lrBdZ8ic0PqFSibsTRJibN0799COqMlO9AzO95hiczSJBRdLQJIRiaiccBt0ibSlZpfWoc/640?wxtype=jpeg&wxfrom=25",
                  "coverImgUrl2351": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/QaRWjMxooXugWmGWeF2c8ovf9GMKJOheTicvJuUlOaWr9lrBdZ8ic0PqFSibsTRJibN0799COqMlO9AzO95hiczSJBRdLQJIRiaiccBt0ibSlZpfWoc/640?wxtype=jpeg&wxfrom=25",
                  "coverimgurl34": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/QaRWjMxooXugWmGWeF2c8ovf9GMKJOheTicvJuUlOaWr9lrBdZ8ic0PqFSibsTRJibN0799COqMlO9AzO95hiczSJBRdLQJIRiaiccBt0ibSlZpfWoc/540?wxtype=jpeg&wxfrom=25",
                  "createTime": 0,
                  "digest": "",
                  "featuredInfo": "…",
                  "finderFeedXml": "",
                  "finderLive": null,
                  "isModified": 0,
                  "isPaid": 0,
                  "isPaySubscribe": 0,
                  "itemIndex": 1,
                  "itemShowType": 0,
                  "listenItem": "",
                  "listenItemExt": null,
                  "moreActionJumpUrl": "",
                  "msgid": 0,
                  "nonceId": "",
                  "pbRequestMsgInfo": null,
                  "picCount": 0,
                  "picUrls": null,

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

WeChat MP Account Profile API

Returns the profile of an official WeChat account, plus its most recent published articles. It needs the account's gh_ username in username.

Use cases

  • Check how many original articles an official account has published.
  • Pull the latest article links and publish times for an account to track its posting activity.
  • Read the account's IP location label for a profile record.
  • Page through an account's message list with the returned offset cursor.

Request

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": "gh_363b924965e9"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
usernamestringYesOfficial account gh_username (gh_…). Sources: content.user_name from article detail, or jumpInfo.userName from WeChat Search V2 fetch_search (business_type=account) results. E.g. gh_363b924965e9
rawbooleanNoOptional, default True. True=raw; False=simplified parsing.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "accountInfo": {
    "banReason": "",
    "banType": 0,
    "pbRequestMsgInfo": null,
    "serviceType": 0,
    "userName": "gh_363b924965e9",
    "userRole": 0
  },
  "aiChatInfo": {
    "aiChatOpen": 2,
    "extInfo": "",
    "pbRequestMsgInfo": null,
    "pollInterval": 180,
    "reportExtInfo": "",
    "roomInfo": "",
    "stringBizuin": "MjM5MjAxNDM4MA=="
  },
  "aiIvrReplyInfo": {
    "aiReplyOpen": 0,
    "pbRequestMsgInfo": null,
    "wording": ""
  },
  "articleTab": {
    "msgList": {
      "featuredList": [],
      "featuredUpdateTime": 1793688509,
      "hideList": false,
      "msg": [
        {
          "appMsg": {
            "baseInfo": {
              "appMsgId": 2667043262,
              "bigPic": 1,
              "createTime": 1793687341,
              "hasExpanded": false,
              "pbRequestMsgInfo": null,
              "type": 9,
              "updateTime": 1793688161
            },
            "detailInfo": [
              {
                "appEditJumpUrl": "",
                "audioDuRation": 0,
                "audioId": 0,
                "audioPlayUrl": "",
                "authorDesc": "",
                "bizRecommendInfo": null,
                "canModifyByWxa": 0,
                "contentUrl": "http://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667043262&idx=1&sn=efc2247…"
              }
            ],
            "pbRequestMsgInfo": null
          },
          "baseInfo": {
            "dateTime": 1793687341,
            "funcFlag": 0,
            "msgId": 2667043262,
            "msgType": 49,
            "pbRequestMsgInfo": null,
            "status": 0,
            "uniqueId": "0_2667043262",
            "virtualMsgType": 0
          },
          "featuredExposed": false,
          "image": null,
          "pbRequestMsgInfo": null,
          "text": null,
          "video": null,
          "voice": null
        }
      ],
      "pagingInfo": {
        "isEnd": 0,
        "offset": "WABgAGiBpOW+74vB9Go=",
        "pbRequestMsgInfo": null
      },
      "pbRequestMsgInfo": null,
      "poiInfo": null,
      "recommendSetting": null
    },
    "pbRequestMsgInfo": null,
    "show": true,
    "topicList": {
      "pbRequestMsgInfo": null,
      "title": "Top Topics",
      "topic": []
    }
  },
  "audioTab": {
    "msgList": {
      "featuredList": [],
      "featuredUpdateTime": 1793688509,
      "hideList": false,
      "msg": [],
      "pagingInfo": {
        "isEnd": 1,
        "offset": "WABgAGgAcAA=",
        "pbRequestMsgInfo": null
      },
      "pbRequestMsgInfo": null,
      "poiInfo": null,
      "recommendSetting": null
    },
    "pbRequestMsgInfo": null,
    "show": false,
    "topicList": {
      "pbRequestMsgInfo": null,
      "title": "Top Topics",
      "topic": []
    }
  },
  "baseInfo": {
    "bizRecommendUrl": "",
    "friendSubscribeCount": 0,
    "friendSubscribeStr": "",
    "isFans": 0,
    "isSubscribed": 0,
    "nickNameWhenSubscribe": "",
    "originalArticleCount": 1133,
    "originalContentStr": "1133 original articles",
    "pbRequestMsgInfo": null
  },
  "baseResponse": {
    "errMsg": {
      "pbRequestMsgInfo": null,
      "string": ""
    },
    "pbRequestMsgInfo": null,
    "ret": 0
  },
  "bindPoiInfo": null,
  "brandInfo": null,
  "debug_id": "b7b56c11",
  "debug_info": "gAAAAABq6ZEysXRPJLLgIxJIvLQd0bAzwA_WC34pPQO1EI1FDQy_kN3H5CloQ309xS0gUmx69615uZLF…",
  "finderVideoIsBizMode": false
}

Response fields

FieldMeaning
accountInfo.userNameThe gh_ username of the account, matching the value you sent.
baseInfo.originalArticleCount / baseInfo.originalContentStrNumber of original articles the account has published, as a number and as a display string such as 1133 original articles.
ipwordingIP location label shown for the account, for example 北京.
msgList.msg[].appMsg.detailInfo[].contentUrlLink to an article published by the account.
msgList.msg[].appMsg.baseInfo.appMsgIdID of the article message. It also appears in the article link as mid.
msgList.msg[].appMsg.baseInfo.createTime / msgList.msg[].appMsg.baseInfo.updateTimeUnix timestamps in seconds for when the article was created and last updated.
msgList.msg[].baseInfo.uniqueIdUnique ID of the message in the list, formatted like 0_2667043262.
msgList.pagingInfo.isEnd / msgList.pagingInfo.offsetisEnd shows whether the list has ended (1 means it has). offset is a cursor string for the next page of messages.
articleTab.msgList.msg / audioTab.msgList.msg / pictextTab.msgList.msgThe same message list split by tab: articles, audio and picture-text posts.
baseResponse.retStatus code of the lookup. 0 appears in this response.

Notes

  • Get username from content.user_name in WeChat MP Article Detail, or from jumpInfo.userName in WeChat Search V2 fetch_search results with business_type=account.
  • username must match gh_ followed by letters, digits or underscores, up to 64 characters.
  • raw is optional and defaults to true. Set it to false for simplified parsing.
  • For a dedicated article list, call WeChat MP Account Articles.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
WeChat MP$0.01 per panggilanJSON
WeChat MP$0.01 per panggilanJSON
WeChat MP$0.01 per panggilanJSON
WeChat MP$0.01 per panggilanJSON
WeChat MP$0.01 per panggilanJSON
WeChat MP$0.01 per panggilanJSON

Panduan:Best WeChat MP API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API WeChat MP Account Profile?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/wechat-mp/v2/account-profile dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API WeChat MP Account Profile?

$0.01 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API WeChat MP Account Profile?

Wajib: username (string). Opsional: raw (boolean). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API WeChat MP Account Profile?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API WeChat MP?

Tidak. WeChat MP Account Profile berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API WeChat MP secara terpisah.