获取公众号资料页/Get WeChat MP Account Profile

WeChat MPapi

About

获取公众号资料页/Get WeChat MP Account Profile

Documentation

获取公众号资料页/Get WeChat MP Account Profile

[中文]

用途:

  • gh_username,返回公众号资料页:名称 / 头像 / 简介 / 认证主体类型等。
  • 部分账号(如示例号)字段稀疏,nick_name / signature / head_url 可能为 null
  • 价格:0.01$/次
  • ⏱️ 由于微信服务器原因,本接口响应较慢,请将客户端请求超时(timeout)设置为 30 秒;timeout 设置过小会造成已扣费但收不到响应的情况。

参数:

  • username: 公众号 gh_usernamegh_…)。来源:文章详情 content.user_name、或微信搜索 V2 fetch_search(business_type=account)结果的 jumpInfo.userName。示例 gh_363b924965e9
  • raw: 可选,默认 True。True=原始;False=精简解析。

返回:

  • 公众号资料页信息

响应结构与 JSON Path:

raw=false(精简解析,snake_case):

  • 公众号 username(gh_…): $.data.user_name
  • 昵称(可能为 null): $.data.nick_name
  • 用户角色: $.data.user_role
  • 服务类型(订阅号 / 服务号代码): $.data.service_type
  • 签名 / 简介(可能为 null): $.data.signature
  • 头像(可能为 null): $.data.head_url
  • 封禁类型(0=正常): $.data.ban_type

raw=true(原始,本接口默认):

  • data 为完整原始响应(几十个顶层字段),精简版字段对应其中嵌套位置:
    • 基础信息块: $.data.baseInfo(昵称 / 头像 / 简介等原始来源)
    • 账号信息: $.data.accountInfo(含 userName 等)
    • 统计信息: $.data.statInfo
    • 关联视频号: $.data.videoFinderInfo
    • 服务信息(自定义菜单原始来源): $.data.serviceInfo
    • 文章 Tab / 消息列表: $.data.articleTab / $.data.msgList
    • IP 属地: $.data.ipwording
    • 其余: liveInfo / nameCard / gender / setting / funcFlag

[English]

Purpose:

  • Pass a gh_username to get the official account profile: name / avatar / description / verification entity type, etc.
  • Some accounts (like the example) have sparse fields; nick_name / signature / head_url may be null.
  • Price: $0.01 per request
  • ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response.

Parameters:

  • username: 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
  • raw: Optional, default True. True=raw; False=simplified parsing.

Return:

  • Official account profile info

Response structure & JSON Path:

raw=false (simplified, snake_case):

  • Account username (gh_…): $.data.user_name
  • Nickname (may be null): $.data.nick_name
  • User role: $.data.user_role
  • Service type (subscription / service account code): $.data.service_type
  • Signature / description (may be null): $.data.signature
  • Avatar (may be null): $.data.head_url
  • Ban type (0=normal): $.data.ban_type

raw=true (raw, default for this endpoint):

  • data is the full raw response (dozens of top-level fields); simplified fields map to nested locations:
    • Base info block: $.data.baseInfo (raw source of nickname / avatar / description)
    • Account info: $.data.accountInfo (with userName etc.)
    • Stats info: $.data.statInfo
    • Linked Channels account: $.data.videoFinderInfo
    • Service info (raw source of custom menu): $.data.serviceInfo
    • Article tab / message list: $.data.articleTab / $.data.msgList
    • IP region: $.data.ipwording
    • Others: liveInfo / nameCard / gender / setting / funcFlag etc.

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Try 获取公众号资料页/Get WeChat MP Account Profile

Test this model in the Sandbase Playground with your own prompts.

Open in Playground

Related Models