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.
開始建置
具備統一驗證與用量追蹤的平台 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 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_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 | 每次呼叫 $0.001 | JSON |
Pipixia | 每次呼叫 $0.001 | JSON |
Pipixia | 每次呼叫 $0.001 | JSON |
Pipixia | 每次呼叫 $0.001 | JSON |
Pipixia | 每次呼叫 $0.001 | JSON |
Pipixia | 每次呼叫 $0.001 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/pipixia/app/user-info。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:user_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Pipixia User Information 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Pipixia API 存取權。