user_idstringจำเป็น
User ID, can be obtained from the following API: `toutiao/app/user-id`
https://api.sandbase.ai/v1/api/toutiao/app/user-infoGet a Toutiao (Jinri Toutiao) user profile by user ID: name, bio, avatar, follower, following and like counts, and content tabs.
[
{
"data": {
"data": {
"avatar_url": "",
"bg_image": {
"status": 0,
"url": "https://p3-sign.toutiaoimg.com/tos-cn-i-tt/d74fb91f2825491584acf1afb99c8a2d~tplv-noop.webp?_iz=30575&from=sign_default&lk3s=133d4839&x-expires=1791888536&x-signature=Nw7ueNfVVWD39bpG5CL4gwmSs50%3D"
},
"big_avatar_url": "",
"description": "",
"digg_count": 0,
"external_info": {
"app_icon_url": "https://p26.toutiaoimg.com/obj/ies.fe.effect/a752e3bd176b10ea340c65db16e7c91c",
"app_name": "aweme",
"app_schema": "snssdk1128://user/profile/1352838578180211",
"appstore_app_id": 1142110895,
"button_name": "打开抖音关注作者",
"download_url": "https://d.douyin.com/eXBJ/",
"icon_title": "来源于抖音",
"icon_url": "https://p26.toutiaoimg.com/obj/motor-img/9fd81928b2576d559b363fcf77681f5c",
"name": "抖音",
"package_name": "com.ss.android.ugc.aweme"
},
"external_media_type": 0,
"followers_count": 0,
"followings_count": 0,
"gender": 0,
"is_gov_media": false,
"name": "",
"publish_count": 0,
"top_tab": [
{
"disable_common_params": false,
"is_default": false,
"is_native": true,
"load_count": 20,
"pseries_card_count": 0,
"pseries_card_info": "",
"show_name": "小视频",
"total_count": 0,
"type": "external_ies_video",
"url": "/api/feed/profile/v1/?category=external_short_video"
}
],
"user_id": 1352838578180211
},
"errno": 0,
"message": "success"
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns the public profile of a Toutiao (Jinri Toutiao) account: name, bio, avatar and background image URLs, follower, following and like counts, and the content tabs. It needs one input, the numeric user_id of the account.
followers_count and followings_count on a schedule to compare accounts.external_info block.curl -X POST "https://api.sandbase.ai/v1/api/toutiao/app/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "1352838578180211"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | User ID, can be obtained from the following API: toutiao/app/user-id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"avatar_url": "",
"bg_image": {
"status": 0,
"url": "https://p11-sign.toutiaoimg.com/tos-cn-i-tt/d74fb91f2825491584acf1afb99c8a2d~tpl…"
},
"big_avatar_url": "",
"description": "",
"digg_count": 0,
"external_info": {
"app_icon_url": "https://p26.toutiaoimg.com/obj/ies.fe.effect/a752e3bd176b10ea340c65db16e7c91c",
"app_name": "aweme",
"app_schema": "snssdk1128://user/profile/1352838578180211",
"appstore_app_id": 1142110895,
"button_name": "打开抖音关注作者",
"download_url": "https://d.douyin.com/eXBJ/",
"icon_title": "来源于抖音",
"icon_url": "https://p26.toutiaoimg.com/obj/motor-img/9fd81928b2576d559b363fcf77681f5c",
"name": "抖音",
"package_name": "com.ss.android.ugc.aweme"
},
"external_media_type": 0,
"followers_count": 0,
"followings_count": 0,
"gender": 0,
"is_gov_media": false,
"name": ""
},
"errno": 0,
"message": "success"
}
| Field | Meaning |
|---|---|
data.user_id | Numeric ID of the account, the same value you sent in the request. |
data.name / data.description | Display name and bio text of the account. Both can be empty strings, as in the sample response. |
data.avatar_url / data.big_avatar_url / data.bg_image.url | Links to the avatar, a larger avatar and the profile background image. The avatar fields can be empty strings. |
data.followers_count / data.followings_count | Number of followers the account has and number of accounts it follows. |
data.digg_count | Number of likes the account has received. |
data.publish_count | Number of items the account has published. |
data.is_gov_media | Boolean flag that is true when the account is marked as a government media account. |
data.top_tab[].show_name / data.top_tab[].type | Label and internal type of each content tab on the profile. The sample shows a short video tab with type external_ies_video. |
data.top_tab[].url / data.top_tab[].load_count / data.top_tab[].total_count | Relative feed path for the tab, the number of items loaded per page, and the total item count of the tab. |
data.external_info.name / data.external_info.app_schema / data.external_info.download_url | Shows that the account's content comes from another app (here Douyin), with a deep link into that app and its download link. |
user_id from the Toutiao Profile User ID API, which takes a profile link.data.user_id comes back as a number, while the request sends user_id as a string.data.name and data.followers_count before you treat the account as populated.data.top_tab[].url. For single posts, use Toutiao Article Details (App).$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/toutiao/app/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "1352838578180211"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
user_idstringจำเป็นUser ID, can be obtained from the following API: `toutiao/app/user-id`
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"data": {
"avatar_url": "",
"bg_image": {
"status": 0,
"url": "https://p3-sign.toutiaoimg.com/tos-cn-i-tt/d74fb91f2825491584acf1afb99c8a2d~tplv-noop.webp?_iz=30575&from=sign_default&lk3s=133d4839&x-expires=1791888536&x-signature=Nw7ueNfVVWD39bpG5CL4gwmSs50%3D"
},
"big_avatar_url": "",
"description": "",
"digg_count": 0,
"external_info": {
"app_icon_url": "https://p26.toutiaoimg.com/obj/ies.fe.effect/a752e3bd176b10ea340c65db16e7c91c",
"app_name": "aweme",
"app_schema": "snssdk1128://user/profile/1352838578180211",
"appstore_app_id": 1142110895,
"button_name": "打开抖音关注作者",
"download_url": "https://d.douyin.com/eXBJ/",
"icon_title": "来源于抖音",
"icon_url": "https://p26.toutiaoimg.com/obj/motor-img/9fd81928b2576d559b363fcf77681f5c",
"name": "抖音",
"package_name": "com.ss.android.ugc.aweme"
},
"external_media_type": 0,
"followers_count": 0,
"followings_count": 0,
"gender": 0,
"is_gov_media": false,
"name": "",
"publish_count": 0,
"top_tab": [
{
"disable_common_params": false,
"is_default": false,
"is_native": true,
"load_count": 20,
"pseries_card_count": 0,
"pseries_card_info": "",
"show_name": "小视频",
"total_count": 0,
"type": "external_ies_video",
"url": "/api/feed/profile/v1/?category=external_short_video"
}
],
"user_id": 1352838578180211
},
"errno": 0,
"message": "success"
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Toutiao User ProfileAPI นี้ Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.071429 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/toutiao/app/user-info โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: user_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Toutiao User Profile ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Toutiao API แยกต่างหาก