keywordstringจำเป็น
Search keyword used to resolve a WeChat Channels account id.
https://api.sandbase.ai/v1/api/wechat-channels/search-accountLooks up a specific WeChat Channels account identity by keyword. Use it to resolve a creator name or account term to the identifier required by account-video queries.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns one WeChat Channels account that matches a search keyword. The response has the account nickname, signature, avatar images, verification info and the account username identifier. It needs one input, keyword.
username value needed by account-video queries.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/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 used to resolve a WeChat Channels account id. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"auth_info": {
"auth_icon_url": "",
"auth_profession": ""
},
"cover_url": "https://wx.qlogo.cn/finderhead/aXUpZVUYfjyhnicpkp3l5MvI4epIAk9NjzFnjia07kUZT1H2u…",
"head_url": "https://wx.qlogo.cn/finderhead/aXUpZVUYfjyhnicpkp3l5MvI4epIAk9NjzFnjia07kUZT1H2u…",
"nickname": "人工智能",
"signature": "❤️ 聚集人工…",
"username": "v2_060000231003b20faec8c7e48d1dc6d5c802e83db0770775bb566d2b495e6aae711d6d56bd04@…"
}
}
| Field | Meaning |
|---|---|
data.username | Account identifier string that ends in @finder. Pass it to account-video queries as the account id. |
data.nickname | Display name of the matched account. |
data.signature | Profile bio text of the account. It can contain line breaks (\n) and emoji. |
data.head_url / data.cover_url | Image URLs for the account avatar and cover. In this response both point to the same image. |
data.auth_info.auth_profession | Verified profession label of the account. It is an empty string when the account has none. |
data.auth_info.auth_icon_url | URL of the verification badge icon. It is an empty string when the account has no badge. |
data, not a list, so there is no pagination.data.username value, including the @finder suffix, into the next call.username to list the account's videos.$0.071429 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/search-account" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "人工智能"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordstringจำเป็นSearch keyword used to resolve a WeChat Channels account id.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
WeChat Channels | $0.071429 ต่อการเรียก | JSON |
WeChat Channels | $0.071429 ต่อการเรียก | JSON |
WeChat Channels | $0.021429 ต่อการเรียก | JSON |
WeChat Channels | $0.114286 ต่อการเรียก | JSON |
WeChat Channels | $0.01 ต่อการเรียก | JSON |
WeChat Channels | $0.01 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/wechat-channels/search-account โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.071429 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: keyword (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น WeChat Channels Account Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง WeChat Channels API แยกต่างหาก