当前浏览的是 v7 预览版文档(v7 尚未正式发布,API 可能随版本调整)。本页是 v7 新增内容,去 v6 正式版文档首页
@ikenxuan/amagi

用户主页信息

只认 `sec_uid`;手里只有抖音号时先用 `guestUserInfo` 换。

GET
/api/douyin/fetch_user_info

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

sec_uid*string

用户 sec_uid,主页链接里那段

Length1 <= length

Response Body

application/json

application/json

curl -X GET "https://example.com/api/douyin/fetch_user_info?sec_uid=string"
{  "success": true,  "data": {    "extra": {      "fatal_item_ids": [        null      ],      "logid": "string",      "now": 0    },    "log_pb": {      "impr_id": "string"    },    "status_code": 0,    "status_msg": null,    "user": {      "account_cert_info": "string",      "apple_account": 0,      "avatar_168x168": {        "height": 0,        "uri": "string",        "url_list": [          "string"        ],        "width": 0      },      "avatar_300x300": {        "height": 0,        "uri": "string",        "url_list": [          "string"        ],        "width": 0      },      "avatar_larger": {        "height": 0,        "uri": "string",        "url_list": [          "string"        ],        "width": 0      },      "avatar_medium": {        "height": 0,        "uri": "string",        "url_list": [          "string"        ],        "width": 0      },      "avatar_thumb": {        "height": 0,        "uri": "string",        "url_list": [          "string"        ],        "width": 0      },      "aweme_count": 0,      "aweme_count_correction_threshold": 0,      "birthday_hide_level": 0,      "can_set_item_cover": true,      "can_show_group_card": 0,      "card_entries": [        {          "card_data": "string",          "goto_url": "string",          "icon_dark": {            "uri": "string",            "url_list": [              "string"            ]          },          "icon_light": {            "uri": "string",            "url_list": [              "string"            ]          },          "sub_title": "string",          "title": "string",          "type": 0        }      ],      "city": "string",      "close_friend_type": 0,      "commerce_info": {        "challenge_list": null,        "head_image_list": null,        "offline_info_list": [          null        ],        "smart_phone_list": null,        "task_list": null      },      "commerce_user_info": {        "ad_revenue_rits": null,        "has_ads_entry": true,        "show_star_atlas_cooperation": true,        "star_atlas": 0      },      "commerce_user_level": 0,      "country": "string",      "cover_and_head_image_info": {        "cover_list": null,        "profile_cover_list": [          {            "cover_url": {              "uri": "string",              "url_list": [                "string"              ]            },            "dark_cover_color": "string",            "light_cover_color": "string"          }        ]      },      "cover_colour": "string",      "cover_url": [        {          "uri": "string",          "url_list": [            "string"          ]        }      ],      "custom_verify": "string",      "disable_manual_refresh": 0,      "district": "string",      "dog_card_info": {        "dog_card_id": 0,        "dog_card_text": "string",        "rank": 0,        "rank_schema": "string",        "rank_type": "string"      },      "dongtai_count": 0,      "dynamic_cover": {},      "elfemoji_status": 0,      "enable_ai_double": 0,      "enable_wish": true,      "enterprise_user_info": "string",      "enterprise_verify_reason": "string",      "evaluation_count": 0,      "familiar_confidence": 0,      "favorite_permission": 0,      "favoriting_count": 0,      "follow_guide": true,      "follow_status": 0,      "follower_count": 0,      "follower_request_status": 0,      "follower_status": 0,      "following_count": 0,      "forward_count": 0,      "gender": 0,      "general_permission": {        "fans_page_toast": 0,        "following_follower_list_toast": 0,        "is_hit_active_fans_grayed": true      },      "has_e_account_role": true,      "has_subscription": true,      "hide_request_update": 0,      "im_primary_role_id": 0,      "im_role_ids": [        0      ],      "image_send_exempt": true,      "ins_id": "string",      "ip_location": "string",      "is_activity_user": true,      "is_ban": true,      "is_block": true,      "is_blocked": true,      "is_effect_artist": true,      "is_gov_media_vip": true,      "is_im_oversea_user": 0,      "is_mix_user": true,      "is_not_show": true,      "is_series_user": true,      "is_sharing_profile_user": 0,      "is_star": true,      "is_top": 0,      "iso_country_code": "string",      "life_story_block": {        "life_story_block": true      },      "live_commerce": true,      "live_status": 0,      "mate_add_permission": 0,      "mate_relation": {        "mate_apply_forward": 0,        "mate_apply_reverse": 0,        "mate_status": 0      },      "max_follower_count": 0,      "message_chat_entry": true,      "mix_count": 0,      "mplatform_followers_count": 0,      "new_friend_type": 0,      "nickname": "string",      "original_musician": {        "digg_count": 0,        "music_count": 0,        "music_used_count": 0      },      "pigeon_daren_status": "string",      "pigeon_daren_warn_tag": "string",      "profile_component_disabled": [        "string"      ],      "profile_mob_params": [        {          "event_key": "string",          "mob_params": "string"        }      ],      "profile_show": {        "identify_auth_infos": null      },      "profile_tab_info": {        "profile_landing_tab": 0,        "profile_tab_list": [          null        ],        "profile_tab_list_v2": [          {            "id": 0,            "name_en": "string",            "sub_tabs": null          }        ]      },      "profile_tab_type": 0,      "province": "string",      "public_collects_count": 0,      "publish_landing_tab": 0,      "r_fans_group_info": {},      "recommend_reason_relation": "string",      "recommend_user_reason_source": 0,      "risk_notice_text": "string",      "role_id": "string",      "room_data": "string",      "room_id": 0,      "room_id_str": "string",      "school_name": "string",      "sec_uid": "string",      "secret": 0,      "series_count": 0,      "share_info": {        "bool_persist": 0,        "life_share_ext": "string",        "share_desc": "string",        "share_image_url": {          "uri": "string",          "url_list": [            "string"          ]        },        "share_qrcode_url": {          "uri": "string",          "url_list": [            "string"          ]        },        "share_title": "string",        "share_url": "string",        "share_weibo_desc": "string"      },      "short_id": "string",      "show_favorite_list": true,      "show_subscription": true,      "signature": "string",      "signature_display_lines": 0,      "signature_extra": [        {          "end": 0,          "hashtag_id": "string",          "hashtag_name": "string",          "is_commerce": true,          "sec_uid": "string",          "start": 0,          "type": 0,          "user_id": "string"        }      ],      "signature_language": "string",      "social_real_relation_type": 0,      "special_follow_status": 0,      "special_state_info": {        "content": "string",        "special_state": 0,        "title": "string"      },      "store_region": "string",      "story_tab_empty": true,      "sync_to_toutiao": 0,      "tab_settings": {        "private_tab": {          "private_tab_style": 0,          "show_private_tab": true        }      },      "total_favorited": 0,      "total_favorited_correction_threshold": 0,      "twitter_id": "string",      "twitter_name": "string",      "uid": "string",      "unique_id": "string",      "urge_detail": {        "ctl_map": "string",        "user_urged": 0      },      "use_diverse_digg_style": true,      "user_age": 0,      "user_not_see": 0,      "user_not_show": 0,      "user_permissions": [        {          "key": "string",          "value": "string"        }      ],      "verification_type": 0,      "video_cover": {},      "video_icon": {        "height": 0,        "uri": "string",        "url_list": [          null        ],        "width": 0      },      "watch_status": true,      "white_cover_url": [        {          "uri": "string",          "url_list": [            "string"          ]        }      ],      "with_commerce_enterprise_tab_entry": true,      "with_commerce_entry": true,      "with_fusion_shop_entry": true,      "with_new_goods": true,      "youtube_channel_id": "string",      "youtube_channel_title": "string"    }  },  "error": {    "kind": "validation",    "code": "string",    "message": "string",    "retryable": true,    "platform": {      "code": "string",      "message": "string"    },    "http": {      "status": 0,      "statusText": "string"    },    "issues": [      {        "path": "string",        "message": "string",        "received": null      }    ]  },  "message": "string",  "meta": {    "requestId": "string",    "clientId": "string",    "platform": "douyin",    "endpoint": "string",    "durationMs": 0,    "attempts": 0,    "trace": [      {        "url": "string",        "method": "string",        "status": 0,        "durationMs": 0,        "reason": "initial",        "retryOf": "string"      }    ]  },  "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}