user_idstringจำเป็น
AKA user id, can be obtained from the share link.
https://api.sandbase.ai/v1/api/pipixia/app/user-infoRetrieves public profile details for a Pipixia user, including avatar image URLs. Takes a user identifier obtained from a share link.
[
{
"data": {
"message": "no_login",
"prompt": "账号授权过期,请重新登录",
"status_code": 11002,
"time": 1787218850783
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
This API returns the public profile of a Pipixia user, including name-related text, location, follower counts and avatar image URLs. It needs one input: the user_id, which you can take from a Pipixia share link.
followers_count and like_count over time to compare accounts.profile_ban is set before you show its content.curl -X POST "https://api.sandbase.ai/v1/api/pipixia/app/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "3602444694069495"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | AKA user id, can be obtained from the share link. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"profile_ban": true,
"user_info": {
"achievements": [],
"age": "36岁",
"article_count": 0,
"authentication": null,
"author_ecom_info": null,
"author_info": {
"AuthorStatus": 1,
"author_item_type": 1,
"author_type": 104007473,
"level": 0,
"origin_status": 0,
"owner": "script",
"recommend_tag": "",
"tags": []
},
"avatar": {
"download_list": [
{
"url": "https://p9-ppx-sign.byteimg.com/tos-cn-i-8gu37r9deh/ba804bc702db4d568d93d2ef2a8f…"
}
],
"height": 200,
"is_gif": false,
"uri": "tos-cn-i-8gu37r9deh/ba804bc702db4d568d93d2ef2a8f3c51",
"url_list": [
{
"url": "https://p9-ppx-sign.byteimg.com/tos-cn-i-8gu37r9deh/ba804bc702db4d568d93d2ef2a8f…"
}
],
"width": 200
},
"background": {
"download_list": [],
"height": 0,
"is_gif": false,
"uri": "",
"url_list": [],
"width": 0
},
"birthday": null,
"broadcast_info": null,
"certify_info": null,
"city": "武汉"
}
},
"message": "success",
"prompt": "",
"status_code": 0,
"time": 1793691716469
}
| Field | Meaning |
|---|---|
data.user_info.id_str | The user ID as a string. It matches the user_id you sent. Use this form instead of the numeric data.user_info.id to avoid precision loss. |
data.user_info.description | The bio text the user wrote on their profile. |
data.user_info.followers_count / followings_count | How many accounts follow this user, and how many accounts this user follows. |
data.user_info.like_count | Total likes shown on the profile. |
data.user_info.city / city_name / age / horoscope | Location, age and star sign text shown on the profile. In the sample these are Chinese strings, such as 36岁 for age. |
data.user_info.create_time | Account creation time as a Unix timestamp in seconds. |
data.user_info.avatar.url_list[].url | Signed URL of the 200 by 200 avatar image. The width and height fields sit next to it. |
data.user_info.large_avatar.url_list[].url | Signed URL of the 600 by 600 avatar image. |
data.user_info.is_default_avatar / is_default_name | Show whether the user still has the default avatar or the default name. |
data.profile_ban | Boolean flag about the profile ban state. It is true in the sample response. |
user_id as a string. Take it from the user's Pipixia share link. If you only have a short link, try Pipixia Short URL Conversion first.null or empty, such as authentication, birthday and background. Handle these cases in your code.x-expires query value and a signature. Save the image soon after you fetch it.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/pipixia/app/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "example"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
user_idstringจำเป็นAKA user id, can be obtained from the share link.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"message": "no_login",
"prompt": "账号授权过期,请重新登录",
"status_code": 11002,
"time": 1787218850783
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Pipixia User InformationAPI นี้ Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/pipixia/app/user-info โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: user_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Pipixia User Information ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Pipixia API แยกต่างหาก