Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

WeChat MP Account Profile

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.

料金
$0.01USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 1 件

プレイグラウンド

入力
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.
出力例
レスポンスoutputs · 24.7 KB · 646 行
[
  {
    "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,

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

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.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
WeChat MP$0.01 / 回JSON
WeChat MP$0.01 / 回JSON
WeChat MP$0.01 / 回JSON
WeChat MP$0.01 / 回JSON
WeChat MP$0.01 / 回JSON
WeChat MP$0.01 / 回JSON

ガイド:Best WeChat MP API in 2026: Pricing Compared

質問

FAQ

WeChat MP Account Profile API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/wechat-mp/v2/account-profile に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

WeChat MP Account Profile API の料金はいくらですか?

1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

WeChat MP Account Profile API はどのパラメータを受け付けますか?

必須: username (string)。 任意: raw (boolean)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

WeChat MP Account Profile API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

WeChat MP の開発者アカウントまたは API key は必要ですか?

いいえ。WeChat MP Account Profile は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。WeChat MP の API アクセスを別途申請する必要はありません。