Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

WeChat Account Search

Documentación de la API
https://api.sandbase.ai/v1/api/wechat-search/search-account

Search WeChat Official Accounts by keyword with page-number pagination and one result per page. Use it to find an account by name or related term before profile or article lookup.

Precio
$0.057143USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
Search keyword for WeChat Official Account profiles.
Page number starting from 1 for WeChat Official Account profile search.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

WeChat Account Search API

This API searches WeChat Official Accounts by keyword and returns matching account profiles. It needs a keyword and takes an optional page number. Each page holds one result.

Use cases

  • Find the Official Account for a brand or topic name and get its biz and wxid identifiers.
  • Compare follower counts and average read counts across accounts that match a topic keyword.
  • Check which company owns an Official Account by reading owner_name and customer_type.
  • Build a list of accounts in a niche by stepping through page values for one keyword.

Request

curl -X POST "https://api.sandbase.ai/v1/api/wechat-search/search-account" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "人工智能"}'

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

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword for WeChat Official Account profiles.
pageintegerNoPage number starting from 1 for WeChat Official Account profile search.

Example response

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

{
  "data": [
    {
      "avatar": "https://wx.qlogo.cn/mmhead/Q3auHgzwzM6B7P7K0g311MAbOHz2d3DqwiaZRPyWlSNK1HU7iaB6F…",
      "avg_top_read": 151,
      "avg_top_zan": 0,
      "biz": "MzAwNzIyMTQ2MA==",
      "customer_type": "企业",
      "fans": 36143,
      "ghid": "gh_143f18f53985",
      "lastest_publish": 1693393200,
      "name": "人工智能",
      "owner_name": "郑州夺蓝网络技术有限公司",
      "qrcode": "https://open.weixin.qq.com/qr/code?username=worldofai",
      "week_articles": 0
    }
  ]
}

Response fields

FieldMeaning
data[].nameDisplay name of the Official Account.
data[].wxidAccount username. The qrcode link also contains this value.
data[].ghidAccount ID that starts with gh_.
data[].bizAccount identifier in base64-style text, such as MzAwNzIyMTQ2MA==.
data[].fansFollower count for the account.
data[].avg_top_read / avg_top_zanAverage reads and average likes (zan) for the account's top article. The sample shows 151 reads and 0 likes.
data[].week_articlesNumber of articles the account published in the week. The sample value is 0.
data[].lastest_publishTime of the latest publication as a Unix timestamp in seconds. The key is spelled lastest_publish.
data[].owner_name / customer_typeName of the entity that registered the account and its type, such as 企业 (enterprise).
data[].avatar / qrcodeURL of the account's avatar image and URL of its QR code link.

Notes

  • page starts at 1 and each page returns one account, so increase page to see more matches.
  • Use the returned name or biz value as the input for profile or article lookups.
  • To search articles by keyword instead, call WeChat Article Search.

Pricing

$0.057143 per successful call. Failed calls are not charged.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
WeChat Search$0.057143 por llamadaJSON
WeChat Search$0.114286 por llamadaJSON
WeChat Search$0.114286 por llamadaJSON
WeChat Search$0.01 por llamadaJSON
WeChat Search$0.01 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de WeChat Account Search?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/wechat-search/search-account con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de WeChat Account Search?

$0.057143 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de WeChat Account Search?

Requeridos: keyword (string). Opcionales: page (integer). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de WeChat Account Search?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de WeChat Search?

No. WeChat Account Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de WeChat Search por separado.