namestringจำเป็น
WeChat Official Account name used to fetch basic profile information.
https://api.sandbase.ai/v1/api/wechat-mp/account-basic-infoGet basic profile information for a WeChat Official Account by account name. Use it to identify or enrich a known account before article, ownership, or publishing research.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the basic public profile of a WeChat Official Account: its name, description, avatar, account type, WeChat ID and biz identifier. It needs one input, the account name in name.
wxid before further research.biz value of an account so you can match it against article links.curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/account-basic-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "人民日报"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | WeChat Official Account name used to fetch basic profile information. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"avatar": "http://mmbiz.qpic.cn/mmbiz_png/xrFYciaHL08D1hiaVU0brP9YwQH1wFm9D9AG7oAVaNE8RzGia…",
"biz": "MjM5MjAxNDM4MA==",
"desc": "参与、沟通、记录时代。",
"name": "人民日报",
"type": "订阅号",
"wxid": "rmrbwx"
}
}
| Field | Meaning |
|---|---|
data.name | The display name of the Official Account. |
data.wxid | The WeChat ID of the account, for example rmrbwx. |
data.biz | The biz identifier of the account. The value looks like a Base64 string, for example MjM5MjAxNDM4MA==. |
data.desc | The account's profile description, as the account owner wrote it. |
data.type | The account type as a text label. The sample value 订阅号 means subscription account. |
data.avatar | URL of the account's avatar image. |
name. The sample request uses 人民日报.biz and wxid from the response to identify the account in later calls.$0.142857 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/account-basic-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "人民日报"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
namestringจำเป็นWeChat Official Account name used to fetch basic profile information.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
WeChat MP Account Basic InfoAPI นี้ WeChat MP | $0.142857 ต่อการเรียก | JSON |
WeChat MP | $0.042857 ต่อการเรียก | JSON |
WeChat MP | $0.028571 ต่อการเรียก | JSON |
WeChat MP | $0.021429 ต่อการเรียก | JSON |
WeChat MP | $0.021429 ต่อการเรียก | JSON |
WeChat MP | $0.014286 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/wechat-mp/account-basic-info โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.142857 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: name (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น WeChat MP Account Basic Info ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง WeChat MP API แยกต่างหาก