keywordstringจำเป็น
Search keyword for WeChat Official Account profiles.
https://api.sandbase.ai/v1/api/wechat-search/search-accountSearch 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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
biz and wxid identifiers.owner_name and customer_type.page values for one keyword.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.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword for WeChat Official Account profiles. |
page | integer | No | Page number starting from 1 for WeChat Official Account profile search. |
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
}
]
}
| Field | Meaning |
|---|---|
data[].name | Display name of the Official Account. |
data[].wxid | Account username. The qrcode link also contains this value. |
data[].ghid | Account ID that starts with gh_. |
data[].biz | Account identifier in base64-style text, such as MzAwNzIyMTQ2MA==. |
data[].fans | Follower count for the account. |
data[].avg_top_read / avg_top_zan | Average reads and average likes (zan) for the account's top article. The sample shows 151 reads and 0 likes. |
data[].week_articles | Number of articles the account published in the week. The sample value is 0. |
data[].lastest_publish | Time of the latest publication as a Unix timestamp in seconds. The key is spelled lastest_publish. |
data[].owner_name / customer_type | Name of the entity that registered the account and its type, such as 企业 (enterprise). |
data[].avatar / qrcode | URL of the account's avatar image and URL of its QR code link. |
page starts at 1 and each page returns one account, so increase page to see more matches.name or biz value as the input for profile or article lookups.$0.057143 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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 '{
"page": 1,
"keyword": "人工智能"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordstringจำเป็นSearch keyword for WeChat Official Account profiles.
pageintegerPage number starting from 1 for WeChat Official Account profile search.
ค่าเริ่มต้น: 1
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
WeChat Account SearchAPI นี้ WeChat Search | $0.057143 ต่อการเรียก | JSON |
WeChat Search | $0.114286 ต่อการเรียก | JSON |
WeChat Search | $0.114286 ต่อการเรียก | JSON |
WeChat Search | $0.01 ต่อการเรียก | JSON |
WeChat Search | $0.01 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/wechat-search/search-account โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.057143 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: keyword (string). ตัวเลือก: page (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น WeChat Account Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง WeChat Search API แยกต่างหาก