Youku APIs - User Profile (V1)
prod-global
GET
/api/youku/get-user-detail/v1
This API retrieves detailed profile information of a specific Youku creator/user, including user ID, username, avatar, signature/description, follower count, following count, total videos, and verification status.
Typical use cases:
- Analyzing creator influence and audience size.
- Monitoring account growth and verification status.
- Fetching basic user info for social CRM.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | query | string | Yes | TOKEN |
uid | query | string | Yes | The unique identifier for the user. |
Code Samples
💡 Environment Note
Default samples use https://api.justoneapi.com (prod-global). For users in Mainland China, it is recommended to replace it with http://47.117.133.51:30015 (prod-cn) for better performance. See Environment Guide.
bash
# Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
curl -X GET "https://api.justoneapi.com/api/youku/get-user-detail/v1?token=YOUR_API_KEY&uid=VALUE"text
I want to use the "User Profile (V1)" API from Just One API.
API Endpoint: https://api.justoneapi.com/api/youku/get-user-detail/v1
HTTP Method: GET
Authentication: Append "?token=YOUR_API_KEY" to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/youku-apis/user-profile-v1-en.json
Parameters:
- token (query): TOKEN (Required)
- uid (query): The unique identifier for the user. (Required)
Return format: JSON
Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set request timeout to at least 60 seconds.
3. Business Code Reference:
- 0: Success
- 100: Invalid or Inactive Token
- 301: Collection Failed. Please Retry.
- 302: Rate Limit Exceeded
- 303: Daily Quota Exceeded
- 400: Invalid Parameters
- 500: Internal Server Error
- 600: Permission Denied
- 601: Insufficient Balance
Please help me write a script in my preferred programming language to call this API and handle the response.python
# Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
import requests
url = "https://api.justoneapi.com/api/youku/get-user-detail/v1?token=YOUR_API_KEY&uid=VALUE"
response = requests.get(url)
print(response.json())js
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
const response = await fetch("https://api.justoneapi.com/api/youku/get-user-detail/v1?token=YOUR_API_KEY&uid=VALUE", {
method: "GET"
});
const data = await response.json();
console.log(data);java
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.justoneapi.com/api/youku/get-user-detail/v1?token=YOUR_API_KEY&uid=VALUE"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}go
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
client := &http.Client{}
url := "https://api.justoneapi.com/api/youku/get-user-detail/v1?token=YOUR_API_KEY&uid=VALUE"
req, _ := http.NewRequest("GET", url, nil)
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}php
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.justoneapi.com/api/youku/get-user-detail/v1?token=YOUR_API_KEY&uid=VALUE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
curl_close($ch);
echo $response;Responses
json
{
"code": 0,
"data": {
"componentList": [
{
"componentId": "h5-profile-header",
"componentName": "页头",
"state": "header",
"logInfo": {},
"type": "YW_ZPD_HEADER",
"id": "25629_0",
"dataNode": [
{
"data": {
"praiseInfo": {
"link": "https://market.m.taobao.com/app/syk/sv-rax/pages/like-list?wh_weex=true&ykwx_loading_style=4",
"title": "53421"
},
"birthday": 466185600,
"gender": 1,
"likeNumFormat": "5.3万",
"buttonColor": "#FFFFFF",
"uidEncode": "UMTM3NDM0NTc2OA==",
"allowPgcFollowRec": false,
"ytid": 343586442,
"likeNum": 53421,
"uid": 39471743,
"subTitle": {
"descx": "大鱼号认证用户",
"icon": "https://r1.ykimg.com/05100000591AF15AADC0B0788F0A74AC",
"desc": "大鱼号认证用户"
},
"zpdBackGroundPicture": "https://img.alicdn.com/imgextra/i4/O1CN011XyR9l1iLsJGvYKiT_!!6000000004397-2-tps-1125-675.png",
"customChangeBgTitle": "点击定制我的个性背景~",
"followerInfo": {
"link": "https://market.m.taobao.com/app/syk/sv-rax/pages/subfans?wh_weex=true&type=fans&pgcid=39471743&name=...",
"title": "13079"
},
"followingInfoV2": {
"action": {
"contentValue": null,
"extra": null,
"reportConfig": null,
"report": {
"reportDataOpt": null,
"spmD": "sub",
"trackInfo": {
"drawerid": "20752",
"bizKey": "PGC_H5",
"servertime": 1773064800638,
"pagestate": 1,
"cms_req_id": "2133e09617730648006327306e10b3"
},
"scmD": "url_YW_ZPD_FOLLOW",
"scmC": "20752",
"spmC": "tab",
"arg1": null,
"spmAB": "miniapp.fanssub",
"index": 0,
"pageName": "page_miniapp",
"scmAB": "20140689.rcmd",
"utParam": null
},
"callback": null,
"type": "JUMP_TO_URL",
"value": "youku://page/node?bizContext=%7B%22pgcpgcid%22%3A%22UMTU3ODg2OTcy%22%2C%22pgcpgcNickName%22%3A%22%E7...",
"contentType": null,
"reportDisabled": false
},
"title": 441
},
"live": {
"living": 0
},
"trackInfo": {
"usertype": 1,
"pre_source_from": "shareH5"
},
"followingInfo": {
"link": "https://market.m.taobao.com/app/syk/sv-rax/pages/subfans?wh_weex=true&type=sub&pgcid=39471743&name=缺...",
"title": 441
},
"subTitle2": {
"descx": "大鱼号认证作者",
"desc": "大鱼号认证作者"
},
"followFeedback": {
"duration": 2,
"img": "https://img.alicdn.com/tfs/TB10vwvMbj1gK0jSZFuXXcrHpXa-114-123.png",
"text": "我也爱你~~"
},
"nickName": "缺觉不困",
"gradient": [
"#37E8FF"
],
"followerInfoV2": {
"action": {
"contentValue": null,
"extra": null,
"reportConfig": null,
"report": {
"reportDataOpt": null,
"spmD": "fans",
"trackInfo": {
"drawerid": "20752",
"bizKey": "PGC_H5",
"servertime": 1773064800638,
"pagestate": 1,
"cms_req_id": "2133e09617730648006327306e10b3"
},
"scmD": "url_YW_ZPD_FOLLOWER",
"scmC": "20752",
"spmC": "tab",
"arg1": null,
"spmAB": "miniapp.fanssub",
"index": 0,
"pageName": "page_miniapp",
"scmAB": "20140689.rcmd",
"utParam": null
},
"callback": null,
"type": "JUMP_TO_URL",
"value": "youku://page/node?bizContext=%7B%22pgcpgcid%22%3A%22UMTU3ODg2OTcy%22%2C%22pgcpgcNickName%22%3A%22%E7...",
"contentType": null,
"reportDisabled": false
},
"title": "13079"
},
"statusx": "ZHENG_CHANG",
"avatar": "https://m.ykimg.com/0130391F45562EE42D0D4E025A4A7F26DD3478-802E-259A-EFDA-E78645CC9534",
"followingNum": 441,
"follow": {
"isFollow": false,
"id": "UMTU3ODg2OTcy",
"title": "关注",
"animation": false
},
"followerNumFormat": "1.3万",
"zpdBackGroundDarkPicture": "https://img.alicdn.com/imgextra/i2/O1CN01nvEilH1Sa2gtCrG1k_!!6000000002262-0-tps-1125-675.jpg",
"extend": {
"enableEdit": 1,
"privateMessage": 1
},
"followEdBtnTitle": "已关注",
"isStar": 0,
"followerNum": 13079,
"customBg": false,
"circle": {
"titlex": 0,
"action": {
"contentValue": null,
"extra": null,
"reportConfig": null,
"report": {
"reportDataOpt": null,
"spmD": "zj1_1",
"trackInfo": {
"drawerid": "20752",
"bizKey": "PGC_H5",
"servertime": 1773064800638,
"pagestate": 1,
"cms_req_id": "2133e09617730648006327306e10b3"
},
"scmD": "url_YW_ZPD_FOLLOW_CIRCLE",
"scmC": "20752",
"spmC": "drawer1",
"arg1": null,
"spmAB": "a2h0j.personalchannel",
"index": 0,
"pageName": "page_miniapp",
"scmAB": "20140689.rcmd",
"utParam": null
},
"callback": null,
"type": "JUMP_TO_URL",
"value": "youku://page/node?bizContext=%7B%22pgcpgcid%22%3A%22UMTU3ODg2OTcy%22%2C%22pgcpgcNickName%22%3A%22%E7...",
"contentType": null,
"reportDisabled": false
},
"title": "10"
},
"privateMessage": {
"link": "youku://messageChat?uid=343586442&from=presonChannel"
},
"followingNumFormat": "441",
"age": "80后",
"status": "ZHENG_CHANG",
"atmospherex": {
"icon": "https://gw.alicdn.com/imgextra/i4/O1CN01tx3Yvy1NwsEpQMYY1_!!6000000001635-2-tps-318-324.png"
}
},
"moduleType": "",
"id": "null",
"type": null,
"logInfo": {}
}
],
"moduleList": [
{
"moduleType": "",
"dataNode": []
}
]
}
],
"pageData": {
"more": false,
"pageNo": "1",
"shareInfo": {
"img": "https://image.uc.cn/o/wemedia/s/upload/1705221039719ab7f94f868031475e1cffa05d6fb4;,3,jpegx;3,310x",
"link": "https://m.youku.com/profile?uid=UMTU3ODg2OTcy",
"describe": "快来看TA的精彩视频吧",
"title": "缺觉不困的优酷主页"
},
"nextSession": "{\"subIndex\":13,\"trackInfo\":{},\"spmA\":\"a2h0j\",\"level\":1,\"spmC\":\"drawer2\",\"spmB\":\"personalchannel\",\"in...",
"nickName": "缺觉不困",
"avatar": "https://m.ykimg.com/0130391F45562EE42D0D4E025A4A7F26DD3478-802E-259A-EFDA-E78645CC9534",
"spmA": "a2h0j",
"spmB": "personalchannel",
"spmAB": "a2h0j.personalchannel",
"navState": "video"
}
}
}💡 Note: For list data, the example shows only 1-2 items for simplicity. The actual count depends on the API response.
