All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
douyinLiveRoomApiV1DouyinWebDouyinLiveRoomGet | GET /api/v1/douyin/web/douyin_live_room | 提取直播间弹幕/Extract live room danmaku |
douyinLiveRoomApiV1DouyinWebDouyinLiveRoomGet_0 | GET /api/v1/douyin/web/douyin_live_room | 提取直播间弹幕/Extract live room danmaku |
fetchBillboardCategoriesApiV1DouyinWebFetchBillboardCategoriesGet | GET /api/v1/douyin/web/fetch_billboard_categories | 抖音热点分类/Douyin Billboard Categories |
fetchBillboardCategoriesApiV1DouyinWebFetchBillboardCategoriesGet_0 | GET /api/v1/douyin/web/fetch_billboard_categories | 抖音热点分类/Douyin Billboard Categories |
fetchBillboardRelatedVideosApiV1DouyinWebFetchBillboardRelatedVideosGet | GET /api/v1/douyin/web/fetch_billboard_related_videos | 抖音榜单相关视频/Douyin Billboard Related Videos |
fetchBillboardRelatedVideosApiV1DouyinWebFetchBillboardRelatedVideosGet_0 | GET /api/v1/douyin/web/fetch_billboard_related_videos | 抖音榜单相关视频/Douyin Billboard Related Videos |
fetchCartoonAwemeApiV1DouyinWebFetchCartoonAwemeGet | GET /api/v1/douyin/web/fetch_cartoon_aweme | 二次元作品推荐/Knowledge Video |
fetchCartoonAwemeApiV1DouyinWebFetchCartoonAwemeGet_0 | GET /api/v1/douyin/web/fetch_cartoon_aweme | 二次元作品推荐/Knowledge Video |
fetchCartoonAwemeApiV1DouyinWebFetchFoodAwemeGet | GET /api/v1/douyin/web/fetch_food_aweme | 美食作品推荐/Knowledge Video |
fetchCartoonAwemeApiV1DouyinWebFetchFoodAwemeGet_0 | GET /api/v1/douyin/web/fetch_food_aweme | 美食作品推荐/Knowledge Video |
fetchCartoonAwemeApiV1DouyinWebFetchMusicAwemeGet | GET /api/v1/douyin/web/fetch_music_aweme | 音乐作品推荐/Knowledge Video |
fetchCartoonAwemeApiV1DouyinWebFetchMusicAwemeGet_0 | GET /api/v1/douyin/web/fetch_music_aweme | 音乐作品推荐/Knowledge Video |
fetchChallengePostsApiV1DouyinWebFetchChallengePostsPost | POST /api/v1/douyin/web/fetch_challenge_posts | 话题作品/Challenge Posts |
fetchChallengePostsApiV1DouyinWebFetchChallengePostsPost_0 | POST /api/v1/douyin/web/fetch_challenge_posts | 话题作品/Challenge Posts |
fetchCityHotListApiV1DouyinWebFetchCityHotListGet | GET /api/v1/douyin/web/fetch_city_hot_list | 抖音同城热点榜单/Douyin City Hot List |
fetchCityHotListApiV1DouyinWebFetchCityHotListGet_0 | GET /api/v1/douyin/web/fetch_city_hot_list | 抖音同城热点榜单/Douyin City Hot List |
fetchCityListApiV1DouyinWebFetchCityListGet | GET /api/v1/douyin/web/fetch_city_list | 抖音城市列表/Douyin City List |
fetchCityListApiV1DouyinWebFetchCityListGet_0 | GET /api/v1/douyin/web/fetch_city_list | 抖音城市列表/Douyin City List |
fetchDouyinWebGuestCookieApiV1DouyinWebFetchDouyinWebGuestCookieGet | GET /api/v1/douyin/web/fetch_douyin_web_guest_cookie | 获取抖音Web的游客Cookie/Get the guest Cookie of Douyin Web |
fetchDouyinWebGuestCookieApiV1DouyinWebFetchDouyinWebGuestCookieGet_0 | GET /api/v1/douyin/web/fetch_douyin_web_guest_cookie | 获取抖音Web的游客Cookie/Get the guest Cookie of Douyin Web |
fetchGameAwemeApiV1DouyinWebFetchGameAwemeGet | GET /api/v1/douyin/web/fetch_game_aweme | 游戏作品推荐/Knowledge Video |
fetchGameAwemeApiV1DouyinWebFetchGameAwemeGet_0 | GET /api/v1/douyin/web/fetch_game_aweme | 游戏作品推荐/Knowledge Video |
fetchGeneralSearchResultApiV1DouyinWebFetchGeneralSearchResultGet | GET /api/v1/douyin/web/fetch_general_search_result | 获取指定关键词的综合搜索结果/Get comprehensive search results of specified keywords |
fetchGeneralSearchResultApiV1DouyinWebFetchGeneralSearchResultGet_0 | GET /api/v1/douyin/web/fetch_general_search_result | 获取指定关键词的综合搜索结果/Get comprehensive search results of specified keywords |
fetchHomeFeedApiV1DouyinWebFetchHomeFeedGet | GET /api/v1/douyin/web/fetch_home_feed | 获取首页推荐数据/Get home feed data |
fetchHomeFeedApiV1DouyinWebFetchHomeFeedGet_0 | GET /api/v1/douyin/web/fetch_home_feed | 获取首页推荐数据/Get home feed data |
fetchHotListApiV1DouyinWebFetchHotListGet | GET /api/v1/douyin/web/fetch_hot_list | 抖音热点总榜单/Douyin Hot List |
fetchHotListApiV1DouyinWebFetchHotListGet_0 | GET /api/v1/douyin/web/fetch_hot_list | 抖音热点总榜单/Douyin Hot List |
fetchHotSearchResultApiV1DouyinWebFetchHotSearchResultGet | GET /api/v1/douyin/web/fetch_hot_search_result | 获取抖音热榜数据/Get Douyin hot search results |
fetchHotSearchResultApiV1DouyinWebFetchHotSearchResultGet_0 | GET /api/v1/douyin/web/fetch_hot_search_result | 获取抖音热榜数据/Get Douyin hot search results |
fetchKnowledgeAwemeApiV1DouyinWebFetchKnowledgeAwemeGet | GET /api/v1/douyin/web/fetch_knowledge_aweme | 知识作品推荐/Knowledge Video |
fetchKnowledgeAwemeApiV1DouyinWebFetchKnowledgeAwemeGet_0 | GET /api/v1/douyin/web/fetch_knowledge_aweme | 知识作品推荐/Knowledge Video |
fetchLiveGiftRankingApiV1DouyinWebFetchLiveGiftRankingGet | GET /api/v1/douyin/web/fetch_live_gift_ranking | 获取直播间送礼用户排行榜/Get live room gift user ranking |
fetchLiveGiftRankingApiV1DouyinWebFetchLiveGiftRankingGet_0 | GET /api/v1/douyin/web/fetch_live_gift_ranking | 获取直播间送礼用户排行榜/Get live room gift user ranking |
fetchLiveRoomProductResultApiV1DouyinWebFetchLiveRoomProductResultGet | GET /api/v1/douyin/web/fetch_live_room_product_result | 抖音直播间商品信息/Douyin live room product information |
fetchLiveRoomProductResultApiV1DouyinWebFetchLiveRoomProductResultGet_0 | GET /api/v1/douyin/web/fetch_live_room_product_result | 抖音直播间商品信息/Douyin live room product information |
fetchLiveSearchResultApiV1DouyinWebFetchLiveSearchResultGet | GET /api/v1/douyin/web/fetch_live_search_result | 获取指定关键词的直播搜索结果/Get live search results of specified keywords |
fetchLiveSearchResultApiV1DouyinWebFetchLiveSearchResultGet_0 | GET /api/v1/douyin/web/fetch_live_search_result | 获取指定关键词的直播搜索结果/Get live search results of specified keywords |
fetchMultiVideoApiV1DouyinWebFetchMultiVideoPost | POST /api/v1/douyin/web/fetch_multi_video | 批量获取视频信息/Batch Get Video Information |
fetchMultiVideoApiV1DouyinWebFetchMultiVideoPost_0 | POST /api/v1/douyin/web/fetch_multi_video | 批量获取视频信息/Batch Get Video Information |
fetchOneVideoApiV1DouyinWebFetchOneVideoGet | GET /api/v1/douyin/web/fetch_one_video | 获取单个作品数据,此接口即将废弃,请使用APP接口/Get single video data, this endpoint will be deprecated soon, please use APP endpoint |
fetchOneVideoApiV1DouyinWebFetchOneVideoGet_0 | GET /api/v1/douyin/web/fetch_one_video | 获取单个作品数据,此接口即将废弃,请使用APP接口/Get single video data, this endpoint will be deprecated soon, please use APP endpoint |
fetchOneVideoApiV1DouyinWebFetchOneVideoV2Get | GET /api/v1/douyin/web/fetch_one_video_v2 | 获取单个作品数据 V2/Get single video data V2 |
fetchOneVideoApiV1DouyinWebFetchOneVideoV2Get_0 | GET /api/v1/douyin/web/fetch_one_video_v2 | 获取单个作品数据 V2/Get single video data V2 |
fetchOneVideoByShareUrlApiV1DouyinWebFetchOneVideoByShareUrlGet | GET /api/v1/douyin/web/fetch_one_video_by_share_url | 根据分享链接获取单个作品数据/Get single video data by sharing link |
fetchOneVideoByShareUrlApiV1DouyinWebFetchOneVideoByShareUrlGet_0 | GET /api/v1/douyin/web/fetch_one_video_by_share_url | 根据分享链接获取单个作品数据/Get single video data by sharing link |
fetchOneVideoDanmakuApiV1DouyinWebFetchOneVideoDanmakuGet | GET /api/v1/douyin/web/fetch_one_video_danmaku | 获取单个作品视频弹幕数据/Get single video danmaku data |
fetchOneVideoDanmakuApiV1DouyinWebFetchOneVideoDanmakuGet_0 | GET /api/v1/douyin/web/fetch_one_video_danmaku | 获取单个作品视频弹幕数据/Get single video danmaku data |
fetchRealTimeChallengeListApiV1DouyinWebFetchRealTimeChallengeListGet | GET /api/v1/douyin/web/fetch_real_time_challenge_list | 抖音实时挑战榜单/Douyin Real-time Challenge List |
fetchRealTimeChallengeListApiV1DouyinWebFetchRealTimeChallengeListGet_0 | GET /api/v1/douyin/web/fetch_real_time_challenge_list | 抖音实时挑战榜单/Douyin Real-time Challenge List |
fetchRealTimeRisingHotListApiV1DouyinWebFetchRealTimeRisingHotListGet | GET /api/v1/douyin/web/fetch_real_time_rising_hot_list | 抖音实时上升热点榜/Douyin Real-time Rising Hot List |
fetchRealTimeRisingHotListApiV1DouyinWebFetchRealTimeRisingHotListGet_0 | GET /api/v1/douyin/web/fetch_real_time_rising_hot_list | 抖音实时上升热点榜/Douyin Real-time Rising Hot List |
fetchRelatedPostsApiV1DouyinWebFetchRelatedPostsGet | GET /api/v1/douyin/web/fetch_related_posts | 获取相关作品推荐数据/Get related posts recommendation data |
fetchRelatedPostsApiV1DouyinWebFetchRelatedPostsGet_0 | GET /api/v1/douyin/web/fetch_related_posts | 获取相关作品推荐数据/Get related posts recommendation data |
fetchSearchChallengeApiV1DouyinWebFetchSearchChallengePost | POST /api/v1/douyin/web/fetch_search_challenge | 搜索话题/Search Challenge |
fetchSearchChallengeApiV1DouyinWebFetchSearchChallengePost_0 | POST /api/v1/douyin/web/fetch_search_challenge | 搜索话题/Search Challenge |
fetchSeriesAwemeApiV1DouyinWebFetchSeriesAwemeGet | GET /api/v1/douyin/web/fetch_series_aweme | 短剧作品/Series Video |
fetchSeriesAwemeApiV1DouyinWebFetchSeriesAwemeGet_0 | GET /api/v1/douyin/web/fetch_series_aweme | 短剧作品/Series Video |
fetchUserCollectionVideosApiV1DouyinWebFetchUserCollectionVideosGet | GET /api/v1/douyin/web/fetch_user_collection_videos | 获取用户收藏作品数据/Get user collection video data |
fetchUserCollectionVideosApiV1DouyinWebFetchUserCollectionVideosGet_0 | GET /api/v1/douyin/web/fetch_user_collection_videos | 获取用户收藏作品数据/Get user collection video data |
fetchUserCollectsVideosApiV1DouyinWebFetchUserCollectsVideosGet | GET /api/v1/douyin/web/fetch_user_collects_videos | 获取用户收藏夹数据/Get user collection data |
fetchUserCollectsVideosApiV1DouyinWebFetchUserCollectsVideosGet_0 | GET /api/v1/douyin/web/fetch_user_collects_videos | 获取用户收藏夹数据/Get user collection data |
fetchUserFansInterestApiV1DouyinWebFetchUserFansInterestGet | GET /api/v1/douyin/web/fetch_user_fans_interest | 抖音用户粉丝兴趣/Douyin User Fans Interest |
fetchUserFansInterestApiV1DouyinWebFetchUserFansInterestGet_0 | GET /api/v1/douyin/web/fetch_user_fans_interest | 抖音用户粉丝兴趣/Douyin User Fans Interest |
fetchUserFansListApiV1DouyinWebFetchUserFansListGet | GET /api/v1/douyin/web/fetch_user_fans_list | 获取用户粉丝列表/Get user fans list |
fetchUserFansListApiV1DouyinWebFetchUserFansListGet_0 | GET /api/v1/douyin/web/fetch_user_fans_list | 获取用户粉丝列表/Get user fans list |
fetchUserFansPortraitApiV1DouyinWebFetchUserFansPortraitGet | GET /api/v1/douyin/web/fetch_user_fans_portrait | 抖音用户粉丝画像/Douyin User Fans Portrait |
fetchUserFansPortraitApiV1DouyinWebFetchUserFansPortraitGet_0 | GET /api/v1/douyin/web/fetch_user_fans_portrait | 抖音用户粉丝画像/Douyin User Fans Portrait |
fetchUserFollowingListApiV1DouyinWebFetchUserFollowingListGet | GET /api/v1/douyin/web/fetch_user_following_list | 获取用户关注列表/Get user following list |
fetchUserFollowingListApiV1DouyinWebFetchUserFollowingListGet_0 | GET /api/v1/douyin/web/fetch_user_following_list | 获取用户关注列表/Get user following list |
fetchUserLikeVideosApiV1DouyinWebFetchUserLikeVideosGet | GET /api/v1/douyin/web/fetch_user_like_videos | 获取用户喜欢作品数据/Get user like video data |
fetchUserLikeVideosApiV1DouyinWebFetchUserLikeVideosGet_0 | GET /api/v1/douyin/web/fetch_user_like_videos | 获取用户喜欢作品数据/Get user like video data |
fetchUserLiveInfoByUidApiV1DouyinWebFetchUserLiveInfoByUidGet | GET /api/v1/douyin/web/fetch_user_live_info_by_uid | 使用UID获取用户开播信息/Get user live information by UID |
fetchUserLiveInfoByUidApiV1DouyinWebFetchUserLiveInfoByUidGet_0 | GET /api/v1/douyin/web/fetch_user_live_info_by_uid | 使用UID获取用户开播信息/Get user live information by UID |
fetchUserLiveVideosApiV1DouyinWebFetchUserLiveVideosGet | GET /api/v1/douyin/web/fetch_user_live_videos | 获取用户直播流数据/Get user live video data |
fetchUserLiveVideosApiV1DouyinWebFetchUserLiveVideosGet_0 | GET /api/v1/douyin/web/fetch_user_live_videos | 获取用户直播流数据/Get user live video data |
fetchUserLiveVideosByRoomIdApiV1DouyinWebFetchUserLiveVideosByRoomIdGet | GET /api/v1/douyin/web/fetch_user_live_videos_by_room_id | 获取指定用户的直播流数据/Get live video data of specified user |
fetchUserLiveVideosByRoomIdApiV1DouyinWebFetchUserLiveVideosByRoomIdGet_0 | GET /api/v1/douyin/web/fetch_user_live_videos_by_room_id | 获取指定用户的直播流数据/Get live video data of specified user |
fetchUserLiveVideosByRoomIdV2ApiV1DouyinWebFetchUserLiveVideosByRoomIdV2Get | GET /api/v1/douyin/web/fetch_user_live_videos_by_room_id_v2 | 获取指定用户的直播流数据V2/Gets the live stream data of the specified user V2 |
fetchUserLiveVideosByRoomIdV2ApiV1DouyinWebFetchUserLiveVideosByRoomIdV2Get_0 | GET /api/v1/douyin/web/fetch_user_live_videos_by_room_id_v2 | 获取指定用户的直播流数据V2/Gets the live stream data of the specified user V2 |
fetchUserLiveVideosBySecUidApiV1DouyinWebFetchUserLiveVideosBySecUidGet | GET /api/v1/douyin/web/fetch_user_live_videos_by_sec_uid | 通过sec_uid获取指定用户的直播流数据/Get live video data of specified user by sec_uid |
fetchUserLiveVideosBySecUidApiV1DouyinWebFetchUserLiveVideosBySecUidGet_0 | GET /api/v1/douyin/web/fetch_user_live_videos_by_sec_uid | 通过sec_uid获取指定用户的直播流数据/Get live video data of specified user by sec_uid |
fetchUserMixVideosApiV1DouyinWebFetchUserMixVideosGet | GET /api/v1/douyin/web/fetch_user_mix_videos | 获取用户合辑作品数据/Get user mix video data |
fetchUserMixVideosApiV1DouyinWebFetchUserMixVideosGet_0 | GET /api/v1/douyin/web/fetch_user_mix_videos | 获取用户合辑作品数据/Get user mix video data |
fetchUserPostVideosApiV1DouyinWebFetchUserPostVideosGet | GET /api/v1/douyin/web/fetch_user_post_videos | 获取用户主页作品数据/Get user homepage video data |
fetchUserPostVideosApiV1DouyinWebFetchUserPostVideosGet_0 | GET /api/v1/douyin/web/fetch_user_post_videos | 获取用户主页作品数据/Get user homepage video data |
fetchUserProfileByShortIdApiV1DouyinWebFetchUserProfileByShortIdGet | GET /api/v1/douyin/web/fetch_user_profile_by_short_id | 使用Short ID获取用户信息/Get user information by Short ID |
fetchUserProfileByShortIdApiV1DouyinWebFetchUserProfileByShortIdGet_0 | GET /api/v1/douyin/web/fetch_user_profile_by_short_id | 使用Short ID获取用户信息/Get user information by Short ID |
fetchUserProfileByUidApiV1DouyinWebFetchUserProfileByUidGet | GET /api/v1/douyin/web/fetch_user_profile_by_uid | 使用UID获取用户信息/Get user information by UID |
fetchUserProfileByUidApiV1DouyinWebFetchUserProfileByUidGet_0 | GET /api/v1/douyin/web/fetch_user_profile_by_uid | 使用UID获取用户信息/Get user information by UID |
fetchUserSearchResultApiV1DouyinWebFetchUserSearchResultGet | GET /api/v1/douyin/web/fetch_user_search_result | 获取指定关键词的用户搜索结果(已废弃,使用V2或V3接口代替)/Get user search results of specified keywords (deprecated, use V2 or V3 interface instead) |
fetchUserSearchResultApiV1DouyinWebFetchUserSearchResultGet_0 | GET /api/v1/douyin/web/fetch_user_search_result | 获取指定关键词的用户搜索结果(已废弃,使用V2或V3接口代替)/Get user search results of specified keywords (deprecated, use V2 or V3 interface instead) |
fetchUserSearchResultV2ApiV1DouyinWebFetchUserSearchResultV2Get | GET /api/v1/douyin/web/fetch_user_search_result_v2 | 获取指定关键词的用户搜索结果V2/Get user search results of specified keywords V2 |
fetchUserSearchResultV2ApiV1DouyinWebFetchUserSearchResultV2Get_0 | GET /api/v1/douyin/web/fetch_user_search_result_v2 | 获取指定关键词的用户搜索结果V2/Get user search results of specified keywords V2 |
fetchUserSearchResultV3ApiV1DouyinWebFetchUserSearchResultV3Get | GET /api/v1/douyin/web/fetch_user_search_result_v3 | 获取指定关键词的用户搜索结果V3/Get user search results of specified keywords V3 |
fetchUserSearchResultV3ApiV1DouyinWebFetchUserSearchResultV3Get_0 | GET /api/v1/douyin/web/fetch_user_search_result_v3 | 获取指定关键词的用户搜索结果V3/Get user search results of specified keywords V3 |
fetchVideoBillboardApiV1DouyinWebFetchVideoBillboardGet | GET /api/v1/douyin/web/fetch_video_billboard | 抖音视频榜单/Douyin Video Billboard |
fetchVideoBillboardApiV1DouyinWebFetchVideoBillboardGet_0 | GET /api/v1/douyin/web/fetch_video_billboard | 抖音视频榜单/Douyin Video Billboard |
fetchVideoChannelResultApiV1DouyinWebFetchVideoChannelResultGet | GET /api/v1/douyin/web/fetch_video_channel_result | 抖音视频频道数据/Douyin video channel data |
fetchVideoChannelResultApiV1DouyinWebFetchVideoChannelResultGet_0 | GET /api/v1/douyin/web/fetch_video_channel_result | 抖音视频频道数据/Douyin video channel data |
fetchVideoCommentsApiV1DouyinWebFetchVideoCommentsGet | GET /api/v1/douyin/web/fetch_video_comments | 获取单个视频评论数据/Get single video comments data |
fetchVideoCommentsApiV1DouyinWebFetchVideoCommentsGet_0 | GET /api/v1/douyin/web/fetch_video_comments | 获取单个视频评论数据/Get single video comments data |
fetchVideoCommentsReplyApiV1DouyinWebFetchVideoCommentRepliesGet | GET /api/v1/douyin/web/fetch_video_comment_replies | 获取指定视频的评论回复数据/Get comment replies data of specified video |
fetchVideoCommentsReplyApiV1DouyinWebFetchVideoCommentRepliesGet_0 | GET /api/v1/douyin/web/fetch_video_comment_replies | 获取指定视频的评论回复数据/Get comment replies data of specified video |
fetchVideoFansAddCountApiV1DouyinWebFetchVideoFansAddCountGet | GET /api/v1/douyin/web/fetch_video_fans_add_count | 获取视频新增粉丝数量/Get video new fans count |
fetchVideoFansAddCountApiV1DouyinWebFetchVideoFansAddCountGet_0 | GET /api/v1/douyin/web/fetch_video_fans_add_count | 获取视频新增粉丝数量/Get video new fans count |
fetchVideoLikePortraitApiV1DouyinWebFetchVideoLikePortraitGet | GET /api/v1/douyin/web/fetch_video_like_portrait | 抖音视频点赞观众画像/Douyin Video Like Viewer Portrait |
fetchVideoLikePortraitApiV1DouyinWebFetchVideoLikePortraitGet_0 | GET /api/v1/douyin/web/fetch_video_like_portrait | 抖音视频点赞观众画像/Douyin Video Like Viewer Portrait |
fetchVideoSearchResultApiV1DouyinWebFetchVideoSearchResultGet | GET /api/v1/douyin/web/fetch_video_search_result | 获取指定关键词的视频搜索结果/Get video search results of specified keywords |
fetchVideoSearchResultApiV1DouyinWebFetchVideoSearchResultGet_0 | GET /api/v1/douyin/web/fetch_video_search_result | 获取指定关键词的视频搜索结果/Get video search results of specified keywords |
fetchVideoSearchResultV2ApiV1DouyinWebFetchVideoSearchResultV2Get | GET /api/v1/douyin/web/fetch_video_search_result_v2 | 获取指定关键词的视频搜索结果V2/Get video search results of specified keywords V2 |
fetchVideoSearchResultV2ApiV1DouyinWebFetchVideoSearchResultV2Get_0 | GET /api/v1/douyin/web/fetch_video_search_result_v2 | 获取指定关键词的视频搜索结果V2/Get video search results of specified keywords V2 |
generateABogusApiV1DouyinWebGenerateABogusPost | POST /api/v1/douyin/web/generate_a_bogus | 使用接口网址生成A-Bogus参数/Generate A-Bogus parameter using API URL |
generateABogusApiV1DouyinWebGenerateABogusPost_0 | POST /api/v1/douyin/web/generate_a_bogus | 使用接口网址生成A-Bogus参数/Generate A-Bogus parameter using API URL |
generateRealMsTokenApiV1DouyinWebGenerateRealMsTokenGet | GET /api/v1/douyin/web/generate_real_msToken | 生成真实msToken/Generate real msToken |
generateRealMsTokenApiV1DouyinWebGenerateRealMsTokenGet_0 | GET /api/v1/douyin/web/generate_real_msToken | 生成真实msToken/Generate real msToken |
generateSVWebIdApiV1DouyinWebGenerateSVWebIdGet | GET /api/v1/douyin/web/generate_s_v_web_id | 生成s_v_web_id/Generate s_v_web_id |
generateSVWebIdApiV1DouyinWebGenerateSVWebIdGet_0 | GET /api/v1/douyin/web/generate_s_v_web_id | 生成s_v_web_id/Generate s_v_web_id |
generateTtwidApiV1DouyinWebGenerateTtwidGet | GET /api/v1/douyin/web/generate_ttwid | 生成ttwid/Generate ttwid |
generateTtwidApiV1DouyinWebGenerateTtwidGet_0 | GET /api/v1/douyin/web/generate_ttwid | 生成ttwid/Generate ttwid |
generateVerifyFpApiV1DouyinWebGenerateVerifyFpGet | GET /api/v1/douyin/web/generate_verify_fp | 生成verify_fp/Generate verify_fp |
generateVerifyFpApiV1DouyinWebGenerateVerifyFpGet_0 | GET /api/v1/douyin/web/generate_verify_fp | 生成verify_fp/Generate verify_fp |
generateXBogusApiV1DouyinWebGenerateXBogusPost | POST /api/v1/douyin/web/generate_x_bogus | 使用接口网址生成X-Bogus参数/Generate X-Bogus parameter using API URL |
generateXBogusApiV1DouyinWebGenerateXBogusPost_0 | POST /api/v1/douyin/web/generate_x_bogus | 使用接口网址生成X-Bogus参数/Generate X-Bogus parameter using API URL |
getAllAwemeIdApiV1DouyinWebGetAllAwemeIdPost | POST /api/v1/douyin/web/get_all_aweme_id | 提取列表作品id/Extract list video id |
getAllAwemeIdApiV1DouyinWebGetAllAwemeIdPost_0 | POST /api/v1/douyin/web/get_all_aweme_id | 提取列表作品id/Extract list video id |
getAllSecUserIdApiV1DouyinWebGetAllSecUserIdPost | POST /api/v1/douyin/web/get_all_sec_user_id | 提取列表用户id/Extract list user id |
getAllSecUserIdApiV1DouyinWebGetAllSecUserIdPost_0 | POST /api/v1/douyin/web/get_all_sec_user_id | 提取列表用户id/Extract list user id |
getAllWebcastIdApiV1DouyinWebGetAllWebcastIdPost | POST /api/v1/douyin/web/get_all_webcast_id | 提取列表直播间号/Extract list webcast id |
getAllWebcastIdApiV1DouyinWebGetAllWebcastIdPost_0 | POST /api/v1/douyin/web/get_all_webcast_id | 提取列表直播间号/Extract list webcast id |
getAwemeIdApiV1DouyinWebGetAwemeIdGet | GET /api/v1/douyin/web/get_aweme_id | 提取单个作品id/Extract single video id |
getAwemeIdApiV1DouyinWebGetAwemeIdGet_0 | GET /api/v1/douyin/web/get_aweme_id | 提取单个作品id/Extract single video id |
getSecUserIdApiV1DouyinWebGetSecUserIdGet | GET /api/v1/douyin/web/get_sec_user_id | 提取单个用户id/Extract single user id |
getSecUserIdApiV1DouyinWebGetSecUserIdGet_0 | GET /api/v1/douyin/web/get_sec_user_id | 提取单个用户id/Extract single user id |
getWebcastIdApiV1DouyinWebGetWebcastIdGet | GET /api/v1/douyin/web/get_webcast_id | 提取直播间号/Extract webcast id |
getWebcastIdApiV1DouyinWebGetWebcastIdGet_0 | GET /api/v1/douyin/web/get_webcast_id | 提取直播间号/Extract webcast id |
handlerUserProfileApiV1DouyinWebHandlerUserProfileGet | GET /api/v1/douyin/web/handler_user_profile | 根据sec_user_id获取指定用户的信息/Get information of specified user by sec_user_id |
handlerUserProfileApiV1DouyinWebHandlerUserProfileGet_0 | GET /api/v1/douyin/web/handler_user_profile | 根据sec_user_id获取指定用户的信息/Get information of specified user by sec_user_id |
handlerUserProfileV2ApiV1DouyinWebHandlerUserProfileV2Get | GET /api/v1/douyin/web/handler_user_profile_v2 | 根据抖音号获取指定用户的信息/Get information of specified user by unique_id |
handlerUserProfileV2ApiV1DouyinWebHandlerUserProfileV2Get_0 | GET /api/v1/douyin/web/handler_user_profile_v2 | 根据抖音号获取指定用户的信息/Get information of specified user by unique_id |
handlerUserProfileV3ApiV1DouyinWebHandlerUserProfileV3Get | GET /api/v1/douyin/web/handler_user_profile_v3 | 根据抖音uid获取指定用户的信息/Get information of specified user by uid |
handlerUserProfileV3ApiV1DouyinWebHandlerUserProfileV3Get_0 | GET /api/v1/douyin/web/handler_user_profile_v3 | 根据抖音uid获取指定用户的信息/Get information of specified user by uid |
handlerUserProfileV4ApiV1DouyinWebHandlerUserProfileV4Get | GET /api/v1/douyin/web/handler_user_profile_v4 | 根据sec_user_id获取指定用户的信息(性别,年龄,直播等级、牌子)/Get information of specified user by sec_user_id (gender, age, live level、brand) |
handlerUserProfileV4ApiV1DouyinWebHandlerUserProfileV4Get_0 | GET /api/v1/douyin/web/handler_user_profile_v4 | 根据sec_user_id获取指定用户的信息(性别,年龄,直播等级、牌子)/Get information of specified user by sec_user_id (gender, age, live level、brand) |
webcastId2RoomIdApiV1DouyinWebWebcastId2RoomIdGet | GET /api/v1/douyin/web/webcast_id_2_room_id | 直播间号转房间号/Webcast id to room id |
webcastId2RoomIdApiV1DouyinWebWebcastId2RoomIdGet_0 | GET /api/v1/douyin/web/webcast_id_2_room_id | 直播间号转房间号/Webcast id to room id |
ResponseModel douyinLiveRoomApiV1DouyinWebDouyinLiveRoomGet(liveRoomUrl, danmakuType)
提取直播间弹幕/Extract live room danmaku
[中文] ### 用途: - 提取直播间弹幕 #### 价格: - 每10条数据消耗0.001$,支持阶梯式计费折扣。 ### 参数: - live_room_url: 直播间链接 - danmaku_type: 消息类型 - WebcastRoomMessage:直播间消息 - WebcastLikeMessage:点赞消息 - WebcastMemberMessage:成员消息 - WebcastChatMessage:聊天消息 - WebcastGiftMessage:礼物消息 - WebcastSocialMessage:社交消息 - WebcastRoomUserSeqMessage:用户序列消息 - WebcastUpdateFanTicketMessage:更新粉丝消息 - WebcastCommonTextMessage:常规文本消息 - WebcastMatchAgainstScoreMessage:比赛得分消息 - WebcastFansclubMessage:粉丝俱乐部消息 - WebcastRanklistHourEntranceMessage:排行榜小时入口消息 - WebcastRoomStatsMessage:直播间统计消息 - WebcastLiveShoppingMessage: 直播购物消息 - WebcastLiveEcomGeneralMessage: 直播电商通用消息 - WebcastProductChangeMessage: 直播商品变更消息 - WebcastRoomStreamAdaptationMessage: 直播间流适配消息 - WebcastNotifyEffectMessage: 通知效果消息 - WebcastLightGiftMessage: 亮礼物消息 - WebcastProfitInteractionScoreMessage: 收益互动分消息 - WebcastRoomRankMessage: 直播间排行消息 ### 返回: - 弹幕数据的WebSocket连接信息,需要使用WebSocket连接获取弹幕数据,此接口不返回弹幕数据。 # [English] ### Purpose: - Extract live room danmaku #### Price: - 0.001$ per 10 data, support tiered billing discounts. ### Parameters: - live_room_url: Live room link - danmaku_type: Message type - WebcastRoomMessage: Live room message - WebcastLikeMessage: Like message - WebcastMemberMessage: Member message - WebcastChatMessage: Chat message - WebcastGiftMessage: Gift message - WebcastSocialMessage: Social message - WebcastRoomUserSeqMessage: User sequence message - WebcastUpdateFanTicketMessage: Update fan message - WebcastCommonTextMessage: Common text message - WebcastMatchAgainstScoreMessage: Match score message - WebcastFansclubMessage: Fans club message - WebcastRanklistHourEntranceMessage: Ranking list hour entrance message - WebcastRoomStatsMessage: Live room statistics message - WebcastLiveShoppingMessage: Live shopping message - WebcastLiveEcomGeneralMessage: Live e-commerce general message - WebcastProductChangeMessage: Live product change message - WebcastRoomStreamAdaptationMessage: Live room stream adaptation message - WebcastNotifyEffectMessage: Notification effect message - WebcastLightGiftMessage: Light gift message - WebcastProfitInteractionScoreMessage: Profit interaction score message - WebcastRoomRankMessage: Live room ranking message ### Return: - WebSocket connection information of the danmaku data, you need to use WebSocket connection to get the danmaku data, this interface does not return the danmaku data.
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String liveRoomUrl = https://live.douyin.com/834624950943; // String | 直播间链接/Live room link
String danmakuType = WebcastRoomMessage; // String | 消息类型/Message type
try {
ResponseModel result = apiInstance.douyinLiveRoomApiV1DouyinWebDouyinLiveRoomGet(liveRoomUrl, danmakuType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#douyinLiveRoomApiV1DouyinWebDouyinLiveRoomGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
liveRoomUrl | String | 直播间链接/Live room link | |
danmakuType | String | 消息类型/Message type |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel douyinLiveRoomApiV1DouyinWebDouyinLiveRoomGet_0(liveRoomUrl, danmakuType)
提取直播间弹幕/Extract live room danmaku
[中文] ### 用途: - 提取直播间弹幕 #### 价格: - 每10条数据消耗0.001$,支持阶梯式计费折扣。 ### 参数: - live_room_url: 直播间链接 - danmaku_type: 消息类型 - WebcastRoomMessage:直播间消息 - WebcastLikeMessage:点赞消息 - WebcastMemberMessage:成员消息 - WebcastChatMessage:聊天消息 - WebcastGiftMessage:礼物消息 - WebcastSocialMessage:社交消息 - WebcastRoomUserSeqMessage:用户序列消息 - WebcastUpdateFanTicketMessage:更新粉丝消息 - WebcastCommonTextMessage:常规文本消息 - WebcastMatchAgainstScoreMessage:比赛得分消息 - WebcastFansclubMessage:粉丝俱乐部消息 - WebcastRanklistHourEntranceMessage:排行榜小时入口消息 - WebcastRoomStatsMessage:直播间统计消息 - WebcastLiveShoppingMessage: 直播购物消息 - WebcastLiveEcomGeneralMessage: 直播电商通用消息 - WebcastProductChangeMessage: 直播商品变更消息 - WebcastRoomStreamAdaptationMessage: 直播间流适配消息 - WebcastNotifyEffectMessage: 通知效果消息 - WebcastLightGiftMessage: 亮礼物消息 - WebcastProfitInteractionScoreMessage: 收益互动分消息 - WebcastRoomRankMessage: 直播间排行消息 ### 返回: - 弹幕数据的WebSocket连接信息,需要使用WebSocket连接获取弹幕数据,此接口不返回弹幕数据。 # [English] ### Purpose: - Extract live room danmaku #### Price: - 0.001$ per 10 data, support tiered billing discounts. ### Parameters: - live_room_url: Live room link - danmaku_type: Message type - WebcastRoomMessage: Live room message - WebcastLikeMessage: Like message - WebcastMemberMessage: Member message - WebcastChatMessage: Chat message - WebcastGiftMessage: Gift message - WebcastSocialMessage: Social message - WebcastRoomUserSeqMessage: User sequence message - WebcastUpdateFanTicketMessage: Update fan message - WebcastCommonTextMessage: Common text message - WebcastMatchAgainstScoreMessage: Match score message - WebcastFansclubMessage: Fans club message - WebcastRanklistHourEntranceMessage: Ranking list hour entrance message - WebcastRoomStatsMessage: Live room statistics message - WebcastLiveShoppingMessage: Live shopping message - WebcastLiveEcomGeneralMessage: Live e-commerce general message - WebcastProductChangeMessage: Live product change message - WebcastRoomStreamAdaptationMessage: Live room stream adaptation message - WebcastNotifyEffectMessage: Notification effect message - WebcastLightGiftMessage: Light gift message - WebcastProfitInteractionScoreMessage: Profit interaction score message - WebcastRoomRankMessage: Live room ranking message ### Return: - WebSocket connection information of the danmaku data, you need to use WebSocket connection to get the danmaku data, this interface does not return the danmaku data.
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String liveRoomUrl = https://live.douyin.com/834624950943; // String | 直播间链接/Live room link
String danmakuType = WebcastRoomMessage; // String | 消息类型/Message type
try {
ResponseModel result = apiInstance.douyinLiveRoomApiV1DouyinWebDouyinLiveRoomGet_0(liveRoomUrl, danmakuType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#douyinLiveRoomApiV1DouyinWebDouyinLiveRoomGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
liveRoomUrl | String | 直播间链接/Live room link | |
danmakuType | String | 消息类型/Message type |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchBillboardCategoriesApiV1DouyinWebFetchBillboardCategoriesGet(billboardType)
抖音热点分类/Douyin Billboard Categories
[中文] ### 用途: - 抖音热点分类 ### 参数: - billboard_type: 热点类型 - rise: 上升热点榜分类 - city: 同城热点榜分类 - total: 热点总榜分类 ### 返回: - 热点分类数据 # [English] ### Purpose: - Douyin Billboard Categories ### Parameters: - billboard_type: Hotspot type - rise: Rising hot spot list category - city: City hot spot list category - total: Total hot spot list category ### Return: - Hotspot category data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String billboardType = rise; // String | 热点类型/Hotspot type
try {
ResponseModel result = apiInstance.fetchBillboardCategoriesApiV1DouyinWebFetchBillboardCategoriesGet(billboardType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchBillboardCategoriesApiV1DouyinWebFetchBillboardCategoriesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
billboardType | String | 热点类型/Hotspot type |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchBillboardCategoriesApiV1DouyinWebFetchBillboardCategoriesGet_0(billboardType)
抖音热点分类/Douyin Billboard Categories
[中文] ### 用途: - 抖音热点分类 ### 参数: - billboard_type: 热点类型 - rise: 上升热点榜分类 - city: 同城热点榜分类 - total: 热点总榜分类 ### 返回: - 热点分类数据 # [English] ### Purpose: - Douyin Billboard Categories ### Parameters: - billboard_type: Hotspot type - rise: Rising hot spot list category - city: City hot spot list category - total: Total hot spot list category ### Return: - Hotspot category data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String billboardType = rise; // String | 热点类型/Hotspot type
try {
ResponseModel result = apiInstance.fetchBillboardCategoriesApiV1DouyinWebFetchBillboardCategoriesGet_0(billboardType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchBillboardCategoriesApiV1DouyinWebFetchBillboardCategoriesGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
billboardType | String | 热点类型/Hotspot type |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchBillboardRelatedVideosApiV1DouyinWebFetchBillboardRelatedVideosGet(page, pageSize, sentenceId)
抖音榜单相关视频/Douyin Billboard Related Videos
[中文] ### 用途: - 抖音榜单相关视频 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sentence_id: 分类ID ### 返回: - 相关视频数据 # [English] ### Purpose: - Douyin Billboard Related Videos ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 - sentence_id: Category ID ### Return: - Related video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
String sentenceId = 1495226; // String | 分类ID/Category ID
try {
ResponseModel result = apiInstance.fetchBillboardRelatedVideosApiV1DouyinWebFetchBillboardRelatedVideosGet(page, pageSize, sentenceId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchBillboardRelatedVideosApiV1DouyinWebFetchBillboardRelatedVideosGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
sentenceId | String | 分类ID/Category ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchBillboardRelatedVideosApiV1DouyinWebFetchBillboardRelatedVideosGet_0(page, pageSize, sentenceId)
抖音榜单相关视频/Douyin Billboard Related Videos
[中文] ### 用途: - 抖音榜单相关视频 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sentence_id: 分类ID ### 返回: - 相关视频数据 # [English] ### Purpose: - Douyin Billboard Related Videos ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 - sentence_id: Category ID ### Return: - Related video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
String sentenceId = 1495226; // String | 分类ID/Category ID
try {
ResponseModel result = apiInstance.fetchBillboardRelatedVideosApiV1DouyinWebFetchBillboardRelatedVideosGet_0(page, pageSize, sentenceId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchBillboardRelatedVideosApiV1DouyinWebFetchBillboardRelatedVideosGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
sentenceId | String | 分类ID/Category ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCartoonAwemeApiV1DouyinWebFetchCartoonAwemeGet(count, refreshIndex, cookie)
二次元作品推荐/Knowledge Video
[中文] ### 用途: - 二次元作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 二次元作品数据 # [English] ### Purpose: - Cartoon Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Cartoon Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchCartoonAwemeApiV1DouyinWebFetchCartoonAwemeGet(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCartoonAwemeApiV1DouyinWebFetchCartoonAwemeGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCartoonAwemeApiV1DouyinWebFetchCartoonAwemeGet_0(count, refreshIndex, cookie)
二次元作品推荐/Knowledge Video
[中文] ### 用途: - 二次元作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 二次元作品数据 # [English] ### Purpose: - Cartoon Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Cartoon Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchCartoonAwemeApiV1DouyinWebFetchCartoonAwemeGet_0(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCartoonAwemeApiV1DouyinWebFetchCartoonAwemeGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCartoonAwemeApiV1DouyinWebFetchFoodAwemeGet(count, refreshIndex, cookie)
美食作品推荐/Knowledge Video
[中文] ### 用途: - 美食作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 美食作品数据 # [English] ### Purpose: - Food Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Food Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchCartoonAwemeApiV1DouyinWebFetchFoodAwemeGet(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCartoonAwemeApiV1DouyinWebFetchFoodAwemeGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCartoonAwemeApiV1DouyinWebFetchFoodAwemeGet_0(count, refreshIndex, cookie)
美食作品推荐/Knowledge Video
[中文] ### 用途: - 美食作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 美食作品数据 # [English] ### Purpose: - Food Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Food Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchCartoonAwemeApiV1DouyinWebFetchFoodAwemeGet_0(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCartoonAwemeApiV1DouyinWebFetchFoodAwemeGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCartoonAwemeApiV1DouyinWebFetchMusicAwemeGet(count, refreshIndex, cookie)
音乐作品推荐/Knowledge Video
[中文] ### 用途: - 音乐作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 音乐作品数据 # [English] ### Purpose: - Music Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Music Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchCartoonAwemeApiV1DouyinWebFetchMusicAwemeGet(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCartoonAwemeApiV1DouyinWebFetchMusicAwemeGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCartoonAwemeApiV1DouyinWebFetchMusicAwemeGet_0(count, refreshIndex, cookie)
音乐作品推荐/Knowledge Video
[中文] ### 用途: - 音乐作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 音乐作品数据 # [English] ### Purpose: - Music Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Music Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchCartoonAwemeApiV1DouyinWebFetchMusicAwemeGet_0(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCartoonAwemeApiV1DouyinWebFetchMusicAwemeGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchChallengePostsApiV1DouyinWebFetchChallengePostsPost(challengePostRequest)
话题作品/Challenge Posts
[中文] ### 用途: - 话题作品 ### 参数: - challenge_id: 话题id - sort_type: 排序类型 - 0:综合排序 1:最热排序 2:最新排序 - cursor: 游标 - count: 数量 - cookie: 用户自行提供的Cookie,用于获取更多数据。 ### 返回: - 话题作品 # [English] ### Purpose: - Challenge Posts ### Parameters: - challenge_id: Challenge id - sort_type: Sort type - 0: Comprehensive sorting 1: Hottest sorting 2: Latest sorting - cursor: Cursor - count: Number - cookie: User provided Cookie, used to get more data ### Return: - Challenge Posts # [示例/Example] challenge_id = "1750525814851611" sort_type = 0 offset = 0 cursor = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
ChallengePostRequest challengePostRequest = new ChallengePostRequest(); // ChallengePostRequest |
try {
ResponseModel result = apiInstance.fetchChallengePostsApiV1DouyinWebFetchChallengePostsPost(challengePostRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchChallengePostsApiV1DouyinWebFetchChallengePostsPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
challengePostRequest | ChallengePostRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchChallengePostsApiV1DouyinWebFetchChallengePostsPost_0(challengePostRequest)
话题作品/Challenge Posts
[中文] ### 用途: - 话题作品 ### 参数: - challenge_id: 话题id - sort_type: 排序类型 - 0:综合排序 1:最热排序 2:最新排序 - cursor: 游标 - count: 数量 - cookie: 用户自行提供的Cookie,用于获取更多数据。 ### 返回: - 话题作品 # [English] ### Purpose: - Challenge Posts ### Parameters: - challenge_id: Challenge id - sort_type: Sort type - 0: Comprehensive sorting 1: Hottest sorting 2: Latest sorting - cursor: Cursor - count: Number - cookie: User provided Cookie, used to get more data ### Return: - Challenge Posts # [示例/Example] challenge_id = "1750525814851611" sort_type = 0 offset = 0 cursor = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
ChallengePostRequest challengePostRequest = new ChallengePostRequest(); // ChallengePostRequest |
try {
ResponseModel result = apiInstance.fetchChallengePostsApiV1DouyinWebFetchChallengePostsPost_0(challengePostRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchChallengePostsApiV1DouyinWebFetchChallengePostsPost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
challengePostRequest | ChallengePostRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCityHotListApiV1DouyinWebFetchCityHotListGet(page, pageSize, sentenceTag, order, cityCode)
抖音同城热点榜单/Douyin City Hot List
[中文] ### 用途: - 抖音同城热点榜单 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sentence_tag: 分类标签,默认为空 - order: 排序方式,默认为rank - rank: 按热度排名 - rank_diff: 按排名变化排名 - city_code: 城市代码,默认为110000(北京) - 110000: 北京 - 更多城市代码请参考城市列表接口 - f"{TikHub_API_Domain}/api/v1/douyin/web/fetch_city_list" ### 返回: - 热点榜数据 # [English] ### Purpose: - Douyin City Hot List ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 - sentence_tag: Category tag, default is empty - order: Sorting method, default is rank - rank: Sort by popularity ranking - rank_diff: Sort by ranking change - city_code: City code, default is 110000 - 110000: Beijing - For more city codes, please refer to the city list interface - f"{TikHub_API_Domain}/api/v1/douyin/web/fetch_city_list" ### Return: - Hotspot list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
String sentenceTag = "sentenceTag_example"; // String | 分类标签/Category tag
String order = rank; // String | 排序方式/Sorting method
String cityCode = 110000; // String | 城市代码/City code
try {
ResponseModel result = apiInstance.fetchCityHotListApiV1DouyinWebFetchCityHotListGet(page, pageSize, sentenceTag, order, cityCode);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCityHotListApiV1DouyinWebFetchCityHotListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
sentenceTag | String | 分类标签/Category tag | |
order | String | 排序方式/Sorting method | |
cityCode | String | 城市代码/City code |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCityHotListApiV1DouyinWebFetchCityHotListGet_0(page, pageSize, sentenceTag, order, cityCode)
抖音同城热点榜单/Douyin City Hot List
[中文] ### 用途: - 抖音同城热点榜单 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sentence_tag: 分类标签,默认为空 - order: 排序方式,默认为rank - rank: 按热度排名 - rank_diff: 按排名变化排名 - city_code: 城市代码,默认为110000(北京) - 110000: 北京 - 更多城市代码请参考城市列表接口 - f"{TikHub_API_Domain}/api/v1/douyin/web/fetch_city_list" ### 返回: - 热点榜数据 # [English] ### Purpose: - Douyin City Hot List ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 - sentence_tag: Category tag, default is empty - order: Sorting method, default is rank - rank: Sort by popularity ranking - rank_diff: Sort by ranking change - city_code: City code, default is 110000 - 110000: Beijing - For more city codes, please refer to the city list interface - f"{TikHub_API_Domain}/api/v1/douyin/web/fetch_city_list" ### Return: - Hotspot list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
String sentenceTag = "sentenceTag_example"; // String | 分类标签/Category tag
String order = rank; // String | 排序方式/Sorting method
String cityCode = 110000; // String | 城市代码/City code
try {
ResponseModel result = apiInstance.fetchCityHotListApiV1DouyinWebFetchCityHotListGet_0(page, pageSize, sentenceTag, order, cityCode);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCityHotListApiV1DouyinWebFetchCityHotListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
sentenceTag | String | 分类标签/Category tag | |
order | String | 排序方式/Sorting method | |
cityCode | String | 城市代码/City code |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCityListApiV1DouyinWebFetchCityListGet()
抖音城市列表/Douyin City List
[中文] ### 用途: - 抖音城市列表以及城市ID ### 返回: - 城市列表数据 # [English] ### Purpose: - Douyin City List and City ID ### Return: - City list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchCityListApiV1DouyinWebFetchCityListGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCityListApiV1DouyinWebFetchCityListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchCityListApiV1DouyinWebFetchCityListGet_0()
抖音城市列表/Douyin City List
[中文] ### 用途: - 抖音城市列表以及城市ID ### 返回: - 城市列表数据 # [English] ### Purpose: - Douyin City List and City ID ### Return: - City list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchCityListApiV1DouyinWebFetchCityListGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchCityListApiV1DouyinWebFetchCityListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchDouyinWebGuestCookieApiV1DouyinWebFetchDouyinWebGuestCookieGet(userAgent)
获取抖音Web的游客Cookie/Get the guest Cookie of Douyin Web
[中文] ### 用途: - 获取抖音Web的游客Cookie - 可以用于爬取抖音Web的数据,如用户作品、合辑作品等。 - 可以固定身份避免部分接口重复数据。 - 请注意:游客Cookie无法爬取所有数据,有一定的限制。 - 可以配合开源项目使用此接口实现抖音Web的数据爬取。 ### 参数: - user_agent: 用户浏览器代理 ### 返回: - 游客Cookie # [English] ### Purpose: - Get the guest Cookie of Douyin Web - Can be used to crawl data of Douyin Web, such as user videos, mix videos, etc. - Can fix identity to avoid duplicate data for some interfaces. - Please note: Guest Cookie cannot crawl all data, there are certain restrictions. - Can be used with open source projects to implement data crawling of Douyin Web using this interface. ### Parameters: - user_agent: User browser agent ### Return: - Guest Cookie # [示例/Example] user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36; // String | 用户浏览器代理/User browser agent
try {
ResponseModel result = apiInstance.fetchDouyinWebGuestCookieApiV1DouyinWebFetchDouyinWebGuestCookieGet(userAgent);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchDouyinWebGuestCookieApiV1DouyinWebFetchDouyinWebGuestCookieGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userAgent | String | 用户浏览器代理/User browser agent |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchDouyinWebGuestCookieApiV1DouyinWebFetchDouyinWebGuestCookieGet_0(userAgent)
获取抖音Web的游客Cookie/Get the guest Cookie of Douyin Web
[中文] ### 用途: - 获取抖音Web的游客Cookie - 可以用于爬取抖音Web的数据,如用户作品、合辑作品等。 - 可以固定身份避免部分接口重复数据。 - 请注意:游客Cookie无法爬取所有数据,有一定的限制。 - 可以配合开源项目使用此接口实现抖音Web的数据爬取。 ### 参数: - user_agent: 用户浏览器代理 ### 返回: - 游客Cookie # [English] ### Purpose: - Get the guest Cookie of Douyin Web - Can be used to crawl data of Douyin Web, such as user videos, mix videos, etc. - Can fix identity to avoid duplicate data for some interfaces. - Please note: Guest Cookie cannot crawl all data, there are certain restrictions. - Can be used with open source projects to implement data crawling of Douyin Web using this interface. ### Parameters: - user_agent: User browser agent ### Return: - Guest Cookie # [示例/Example] user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36; // String | 用户浏览器代理/User browser agent
try {
ResponseModel result = apiInstance.fetchDouyinWebGuestCookieApiV1DouyinWebFetchDouyinWebGuestCookieGet_0(userAgent);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchDouyinWebGuestCookieApiV1DouyinWebFetchDouyinWebGuestCookieGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userAgent | String | 用户浏览器代理/User browser agent |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchGameAwemeApiV1DouyinWebFetchGameAwemeGet(count, refreshIndex, cookie)
游戏作品推荐/Knowledge Video
[中文] ### 用途: - 知识作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 游戏作品数据 # [English] ### Purpose: - Knowledge Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Game Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchGameAwemeApiV1DouyinWebFetchGameAwemeGet(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchGameAwemeApiV1DouyinWebFetchGameAwemeGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchGameAwemeApiV1DouyinWebFetchGameAwemeGet_0(count, refreshIndex, cookie)
游戏作品推荐/Knowledge Video
[中文] ### 用途: - 知识作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 游戏作品数据 # [English] ### Purpose: - Knowledge Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Game Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchGameAwemeApiV1DouyinWebFetchGameAwemeGet_0(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchGameAwemeApiV1DouyinWebFetchGameAwemeGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchGeneralSearchResultApiV1DouyinWebFetchGeneralSearchResultGet(keyword, offset, count, sortType, publishTime, filterDuration, searchRange, contentType, searchId)
获取指定关键词的综合搜索结果/Get comprehensive search results of specified keywords
[中文] ### 用途: - 获取指定关键词的综合搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - sort_type: 0:综合排序 1:最多点赞 2:最新发布 - publish_time: 0:不限 1:最近一天 7:最近一周 180:最近半年 - filter_duration: 0:不限 0-1:1分钟以内 1-5:1-5分钟 5-10000:5分钟以上 -search_range: 0:不限 1:最近看过 2:还未看过 3:关注的人 -content_type: 0:不限 1:视频 2:图集 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### 返回: - 综合搜索结果 # [English] ### Purpose: - Get comprehensive search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - sort_type: 0: Comprehensive sorting 1: Most likes 2: Latest release - publish_time: 0: Unlimited 1: Last day 7: Last week 180: Last half year - filter_duration: 0: Unlimited 0-1: Within 1 minute 1-5: 1-5 minutes 5-10000: More than 5 minutes - search_range: 0: Unlimited 1: Recently viewed 2: Not yet viewed 3: Followed - content_type: 0: Unlimited 1: Video 2: Album - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### Return: - Comprehensive search results # [示例/Example] keyword = "中华娘" offset = 0 count = 20 sort_type = "0" publish_time = "0" filter_duration = "0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String sortType = "\"0\""; // String | 排序类型/Sort type
String publishTime = "\"0\""; // String | 发布时间/Publish time
String filterDuration = "\"0\""; // String | 视频时长/Duration filter
String searchRange = "\"0\""; // String | 搜索范围/Search range
String contentType = "\"0\""; // String | 内容类型/Content type
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchGeneralSearchResultApiV1DouyinWebFetchGeneralSearchResultGet(keyword, offset, count, sortType, publishTime, filterDuration, searchRange, contentType, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchGeneralSearchResultApiV1DouyinWebFetchGeneralSearchResultGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
sortType | String | 排序类型/Sort type | [optional] [default to "0"] |
publishTime | String | 发布时间/Publish time | [optional] [default to "0"] |
filterDuration | String | 视频时长/Duration filter | [optional] [default to "0"] |
searchRange | String | 搜索范围/Search range | [optional] [default to "0"] |
contentType | String | 内容类型/Content type | [optional] [default to "0"] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchGeneralSearchResultApiV1DouyinWebFetchGeneralSearchResultGet_0(keyword, offset, count, sortType, publishTime, filterDuration, searchRange, contentType, searchId)
获取指定关键词的综合搜索结果/Get comprehensive search results of specified keywords
[中文] ### 用途: - 获取指定关键词的综合搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - sort_type: 0:综合排序 1:最多点赞 2:最新发布 - publish_time: 0:不限 1:最近一天 7:最近一周 180:最近半年 - filter_duration: 0:不限 0-1:1分钟以内 1-5:1-5分钟 5-10000:5分钟以上 -search_range: 0:不限 1:最近看过 2:还未看过 3:关注的人 -content_type: 0:不限 1:视频 2:图集 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### 返回: - 综合搜索结果 # [English] ### Purpose: - Get comprehensive search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - sort_type: 0: Comprehensive sorting 1: Most likes 2: Latest release - publish_time: 0: Unlimited 1: Last day 7: Last week 180: Last half year - filter_duration: 0: Unlimited 0-1: Within 1 minute 1-5: 1-5 minutes 5-10000: More than 5 minutes - search_range: 0: Unlimited 1: Recently viewed 2: Not yet viewed 3: Followed - content_type: 0: Unlimited 1: Video 2: Album - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### Return: - Comprehensive search results # [示例/Example] keyword = "中华娘" offset = 0 count = 20 sort_type = "0" publish_time = "0" filter_duration = "0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String sortType = "\"0\""; // String | 排序类型/Sort type
String publishTime = "\"0\""; // String | 发布时间/Publish time
String filterDuration = "\"0\""; // String | 视频时长/Duration filter
String searchRange = "\"0\""; // String | 搜索范围/Search range
String contentType = "\"0\""; // String | 内容类型/Content type
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchGeneralSearchResultApiV1DouyinWebFetchGeneralSearchResultGet_0(keyword, offset, count, sortType, publishTime, filterDuration, searchRange, contentType, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchGeneralSearchResultApiV1DouyinWebFetchGeneralSearchResultGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
sortType | String | 排序类型/Sort type | [optional] [default to "0"] |
publishTime | String | 发布时间/Publish time | [optional] [default to "0"] |
filterDuration | String | 视频时长/Duration filter | [optional] [default to "0"] |
searchRange | String | 搜索范围/Search range | [optional] [default to "0"] |
contentType | String | 内容类型/Content type | [optional] [default to "0"] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHomeFeedApiV1DouyinWebFetchHomeFeedGet(count, refreshIndex)
获取首页推荐数据/Get home feed data
[中文] ### 用途: - 获取首页推荐数据 ### 参数: - count: 数量,默认为10,建议保持不变。 - refresh_index: 翻页索引,默认为0,然后每次增加1用于翻页。 ### 返回: - Feed数据 # [English] ### Purpose: - Get home feed data ### Parameters: - count: Number, default is 10, it is recommended to keep it unchanged. - refresh_index: Paging index, default is 0, then increase by 1 each time for paging. ### Return: - Feed data # [示例/Example] count = 10 refresh_index = 0
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 10; // Integer | 数量/Number
Integer refreshIndex = 0; // Integer | 翻页索引/Paging index
try {
ResponseModel result = apiInstance.fetchHomeFeedApiV1DouyinWebFetchHomeFeedGet(count, refreshIndex);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchHomeFeedApiV1DouyinWebFetchHomeFeedGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 数量/Number | [optional] [default to 10] |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHomeFeedApiV1DouyinWebFetchHomeFeedGet_0(count, refreshIndex)
获取首页推荐数据/Get home feed data
[中文] ### 用途: - 获取首页推荐数据 ### 参数: - count: 数量,默认为10,建议保持不变。 - refresh_index: 翻页索引,默认为0,然后每次增加1用于翻页。 ### 返回: - Feed数据 # [English] ### Purpose: - Get home feed data ### Parameters: - count: Number, default is 10, it is recommended to keep it unchanged. - refresh_index: Paging index, default is 0, then increase by 1 each time for paging. ### Return: - Feed data # [示例/Example] count = 10 refresh_index = 0
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 10; // Integer | 数量/Number
Integer refreshIndex = 0; // Integer | 翻页索引/Paging index
try {
ResponseModel result = apiInstance.fetchHomeFeedApiV1DouyinWebFetchHomeFeedGet_0(count, refreshIndex);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchHomeFeedApiV1DouyinWebFetchHomeFeedGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 数量/Number | [optional] [default to 10] |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHotListApiV1DouyinWebFetchHotListGet(page, pageSize, sentenceTag)
抖音热点总榜单/Douyin Hot List
[中文] ### 用途: - 抖音热点总榜单 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sentence_tag: 分类标签,默认为空 ### 返回: - 热点榜数据 # [English] ### Purpose: - Douyin Hot List ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 - sentence_tag: Category tag, default is empty ### Return: - Hotspot list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
String sentenceTag = "sentenceTag_example"; // String | 分类标签/Category tag
try {
ResponseModel result = apiInstance.fetchHotListApiV1DouyinWebFetchHotListGet(page, pageSize, sentenceTag);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchHotListApiV1DouyinWebFetchHotListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
sentenceTag | String | 分类标签/Category tag |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHotListApiV1DouyinWebFetchHotListGet_0(page, pageSize, sentenceTag)
抖音热点总榜单/Douyin Hot List
[中文] ### 用途: - 抖音热点总榜单 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sentence_tag: 分类标签,默认为空 ### 返回: - 热点榜数据 # [English] ### Purpose: - Douyin Hot List ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 - sentence_tag: Category tag, default is empty ### Return: - Hotspot list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
String sentenceTag = "sentenceTag_example"; // String | 分类标签/Category tag
try {
ResponseModel result = apiInstance.fetchHotListApiV1DouyinWebFetchHotListGet_0(page, pageSize, sentenceTag);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchHotListApiV1DouyinWebFetchHotListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
sentenceTag | String | 分类标签/Category tag |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHotSearchResultApiV1DouyinWebFetchHotSearchResultGet()
获取抖音热榜数据/Get Douyin hot search results
[中文] ### 用途: - 获取抖音热榜数据 ### 返回: - 热榜数据 # [English] ### Purpose: - Get Douyin hot search results ### Return: - Hot search results
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchHotSearchResultApiV1DouyinWebFetchHotSearchResultGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchHotSearchResultApiV1DouyinWebFetchHotSearchResultGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchHotSearchResultApiV1DouyinWebFetchHotSearchResultGet_0()
获取抖音热榜数据/Get Douyin hot search results
[中文] ### 用途: - 获取抖音热榜数据 ### 返回: - 热榜数据 # [English] ### Purpose: - Get Douyin hot search results ### Return: - Hot search results
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchHotSearchResultApiV1DouyinWebFetchHotSearchResultGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchHotSearchResultApiV1DouyinWebFetchHotSearchResultGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchKnowledgeAwemeApiV1DouyinWebFetchKnowledgeAwemeGet(count, refreshIndex, cookie)
知识作品推荐/Knowledge Video
[中文] ### 用途: - 知识作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 知识作品数据 # [English] ### Purpose: - Knowledge Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Knowledge Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchKnowledgeAwemeApiV1DouyinWebFetchKnowledgeAwemeGet(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchKnowledgeAwemeApiV1DouyinWebFetchKnowledgeAwemeGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchKnowledgeAwemeApiV1DouyinWebFetchKnowledgeAwemeGet_0(count, refreshIndex, cookie)
知识作品推荐/Knowledge Video
[中文] ### 用途: - 知识作品 ### 参数: - count: 每页数量,默认为16 - refresh_index: 翻页索引,默认为1 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 知识作品数据 # [English] ### Purpose: - Knowledge Video ### Parameters: - count: Number per page, default is 16 - refresh_index: Paging index, default is 1 - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Knowledge Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer count = 16; // Integer | 每页数量/Number per page
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchKnowledgeAwemeApiV1DouyinWebFetchKnowledgeAwemeGet_0(count, refreshIndex, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchKnowledgeAwemeApiV1DouyinWebFetchKnowledgeAwemeGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Integer | 每页数量/Number per page | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveGiftRankingApiV1DouyinWebFetchLiveGiftRankingGet(roomId, rankType)
获取直播间送礼用户排行榜/Get live room gift user ranking
[中文] ### 用途: - 获取直播间送礼用户排行榜 ### 参数: - room_id: 直播间room_id - rank_type: 排行类型,默认为30不用修改。 ### 返回: - 排行榜数据 # [English] ### Purpose: - Get live room gift user ranking ### Parameters: - room_id: Room room_id - rank_type: Leaderboard type, default is 30, no need to modify. ### Return: - Leaderboard data # [示例/Example] room_id = "7356585666190461731" rank_type = 30
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String roomId = 7356585666190461731; // String | 直播间room_id/Room room_id
Integer rankType = 30; // Integer | 排行类型/Leaderboard type
try {
ResponseModel result = apiInstance.fetchLiveGiftRankingApiV1DouyinWebFetchLiveGiftRankingGet(roomId, rankType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchLiveGiftRankingApiV1DouyinWebFetchLiveGiftRankingGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
roomId | String | 直播间room_id/Room room_id | |
rankType | Integer | 排行类型/Leaderboard type | [optional] [default to 30] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveGiftRankingApiV1DouyinWebFetchLiveGiftRankingGet_0(roomId, rankType)
获取直播间送礼用户排行榜/Get live room gift user ranking
[中文] ### 用途: - 获取直播间送礼用户排行榜 ### 参数: - room_id: 直播间room_id - rank_type: 排行类型,默认为30不用修改。 ### 返回: - 排行榜数据 # [English] ### Purpose: - Get live room gift user ranking ### Parameters: - room_id: Room room_id - rank_type: Leaderboard type, default is 30, no need to modify. ### Return: - Leaderboard data # [示例/Example] room_id = "7356585666190461731" rank_type = 30
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String roomId = 7356585666190461731; // String | 直播间room_id/Room room_id
Integer rankType = 30; // Integer | 排行类型/Leaderboard type
try {
ResponseModel result = apiInstance.fetchLiveGiftRankingApiV1DouyinWebFetchLiveGiftRankingGet_0(roomId, rankType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchLiveGiftRankingApiV1DouyinWebFetchLiveGiftRankingGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
roomId | String | 直播间room_id/Room room_id | |
rankType | Integer | 排行类型/Leaderboard type | [optional] [default to 30] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveRoomProductResultApiV1DouyinWebFetchLiveRoomProductResultGet(roomId, authorId, limit)
抖音直播间商品信息/Douyin live room product information
[中文] ### 用途: - 抖音直播间商品信息 ### 参数: - cookie: 用户网页版抖音Cookie(此接口需要用户提供自己的Cookie,如获取失败请手动过一次验证码) - room_id: 直播间room_id - author_id: 作者id - limit: 数量 ### 返回: - 商品信息 # [English] ### Purpose: - Douyin live room product information ### Parameters: - cookie: User's web version of Douyin Cookie (This interface requires users to provide their own Cookie, if the acquisition fails, please manually pass the captcha code once) - room_id: Room room_id - author_id: Author id - limit: Number ### Return: - Product information # [示例/Example] cookie = "YOUR_COOKIE" room_id = "7356742011975715619" author_id = "2207432981615527" limit = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String roomId = 7360830184578091776; // String | 直播间room_id/Room room_id
String authorId = 1714858898241277; // String | 作者id/Author id
Integer limit = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchLiveRoomProductResultApiV1DouyinWebFetchLiveRoomProductResultGet(roomId, authorId, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchLiveRoomProductResultApiV1DouyinWebFetchLiveRoomProductResultGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
roomId | String | 直播间room_id/Room room_id | |
authorId | String | 作者id/Author id | |
limit | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveRoomProductResultApiV1DouyinWebFetchLiveRoomProductResultGet_0(roomId, authorId, limit)
抖音直播间商品信息/Douyin live room product information
[中文] ### 用途: - 抖音直播间商品信息 ### 参数: - cookie: 用户网页版抖音Cookie(此接口需要用户提供自己的Cookie,如获取失败请手动过一次验证码) - room_id: 直播间room_id - author_id: 作者id - limit: 数量 ### 返回: - 商品信息 # [English] ### Purpose: - Douyin live room product information ### Parameters: - cookie: User's web version of Douyin Cookie (This interface requires users to provide their own Cookie, if the acquisition fails, please manually pass the captcha code once) - room_id: Room room_id - author_id: Author id - limit: Number ### Return: - Product information # [示例/Example] cookie = "YOUR_COOKIE" room_id = "7356742011975715619" author_id = "2207432981615527" limit = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String roomId = 7360830184578091776; // String | 直播间room_id/Room room_id
String authorId = 1714858898241277; // String | 作者id/Author id
Integer limit = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchLiveRoomProductResultApiV1DouyinWebFetchLiveRoomProductResultGet_0(roomId, authorId, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchLiveRoomProductResultApiV1DouyinWebFetchLiveRoomProductResultGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
roomId | String | 直播间room_id/Room room_id | |
authorId | String | 作者id/Author id | |
limit | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveSearchResultApiV1DouyinWebFetchLiveSearchResultGet(keyword, offset, count, searchId)
获取指定关键词的直播搜索结果/Get live search results of specified keywords
[中文] ### 用途: - 获取指定关键词的直播搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 ### 返回: - 直播搜索结果 # [English] ### Purpose: - Get live search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number ### Return: - Live search results # [示例/Example] keyword = "动漫" offset = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchLiveSearchResultApiV1DouyinWebFetchLiveSearchResultGet(keyword, offset, count, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchLiveSearchResultApiV1DouyinWebFetchLiveSearchResultGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveSearchResultApiV1DouyinWebFetchLiveSearchResultGet_0(keyword, offset, count, searchId)
获取指定关键词的直播搜索结果/Get live search results of specified keywords
[中文] ### 用途: - 获取指定关键词的直播搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 ### 返回: - 直播搜索结果 # [English] ### Purpose: - Get live search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number ### Return: - Live search results # [示例/Example] keyword = "动漫" offset = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchLiveSearchResultApiV1DouyinWebFetchLiveSearchResultGet_0(keyword, offset, count, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchLiveSearchResultApiV1DouyinWebFetchLiveSearchResultGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchMultiVideoApiV1DouyinWebFetchMultiVideoPost(requestBody)
批量获取视频信息/Batch Get Video Information
[中文] ### 用途: - 批量获取视频信息,支持图文、视频等,一次性最多支持50个视频,此接口收费固定价格为0.001$ * 50 = 0.05$一次。 ### 参数: - aweme_ids: 作品id列表,最多支持50个作品id。 ### 返回: - 作品数据 # [English] ### Purpose: - Batch Get Video Information, support photo, video, etc., up to 50 videos at a time, this interface charges a fixed price of 0.001$ * 50 = 0.05$ each time. ### Parameters: - aweme_ids: List of video ids, up to 50 video ids are supported. ### Return: - Video data # [示例/Example] aweme_ids = ["7372484719365098803", "7126745726494821640", "7372484719365098803", "7126745726494821640", "7372484719365098803", "7126745726494821640", "7372484719365098803", "7126745726494821640", "7372484719365098803", "7126745726494821640"]
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
List<String> requestBody = ["7372484719365098803","7126745726494821640","7372484719365098803","7126745726494821640","7372484719365098803","7126745726494821640","7372484719365098803","7126745726494821640","7372484719365098803","7126745726494821640"]; // List<String> |
try {
ResponseModel result = apiInstance.fetchMultiVideoApiV1DouyinWebFetchMultiVideoPost(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchMultiVideoApiV1DouyinWebFetchMultiVideoPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchMultiVideoApiV1DouyinWebFetchMultiVideoPost_0(requestBody)
批量获取视频信息/Batch Get Video Information
[中文] ### 用途: - 批量获取视频信息,支持图文、视频等,一次性最多支持50个视频,此接口收费固定价格为0.001$ * 50 = 0.05$一次。 ### 参数: - aweme_ids: 作品id列表,最多支持50个作品id。 ### 返回: - 作品数据 # [English] ### Purpose: - Batch Get Video Information, support photo, video, etc., up to 50 videos at a time, this interface charges a fixed price of 0.001$ * 50 = 0.05$ each time. ### Parameters: - aweme_ids: List of video ids, up to 50 video ids are supported. ### Return: - Video data # [示例/Example] aweme_ids = ["7372484719365098803", "7126745726494821640", "7372484719365098803", "7126745726494821640", "7372484719365098803", "7126745726494821640", "7372484719365098803", "7126745726494821640", "7372484719365098803", "7126745726494821640"]
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
List<String> requestBody = ["7372484719365098803","7126745726494821640","7372484719365098803","7126745726494821640","7372484719365098803","7126745726494821640","7372484719365098803","7126745726494821640","7372484719365098803","7126745726494821640"]; // List<String> |
try {
ResponseModel result = apiInstance.fetchMultiVideoApiV1DouyinWebFetchMultiVideoPost_0(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchMultiVideoApiV1DouyinWebFetchMultiVideoPost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoApiV1DouyinWebFetchOneVideoGet(awemeId)
获取单个作品数据,此接口即将废弃,请使用APP接口/Get single video data, this endpoint will be deprecated soon, please use APP endpoint
[中文] ### 用途: - 获取单个作品数据 - 此接口无法保障稳定性,如果有爬取单一视频需求,请使用下面的接口。 - /api/v1/douyin/app/v1/fetch_one_video - /api/v1/douyin/app/v2/fetch_one_video - /api/v1/douyin/app/v3/fetch_one_video ### 参数: - aweme_id: 作品id ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data - This interface cannot guarantee stability. If you need to crawl a single video, please use the following interface. - /api/v1/douyin/app/v1/fetch_one_video - /api/v1/douyin/app/v2/fetch_one_video - /api/v1/douyin/app/v3/fetch_one_video ### Parameters: - aweme_id: Video id ### Return: - Video data # [示例/Example] aweme_id = "7372484719365098803"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7372484719365098803; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchOneVideoApiV1DouyinWebFetchOneVideoGet(awemeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchOneVideoApiV1DouyinWebFetchOneVideoGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoApiV1DouyinWebFetchOneVideoGet_0(awemeId)
获取单个作品数据,此接口即将废弃,请使用APP接口/Get single video data, this endpoint will be deprecated soon, please use APP endpoint
[中文] ### 用途: - 获取单个作品数据 - 此接口无法保障稳定性,如果有爬取单一视频需求,请使用下面的接口。 - /api/v1/douyin/app/v1/fetch_one_video - /api/v1/douyin/app/v2/fetch_one_video - /api/v1/douyin/app/v3/fetch_one_video ### 参数: - aweme_id: 作品id ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data - This interface cannot guarantee stability. If you need to crawl a single video, please use the following interface. - /api/v1/douyin/app/v1/fetch_one_video - /api/v1/douyin/app/v2/fetch_one_video - /api/v1/douyin/app/v3/fetch_one_video ### Parameters: - aweme_id: Video id ### Return: - Video data # [示例/Example] aweme_id = "7372484719365098803"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7372484719365098803; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchOneVideoApiV1DouyinWebFetchOneVideoGet_0(awemeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchOneVideoApiV1DouyinWebFetchOneVideoGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoApiV1DouyinWebFetchOneVideoV2Get(awemeId)
获取单个作品数据 V2/Get single video data V2
[中文] ### 用途: - 获取单个作品数据V2 ### 参数: - aweme_id: 作品id ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data V2 ### Parameters: - aweme_id: Video id ### Return: - Video data # [示例/Example] aweme_id = "7372484719365098803"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7372484719365098803; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchOneVideoApiV1DouyinWebFetchOneVideoV2Get(awemeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchOneVideoApiV1DouyinWebFetchOneVideoV2Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoApiV1DouyinWebFetchOneVideoV2Get_0(awemeId)
获取单个作品数据 V2/Get single video data V2
[中文] ### 用途: - 获取单个作品数据V2 ### 参数: - aweme_id: 作品id ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data V2 ### Parameters: - aweme_id: Video id ### Return: - Video data # [示例/Example] aweme_id = "7372484719365098803"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7372484719365098803; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchOneVideoApiV1DouyinWebFetchOneVideoV2Get_0(awemeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchOneVideoApiV1DouyinWebFetchOneVideoV2Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoByShareUrlApiV1DouyinWebFetchOneVideoByShareUrlGet(shareUrl)
根据分享链接获取单个作品数据/Get single video data by sharing link
[中文] ### 用途: - 根据分享链接获取单个作品数据 ### 参数: - share_url: 分享链接 ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data by sharing link ### Parameters: - share_url: Share link ### Return: - Video data # [示例/Example] share_url = "https://v.douyin.com/e3x2fjE/\"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String shareUrl = https://v.douyin.com/e3x2fjE/; // String | 分享链接/Share link
try {
ResponseModel result = apiInstance.fetchOneVideoByShareUrlApiV1DouyinWebFetchOneVideoByShareUrlGet(shareUrl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchOneVideoByShareUrlApiV1DouyinWebFetchOneVideoByShareUrlGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
shareUrl | String | 分享链接/Share link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoByShareUrlApiV1DouyinWebFetchOneVideoByShareUrlGet_0(shareUrl)
根据分享链接获取单个作品数据/Get single video data by sharing link
[中文] ### 用途: - 根据分享链接获取单个作品数据 ### 参数: - share_url: 分享链接 ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data by sharing link ### Parameters: - share_url: Share link ### Return: - Video data # [示例/Example] share_url = "https://v.douyin.com/e3x2fjE/\"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String shareUrl = https://v.douyin.com/e3x2fjE/; // String | 分享链接/Share link
try {
ResponseModel result = apiInstance.fetchOneVideoByShareUrlApiV1DouyinWebFetchOneVideoByShareUrlGet_0(shareUrl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchOneVideoByShareUrlApiV1DouyinWebFetchOneVideoByShareUrlGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
shareUrl | String | 分享链接/Share link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoDanmakuApiV1DouyinWebFetchOneVideoDanmakuGet(itemId, duration, endTime, startTime)
获取单个作品视频弹幕数据/Get single video danmaku data
[中文] ### 用途: - 获取单个作品视频弹幕数据 ### 参数: - item_id: 作品id - duration: 视频总时长 - end_time: 结束时间 - start_time: 开始时间 ### 返回: - 视频弹幕数据 # [English] ### Purpose: - Get single video danmaku data ### Parameters: - item_id: Video id - duration: Video total duration - end_time: End time - start_time: Start time ### Return: - Video danmaku data # [示例/Example] item_id = "7355433624046472498" duration = 15134 end_time = 15133 start_time = 0
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String itemId = 7355433624046472498; // String | 作品id/Video id
Integer duration = 15134; // Integer | 视频总时长/Video total duration
Integer endTime = 15133; // Integer | 结束时间/End time
Integer startTime = 56; // Integer | 开始时间/Start time
try {
ResponseModel result = apiInstance.fetchOneVideoDanmakuApiV1DouyinWebFetchOneVideoDanmakuGet(itemId, duration, endTime, startTime);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchOneVideoDanmakuApiV1DouyinWebFetchOneVideoDanmakuGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
itemId | String | 作品id/Video id | |
duration | Integer | 视频总时长/Video total duration | |
endTime | Integer | 结束时间/End time | |
startTime | Integer | 开始时间/Start time |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoDanmakuApiV1DouyinWebFetchOneVideoDanmakuGet_0(itemId, duration, endTime, startTime)
获取单个作品视频弹幕数据/Get single video danmaku data
[中文] ### 用途: - 获取单个作品视频弹幕数据 ### 参数: - item_id: 作品id - duration: 视频总时长 - end_time: 结束时间 - start_time: 开始时间 ### 返回: - 视频弹幕数据 # [English] ### Purpose: - Get single video danmaku data ### Parameters: - item_id: Video id - duration: Video total duration - end_time: End time - start_time: Start time ### Return: - Video danmaku data # [示例/Example] item_id = "7355433624046472498" duration = 15134 end_time = 15133 start_time = 0
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String itemId = 7355433624046472498; // String | 作品id/Video id
Integer duration = 15134; // Integer | 视频总时长/Video total duration
Integer endTime = 15133; // Integer | 结束时间/End time
Integer startTime = 56; // Integer | 开始时间/Start time
try {
ResponseModel result = apiInstance.fetchOneVideoDanmakuApiV1DouyinWebFetchOneVideoDanmakuGet_0(itemId, duration, endTime, startTime);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchOneVideoDanmakuApiV1DouyinWebFetchOneVideoDanmakuGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
itemId | String | 作品id/Video id | |
duration | Integer | 视频总时长/Video total duration | |
endTime | Integer | 结束时间/End time | |
startTime | Integer | 开始时间/Start time |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchRealTimeChallengeListApiV1DouyinWebFetchRealTimeChallengeListGet(page, pageSize)
抖音实时挑战榜单/Douyin Real-time Challenge List
[中文] ### 用途: - 抖音实时挑战榜单 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 ### 返回: - 挑战榜数据 # [English] ### Purpose: - Douyin Real-time Challenge List ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 ### Return: - Challenge list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchRealTimeChallengeListApiV1DouyinWebFetchRealTimeChallengeListGet(page, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchRealTimeChallengeListApiV1DouyinWebFetchRealTimeChallengeListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchRealTimeChallengeListApiV1DouyinWebFetchRealTimeChallengeListGet_0(page, pageSize)
抖音实时挑战榜单/Douyin Real-time Challenge List
[中文] ### 用途: - 抖音实时挑战榜单 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 ### 返回: - 挑战榜数据 # [English] ### Purpose: - Douyin Real-time Challenge List ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 ### Return: - Challenge list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchRealTimeChallengeListApiV1DouyinWebFetchRealTimeChallengeListGet_0(page, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchRealTimeChallengeListApiV1DouyinWebFetchRealTimeChallengeListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchRealTimeRisingHotListApiV1DouyinWebFetchRealTimeRisingHotListGet(page, pageSize, sentenceTag, order)
抖音实时上升热点榜/Douyin Real-time Rising Hot List
[中文] ### 用途: - 抖音实时上升热点榜 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sentence_tag: 分类标签,默认为空 - order: 排序方式,默认为rank - rank: 按热度排名 - rank_diff: 按排名变化排名 ### 返回: - 热点榜数据 # [English] ### Purpose: - Douyin Real-time Rising Hot List ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 - sentence_tag: Category tag, default is empty - order: Sorting method, default is rank - rank: Sort by popularity ranking - rank_diff: Sort by ranking change ### Return: - Hotspot list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
String sentenceTag = "sentenceTag_example"; // String | 分类标签/Category tag
String order = rank; // String | 排序方式/Sorting method
try {
ResponseModel result = apiInstance.fetchRealTimeRisingHotListApiV1DouyinWebFetchRealTimeRisingHotListGet(page, pageSize, sentenceTag, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchRealTimeRisingHotListApiV1DouyinWebFetchRealTimeRisingHotListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
sentenceTag | String | 分类标签/Category tag | |
order | String | 排序方式/Sorting method |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchRealTimeRisingHotListApiV1DouyinWebFetchRealTimeRisingHotListGet_0(page, pageSize, sentenceTag, order)
抖音实时上升热点榜/Douyin Real-time Rising Hot List
[中文] ### 用途: - 抖音实时上升热点榜 ### 参数: - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sentence_tag: 分类标签,默认为空 - order: 排序方式,默认为rank - rank: 按热度排名 - rank_diff: 按排名变化排名 ### 返回: - 热点榜数据 # [English] ### Purpose: - Douyin Real-time Rising Hot List ### Parameters: - page: Page number, default is 1 - page_size: Number per page, default is 10 - sentence_tag: Category tag, default is empty - order: Sorting method, default is rank - rank: Sort by popularity ranking - rank_diff: Sort by ranking change ### Return: - Hotspot list data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
String sentenceTag = "sentenceTag_example"; // String | 分类标签/Category tag
String order = rank; // String | 排序方式/Sorting method
try {
ResponseModel result = apiInstance.fetchRealTimeRisingHotListApiV1DouyinWebFetchRealTimeRisingHotListGet_0(page, pageSize, sentenceTag, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchRealTimeRisingHotListApiV1DouyinWebFetchRealTimeRisingHotListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
sentenceTag | String | 分类标签/Category tag | |
order | String | 排序方式/Sorting method |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchRelatedPostsApiV1DouyinWebFetchRelatedPostsGet(awemeId, refreshIndex, count)
获取相关作品推荐数据/Get related posts recommendation data
[中文] ### 用途: - 获取相关作品推荐数据 ### 参数: - aweme_id: 作品id - refresh_index: 翻页索引,默认为1,然后每次增加1用于翻页。 - count: 数量,默认为20,建议保持不变。 ### 返回: - 作品数据 # [English] ### Purpose: - Get related posts recommendation data ### Parameters: - aweme_id: Video id - refresh_index: Paging index, default is 1, then increase by 1 each time for paging. - count: Number, default is 20, it is recommended to keep it unchanged. ### Return: - Video data # [示例/Example] aweme_id = "7393365489105358132" refresh_index = 1 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7393365489105358132; // String | 作品id/Video id
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchRelatedPostsApiV1DouyinWebFetchRelatedPostsGet(awemeId, refreshIndex, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchRelatedPostsApiV1DouyinWebFetchRelatedPostsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchRelatedPostsApiV1DouyinWebFetchRelatedPostsGet_0(awemeId, refreshIndex, count)
获取相关作品推荐数据/Get related posts recommendation data
[中文] ### 用途: - 获取相关作品推荐数据 ### 参数: - aweme_id: 作品id - refresh_index: 翻页索引,默认为1,然后每次增加1用于翻页。 - count: 数量,默认为20,建议保持不变。 ### 返回: - 作品数据 # [English] ### Purpose: - Get related posts recommendation data ### Parameters: - aweme_id: Video id - refresh_index: Paging index, default is 1, then increase by 1 each time for paging. - count: Number, default is 20, it is recommended to keep it unchanged. ### Return: - Video data # [示例/Example] aweme_id = "7393365489105358132" refresh_index = 1 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7393365489105358132; // String | 作品id/Video id
Integer refreshIndex = 1; // Integer | 翻页索引/Paging index
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchRelatedPostsApiV1DouyinWebFetchRelatedPostsGet_0(awemeId, refreshIndex, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchRelatedPostsApiV1DouyinWebFetchRelatedPostsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id | |
refreshIndex | Integer | 翻页索引/Paging index | [optional] [default to 1] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchChallengeApiV1DouyinWebFetchSearchChallengePost(searchChallengeRequest)
搜索话题/Search Challenge
[中文] ### 用途: - 搜索话题,此接口不带Cookie请求时只能获取到前30条数据,建议自行提供Cookie获取更多数据。 - Cookie获取方式:打开网页抖音,登录后,按F12打开开发者工具,点击Network,刷新页面,找到第一个请求,复制Cookie。 ### 参数: - keyword: 关键词 - cursor: 偏移量 - count: 数量 - cookie: 用户自行提供的Cookie,用于获取更多数据。 ### 返回: - 话题搜索结果 # [English] ### Purpose: - Search Challenge, when this interface is requested without Cookie, only the first 30 data can be obtained, it is recommended to provide Cookie to get more data. - Cookie acquisition method: Open the Douyin webpage, log in, press F12 to open the developer tool, click Network, refresh the page, find the first request, copy the Cookie. ### Parameters: - keyword: Keyword - cursor: Offset - count: Number - cookie: User provided Cookie, used to get more data. ### Return: - Challenge search results # [示例/Example] keyword = "动漫" cursor = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
SearchChallengeRequest searchChallengeRequest = new SearchChallengeRequest(); // SearchChallengeRequest |
try {
ResponseModel result = apiInstance.fetchSearchChallengeApiV1DouyinWebFetchSearchChallengePost(searchChallengeRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchSearchChallengeApiV1DouyinWebFetchSearchChallengePost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
searchChallengeRequest | SearchChallengeRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchChallengeApiV1DouyinWebFetchSearchChallengePost_0(searchChallengeRequest)
搜索话题/Search Challenge
[中文] ### 用途: - 搜索话题,此接口不带Cookie请求时只能获取到前30条数据,建议自行提供Cookie获取更多数据。 - Cookie获取方式:打开网页抖音,登录后,按F12打开开发者工具,点击Network,刷新页面,找到第一个请求,复制Cookie。 ### 参数: - keyword: 关键词 - cursor: 偏移量 - count: 数量 - cookie: 用户自行提供的Cookie,用于获取更多数据。 ### 返回: - 话题搜索结果 # [English] ### Purpose: - Search Challenge, when this interface is requested without Cookie, only the first 30 data can be obtained, it is recommended to provide Cookie to get more data. - Cookie acquisition method: Open the Douyin webpage, log in, press F12 to open the developer tool, click Network, refresh the page, find the first request, copy the Cookie. ### Parameters: - keyword: Keyword - cursor: Offset - count: Number - cookie: User provided Cookie, used to get more data. ### Return: - Challenge search results # [示例/Example] keyword = "动漫" cursor = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
SearchChallengeRequest searchChallengeRequest = new SearchChallengeRequest(); // SearchChallengeRequest |
try {
ResponseModel result = apiInstance.fetchSearchChallengeApiV1DouyinWebFetchSearchChallengePost_0(searchChallengeRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchSearchChallengeApiV1DouyinWebFetchSearchChallengePost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
searchChallengeRequest | SearchChallengeRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSeriesAwemeApiV1DouyinWebFetchSeriesAwemeGet(offset, count, contentType, cookie)
短剧作品/Series Video
[中文] ### 用途: - 短剧作品 ### 参数: - offset: 页码,默认为0 - count: 每页数量,默认为16 - content_type: 子类型,默认为0 - 0: 热榜 - 101: 甜宠 - 102: 搞笑 - 104: 正能量 - 105: 成长 - 106: 悬疑 - 109: 家庭 - 110: 都市 - 112: 奇幻 - 113: 玄幻 - 114: 职场 - 115: 青春 - 116: 古装 - 117: 动作 - 119: 逆袭 - 124: 其他 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 短剧作品数据 # [English] ### Purpose: - Series Video ### Parameters: - offset: Page number, default is 0 - count: Number per page, default is 16 - content_type: Subtype, default is 0 - 0: Hot list - 101: Sweet pet - 102: Funny - 104: Positive energy - 105: Growth - 106: Suspense - 109: Family - 110: Urban - 112: Fantasy - 113: Fantasy - 114: Workplace - 115: Youth - 116: Ancient costume - 117: Action - 119: Counterattack - 124: Other - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Series Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer offset = 56; // Integer | 页码/Page number
Integer count = 16; // Integer | 每页数量/Number per page
Integer contentType = 56; // Integer | 短剧类型/Subtype
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchSeriesAwemeApiV1DouyinWebFetchSeriesAwemeGet(offset, count, contentType, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchSeriesAwemeApiV1DouyinWebFetchSeriesAwemeGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
offset | Integer | 页码/Page number | |
count | Integer | 每页数量/Number per page | |
contentType | Integer | 短剧类型/Subtype | |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSeriesAwemeApiV1DouyinWebFetchSeriesAwemeGet_0(offset, count, contentType, cookie)
短剧作品/Series Video
[中文] ### 用途: - 短剧作品 ### 参数: - offset: 页码,默认为0 - count: 每页数量,默认为16 - content_type: 子类型,默认为0 - 0: 热榜 - 101: 甜宠 - 102: 搞笑 - 104: 正能量 - 105: 成长 - 106: 悬疑 - 109: 家庭 - 110: 都市 - 112: 奇幻 - 113: 玄幻 - 114: 职场 - 115: 青春 - 116: 古装 - 117: 动作 - 119: 逆袭 - 124: 其他 - cookie: 用户自行提供的Cookie,推荐使用自己的抖音Cookie,否则在翻页时可能会出现数据重复的问题 - 游客cookie获取接口:https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### 返回: - 短剧作品数据 # [English] ### Purpose: - Series Video ### Parameters: - offset: Page number, default is 0 - count: Number per page, default is 16 - content_type: Subtype, default is 0 - 0: Hot list - 101: Sweet pet - 102: Funny - 104: Positive energy - 105: Growth - 106: Suspense - 109: Family - 110: Urban - 112: Fantasy - 113: Fantasy - 114: Workplace - 115: Youth - 116: Ancient costume - 117: Action - 119: Counterattack - 124: Other - cookie: User provided Cookie, it is recommended to use your own Douyin Cookie, otherwise there may be a problem of data duplication when paging - Guest cookie acquisition interface: https://api.tikhub.io/api/v1/douyin/web/fetch_douyin_web_guest_cookie ### Return: - Series Video data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer offset = 56; // Integer | 页码/Page number
Integer count = 16; // Integer | 每页数量/Number per page
Integer contentType = 56; // Integer | 短剧类型/Subtype
String cookie = "cookie_example"; // String | 用户自行提供的Cookie/User provided Cookie
try {
ResponseModel result = apiInstance.fetchSeriesAwemeApiV1DouyinWebFetchSeriesAwemeGet_0(offset, count, contentType, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchSeriesAwemeApiV1DouyinWebFetchSeriesAwemeGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
offset | Integer | 页码/Page number | |
count | Integer | 每页数量/Number per page | |
contentType | Integer | 短剧类型/Subtype | |
cookie | String | 用户自行提供的Cookie/User provided Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserCollectionVideosApiV1DouyinWebFetchUserCollectionVideosGet(cookie, maxCursor, counts)
获取用户收藏作品数据/Get user collection video data
[中文] ### 用途: - 获取用户收藏作品数据 ### 参数: - cookie: 用户网页版抖音Cookie(此接口需要用户提供自己的Cookie) - max_cursor: 最大游标 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user collection video data ### Parameters: - cookie: User's web version of Douyin Cookie (This interface requires users to provide their own Cookie) - max_cursor: Maximum cursor - count: Maximum number ### Return: - User video data # [示例/Example] cookie = "YOUR_COOKIE" max_cursor = 0 counts = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String cookie = YOUR_COOKIE; // String | 用户网页版抖音Cookie/Your web version of Douyin Cookie
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserCollectionVideosApiV1DouyinWebFetchUserCollectionVideosGet(cookie, maxCursor, counts);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserCollectionVideosApiV1DouyinWebFetchUserCollectionVideosGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
cookie | String | 用户网页版抖音Cookie/Your web version of Douyin Cookie | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserCollectionVideosApiV1DouyinWebFetchUserCollectionVideosGet_0(cookie, maxCursor, counts)
获取用户收藏作品数据/Get user collection video data
[中文] ### 用途: - 获取用户收藏作品数据 ### 参数: - cookie: 用户网页版抖音Cookie(此接口需要用户提供自己的Cookie) - max_cursor: 最大游标 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user collection video data ### Parameters: - cookie: User's web version of Douyin Cookie (This interface requires users to provide their own Cookie) - max_cursor: Maximum cursor - count: Maximum number ### Return: - User video data # [示例/Example] cookie = "YOUR_COOKIE" max_cursor = 0 counts = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String cookie = YOUR_COOKIE; // String | 用户网页版抖音Cookie/Your web version of Douyin Cookie
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserCollectionVideosApiV1DouyinWebFetchUserCollectionVideosGet_0(cookie, maxCursor, counts);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserCollectionVideosApiV1DouyinWebFetchUserCollectionVideosGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
cookie | String | 用户网页版抖音Cookie/Your web version of Douyin Cookie | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserCollectsVideosApiV1DouyinWebFetchUserCollectsVideosGet(collectsId, maxCursor, counts)
获取用户收藏夹数据/Get user collection data
[中文] ### 用途: - 获取用户收藏夹数据 ### 参数: - collects_id: 收藏夹id - max_cursor: 最大游标 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user collection data ### Parameters: - collects_id: Collection id - max_cursor: Maximum cursor - count: Maximum number ### Return: - User video data # [示例/Example] collects_id = "" max_cursor = 0 counts = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String collectsId = "collectsId_example"; // String | 收藏夹id/Collection id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserCollectsVideosApiV1DouyinWebFetchUserCollectsVideosGet(collectsId, maxCursor, counts);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserCollectsVideosApiV1DouyinWebFetchUserCollectsVideosGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
collectsId | String | 收藏夹id/Collection id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserCollectsVideosApiV1DouyinWebFetchUserCollectsVideosGet_0(collectsId, maxCursor, counts)
获取用户收藏夹数据/Get user collection data
[中文] ### 用途: - 获取用户收藏夹数据 ### 参数: - collects_id: 收藏夹id - max_cursor: 最大游标 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user collection data ### Parameters: - collects_id: Collection id - max_cursor: Maximum cursor - count: Maximum number ### Return: - User video data # [示例/Example] collects_id = "" max_cursor = 0 counts = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String collectsId = "collectsId_example"; // String | 收藏夹id/Collection id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserCollectsVideosApiV1DouyinWebFetchUserCollectsVideosGet_0(collectsId, maxCursor, counts);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserCollectsVideosApiV1DouyinWebFetchUserCollectsVideosGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
collectsId | String | 收藏夹id/Collection id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFansInterestApiV1DouyinWebFetchUserFansInterestGet(secUid, interestType)
抖音用户粉丝兴趣/Douyin User Fans Interest
[中文] ### 用途: - 抖音用户粉丝兴趣 ### 参数: - sec_uid: 用户sec_uid - interest_type: 兴趣类型,默认为search - similar_author: 粉丝感兴趣同类型作者 - interest_topic: 粉丝近3天感兴趣的话题 - search: 粉丝近3天搜索词 ### 返回: - 用户粉丝兴趣数据 # [English] ### Purpose: - Douyin User Fans Interest ### Parameters: - sec_uid: Sec_uid of user - interest_type: Interest type, default is search - similar_author: Fans interested in the same type of author - interest_topic: Topics that fans are interested in the last 3 days - search: Search terms for fans in the last 3 days ### Return: - User fans interest data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAeYieCW7Pj5O1UK9slPzMKdZdPZaALVzuovX2T2wxwffeuBO1P1pw6xS6TgH0kRpL; // String | 用户sec_uid/Sec_uid of user
String interestType = search; // String | 兴趣类型/Interest type
try {
ResponseModel result = apiInstance.fetchUserFansInterestApiV1DouyinWebFetchUserFansInterestGet(secUid, interestType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserFansInterestApiV1DouyinWebFetchUserFansInterestGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUid | String | 用户sec_uid/Sec_uid of user | |
interestType | String | 兴趣类型/Interest type |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFansInterestApiV1DouyinWebFetchUserFansInterestGet_0(secUid, interestType)
抖音用户粉丝兴趣/Douyin User Fans Interest
[中文] ### 用途: - 抖音用户粉丝兴趣 ### 参数: - sec_uid: 用户sec_uid - interest_type: 兴趣类型,默认为search - similar_author: 粉丝感兴趣同类型作者 - interest_topic: 粉丝近3天感兴趣的话题 - search: 粉丝近3天搜索词 ### 返回: - 用户粉丝兴趣数据 # [English] ### Purpose: - Douyin User Fans Interest ### Parameters: - sec_uid: Sec_uid of user - interest_type: Interest type, default is search - similar_author: Fans interested in the same type of author - interest_topic: Topics that fans are interested in the last 3 days - search: Search terms for fans in the last 3 days ### Return: - User fans interest data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAeYieCW7Pj5O1UK9slPzMKdZdPZaALVzuovX2T2wxwffeuBO1P1pw6xS6TgH0kRpL; // String | 用户sec_uid/Sec_uid of user
String interestType = search; // String | 兴趣类型/Interest type
try {
ResponseModel result = apiInstance.fetchUserFansInterestApiV1DouyinWebFetchUserFansInterestGet_0(secUid, interestType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserFansInterestApiV1DouyinWebFetchUserFansInterestGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUid | String | 用户sec_uid/Sec_uid of user | |
interestType | String | 兴趣类型/Interest type |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFansListApiV1DouyinWebFetchUserFansListGet(secUserId, maxTime, count, sourceType)
获取用户粉丝列表/Get user fans list
[中文] ### 用途: - 获取用户粉丝列表 - 第一次请求时,max_time传`0`,source_type传`2`,然后会返回一个空的粉丝列表,里面包含了max_time,然后再次请求时,max_time传上一次请求返回的max_time,source_type传`1`,即可获取到粉丝列表。 - 如果不按照上述方式请求,可能会导致返回数据包含重复数据。 ### 参数: - sec_user_id: 用户sec_user_id - max_time: 最大时间戳,默认为0,后续从返回数据中获取,用于翻页。 - count: 数量,默认为20,建议保持不变。 - source_type: 来源类型,默认为`1`,第一次请求时使用`2`作为来源类型,然后再次请求时使用`1`作为来源类型。 ### 返回: - 粉丝列表 # [English] ### Purpose: - Get user fans list - When requesting for the first time, pass `0` for max_time, pass `2` for source_type, and an empty fans list will be returned, which contains max_time, then pass the max_time returned by the previous request for paging each time, pass `1` for source_type, you can get the fans list. - If you do not request according to the above method, it may cause the returned data to contain duplicate data. ### Parameters: - sec_user_id: User sec_user_id - max_time: Maximum timestamp, default is 0, get from the returned data later, used for paging. - count: Number, default is 20, it is recommended to keep it unchanged. - source_type: Source type, default is `1`, use `2` as the source type for the first request, and then use `1` as the source type for the subsequent request. ### Return: - Fans list # [示例/Example] sec_user = "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70" max_time = "0" count = 20 source_type = 2
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = "\"MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70\""; // String | 用户sec_user_id/User sec_user_id
String maxTime = "\"0\""; // String | 最大时间戳/Maximum timestamp
Integer count = 20; // Integer | 数量/Number
Integer sourceType = 1; // Integer | 来源类型/Source type
try {
ResponseModel result = apiInstance.fetchUserFansListApiV1DouyinWebFetchUserFansListGet(secUserId, maxTime, count, sourceType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserFansListApiV1DouyinWebFetchUserFansListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | [optional] [default to "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70"] |
maxTime | String | 最大时间戳/Maximum timestamp | [optional] [default to "0"] |
count | Integer | 数量/Number | [optional] [default to 20] |
sourceType | Integer | 来源类型/Source type | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFansListApiV1DouyinWebFetchUserFansListGet_0(secUserId, maxTime, count, sourceType)
获取用户粉丝列表/Get user fans list
[中文] ### 用途: - 获取用户粉丝列表 - 第一次请求时,max_time传`0`,source_type传`2`,然后会返回一个空的粉丝列表,里面包含了max_time,然后再次请求时,max_time传上一次请求返回的max_time,source_type传`1`,即可获取到粉丝列表。 - 如果不按照上述方式请求,可能会导致返回数据包含重复数据。 ### 参数: - sec_user_id: 用户sec_user_id - max_time: 最大时间戳,默认为0,后续从返回数据中获取,用于翻页。 - count: 数量,默认为20,建议保持不变。 - source_type: 来源类型,默认为`1`,第一次请求时使用`2`作为来源类型,然后再次请求时使用`1`作为来源类型。 ### 返回: - 粉丝列表 # [English] ### Purpose: - Get user fans list - When requesting for the first time, pass `0` for max_time, pass `2` for source_type, and an empty fans list will be returned, which contains max_time, then pass the max_time returned by the previous request for paging each time, pass `1` for source_type, you can get the fans list. - If you do not request according to the above method, it may cause the returned data to contain duplicate data. ### Parameters: - sec_user_id: User sec_user_id - max_time: Maximum timestamp, default is 0, get from the returned data later, used for paging. - count: Number, default is 20, it is recommended to keep it unchanged. - source_type: Source type, default is `1`, use `2` as the source type for the first request, and then use `1` as the source type for the subsequent request. ### Return: - Fans list # [示例/Example] sec_user = "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70" max_time = "0" count = 20 source_type = 2
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = "\"MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70\""; // String | 用户sec_user_id/User sec_user_id
String maxTime = "\"0\""; // String | 最大时间戳/Maximum timestamp
Integer count = 20; // Integer | 数量/Number
Integer sourceType = 1; // Integer | 来源类型/Source type
try {
ResponseModel result = apiInstance.fetchUserFansListApiV1DouyinWebFetchUserFansListGet_0(secUserId, maxTime, count, sourceType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserFansListApiV1DouyinWebFetchUserFansListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | [optional] [default to "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70"] |
maxTime | String | 最大时间戳/Maximum timestamp | [optional] [default to "0"] |
count | Integer | 数量/Number | [optional] [default to 20] |
sourceType | Integer | 来源类型/Source type | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFansPortraitApiV1DouyinWebFetchUserFansPortraitGet(secUid, option)
抖音用户粉丝画像/Douyin User Fans Portrait
[中文] ### 用途: - 抖音用户粉丝画像 ### 参数: - sec_uid: 用户sec_uid - option: 选项,默认为1 - 1: 粉丝手机价格分布 - 2: 粉丝性别分布 - 3: 粉丝年龄分布 - 4: 粉丝地域分布(省份) - 5: 粉丝地域分布(城市) - 6: 粉丝城市等级分布 - 7: 粉丝手机品牌分布 - 8: 粉丝兴趣 ### 返回: - 用户粉丝画像数据 # [English] ### Purpose: - Douyin User Fans Portrait ### Parameters: - sec_uid: Sec_uid of user - option: Option, default is 1 - 1: Fans mobile phone price distribution - 2: Fans gender distribution - 3: Fans age distribution - 4: Fans regional distribution (province) - 5: Fans regional distribution (city) - 6: Fans city level distribution - 7: Fans mobile phone brand distribution - 8: Fans interests ### Return: - User fans portrait data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAeYieCW7Pj5O1UK9slPzMKdZdPZaALVzuovX2T2wxwffeuBO1P1pw6xS6TgH0kRpL; // String | 用户sec_uid/Sec_uid of user
String option = 1; // String | 选项/Option
try {
ResponseModel result = apiInstance.fetchUserFansPortraitApiV1DouyinWebFetchUserFansPortraitGet(secUid, option);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserFansPortraitApiV1DouyinWebFetchUserFansPortraitGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUid | String | 用户sec_uid/Sec_uid of user | |
option | String | 选项/Option | [optional] [default to "1"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFansPortraitApiV1DouyinWebFetchUserFansPortraitGet_0(secUid, option)
抖音用户粉丝画像/Douyin User Fans Portrait
[中文] ### 用途: - 抖音用户粉丝画像 ### 参数: - sec_uid: 用户sec_uid - option: 选项,默认为1 - 1: 粉丝手机价格分布 - 2: 粉丝性别分布 - 3: 粉丝年龄分布 - 4: 粉丝地域分布(省份) - 5: 粉丝地域分布(城市) - 6: 粉丝城市等级分布 - 7: 粉丝手机品牌分布 - 8: 粉丝兴趣 ### 返回: - 用户粉丝画像数据 # [English] ### Purpose: - Douyin User Fans Portrait ### Parameters: - sec_uid: Sec_uid of user - option: Option, default is 1 - 1: Fans mobile phone price distribution - 2: Fans gender distribution - 3: Fans age distribution - 4: Fans regional distribution (province) - 5: Fans regional distribution (city) - 6: Fans city level distribution - 7: Fans mobile phone brand distribution - 8: Fans interests ### Return: - User fans portrait data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAeYieCW7Pj5O1UK9slPzMKdZdPZaALVzuovX2T2wxwffeuBO1P1pw6xS6TgH0kRpL; // String | 用户sec_uid/Sec_uid of user
String option = 1; // String | 选项/Option
try {
ResponseModel result = apiInstance.fetchUserFansPortraitApiV1DouyinWebFetchUserFansPortraitGet_0(secUid, option);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserFansPortraitApiV1DouyinWebFetchUserFansPortraitGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUid | String | 用户sec_uid/Sec_uid of user | |
option | String | 选项/Option | [optional] [default to "1"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowingListApiV1DouyinWebFetchUserFollowingListGet(secUserId, maxTime, count, sourceType)
获取用户关注列表/Get user following list
[中文] ### 用途: - 获取用户关注列表 - 第一次请求时,max_time传`0`,source_type传`2`,然后会返回一个空的粉丝列表,里面包含了max_time,然后再次请求时,max_time传上一次请求返回的max_time,source_type传`1`,即可获取到粉丝列表。 - 如果不按照上述方式请求,可能会导致返回数据包含重复数据。 ### 参数: - sec_user_id: 用户sec_user_id - max_time: 最大时间戳,默认为0,后续从返回数据中获取,用于翻页。 - count: 数量,默认为20,建议保持不变。 - source_type: 来源类型,默认为`1`,第一次请求时使用`2`作为来源类型,然后再次请求时使用`1`作为来源类型。 ### 返回: - 关注列表 # [English] ### Purpose: - Get user following list - When requesting for the first time, pass `0` for max_time, pass `2` for source_type, and an empty fans list will be returned, which contains max_time, then pass the max_time returned by the previous request for paging each time, pass `1` for source_type, you can get the fans list. - If you do not request according to the above method, it may cause the returned data to contain duplicate data. ### Parameters: - sec_user_id: User sec_user_id - max_time: Maximum timestamp, default is 0, get from the returned data later, used for paging. - count: Number, default is 20, it is recommended to keep it unchanged. - source_type: Source type, default is `1`, use `2` as the source type for the first request, and then use `1` as the source type for the subsequent request. ### Return: - Following list # [示例/Example] sec_user = "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70" max_time = "0" count = 20 source_type = 2
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = "\"MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70\""; // String | 用户sec_user_id/User sec_user_id
String maxTime = "\"0\""; // String | 最大时间戳/Maximum timestamp
Integer count = 20; // Integer | 数量/Number
Integer sourceType = 1; // Integer | 来源类型/Source type
try {
ResponseModel result = apiInstance.fetchUserFollowingListApiV1DouyinWebFetchUserFollowingListGet(secUserId, maxTime, count, sourceType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserFollowingListApiV1DouyinWebFetchUserFollowingListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | [optional] [default to "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70"] |
maxTime | String | 最大时间戳/Maximum timestamp | [optional] [default to "0"] |
count | Integer | 数量/Number | [optional] [default to 20] |
sourceType | Integer | 来源类型/Source type | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowingListApiV1DouyinWebFetchUserFollowingListGet_0(secUserId, maxTime, count, sourceType)
获取用户关注列表/Get user following list
[中文] ### 用途: - 获取用户关注列表 - 第一次请求时,max_time传`0`,source_type传`2`,然后会返回一个空的粉丝列表,里面包含了max_time,然后再次请求时,max_time传上一次请求返回的max_time,source_type传`1`,即可获取到粉丝列表。 - 如果不按照上述方式请求,可能会导致返回数据包含重复数据。 ### 参数: - sec_user_id: 用户sec_user_id - max_time: 最大时间戳,默认为0,后续从返回数据中获取,用于翻页。 - count: 数量,默认为20,建议保持不变。 - source_type: 来源类型,默认为`1`,第一次请求时使用`2`作为来源类型,然后再次请求时使用`1`作为来源类型。 ### 返回: - 关注列表 # [English] ### Purpose: - Get user following list - When requesting for the first time, pass `0` for max_time, pass `2` for source_type, and an empty fans list will be returned, which contains max_time, then pass the max_time returned by the previous request for paging each time, pass `1` for source_type, you can get the fans list. - If you do not request according to the above method, it may cause the returned data to contain duplicate data. ### Parameters: - sec_user_id: User sec_user_id - max_time: Maximum timestamp, default is 0, get from the returned data later, used for paging. - count: Number, default is 20, it is recommended to keep it unchanged. - source_type: Source type, default is `1`, use `2` as the source type for the first request, and then use `1` as the source type for the subsequent request. ### Return: - Following list # [示例/Example] sec_user = "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70" max_time = "0" count = 20 source_type = 2
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = "\"MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70\""; // String | 用户sec_user_id/User sec_user_id
String maxTime = "\"0\""; // String | 最大时间戳/Maximum timestamp
Integer count = 20; // Integer | 数量/Number
Integer sourceType = 1; // Integer | 来源类型/Source type
try {
ResponseModel result = apiInstance.fetchUserFollowingListApiV1DouyinWebFetchUserFollowingListGet_0(secUserId, maxTime, count, sourceType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserFollowingListApiV1DouyinWebFetchUserFollowingListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | [optional] [default to "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70"] |
maxTime | String | 最大时间戳/Maximum timestamp | [optional] [default to "0"] |
count | Integer | 数量/Number | [optional] [default to 20] |
sourceType | Integer | 来源类型/Source type | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLikeVideosApiV1DouyinWebFetchUserLikeVideosGet(secUserId, maxCursor, counts, cookie)
获取用户喜欢作品数据/Get user like video data
[中文] ### 用途: - 获取用户喜欢作品数据 ### 参数: - sec_user_id: 用户sec_user_id - max_cursor: 最大游标 - count: 最大数量 - cookie: 用户网页版抖音Cookie(此接口需要用户提供自己的Cookie) ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user like video data ### Parameters: - sec_user_id: User sec_user_id - max_cursor: Maximum cursor - count: Maximum count number - cookie: User's web version of Douyin Cookie (This interface requires users to provide their own Cookie) ### Return: - User video data # [示例/Example] sec_user_id = "MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y" max_cursor = 0 counts = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y; // String | 用户sec_user_id/User sec_user_id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
String cookie = "cookie_example"; // String | 用户网页版抖音Cookie/Your web version of Douyin Cookie
try {
ResponseModel result = apiInstance.fetchUserLikeVideosApiV1DouyinWebFetchUserLikeVideosGet(secUserId, maxCursor, counts, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLikeVideosApiV1DouyinWebFetchUserLikeVideosGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
cookie | String | 用户网页版抖音Cookie/Your web version of Douyin Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLikeVideosApiV1DouyinWebFetchUserLikeVideosGet_0(secUserId, maxCursor, counts, cookie)
获取用户喜欢作品数据/Get user like video data
[中文] ### 用途: - 获取用户喜欢作品数据 ### 参数: - sec_user_id: 用户sec_user_id - max_cursor: 最大游标 - count: 最大数量 - cookie: 用户网页版抖音Cookie(此接口需要用户提供自己的Cookie) ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user like video data ### Parameters: - sec_user_id: User sec_user_id - max_cursor: Maximum cursor - count: Maximum count number - cookie: User's web version of Douyin Cookie (This interface requires users to provide their own Cookie) ### Return: - User video data # [示例/Example] sec_user_id = "MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y" max_cursor = 0 counts = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y; // String | 用户sec_user_id/User sec_user_id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
String cookie = "cookie_example"; // String | 用户网页版抖音Cookie/Your web version of Douyin Cookie
try {
ResponseModel result = apiInstance.fetchUserLikeVideosApiV1DouyinWebFetchUserLikeVideosGet_0(secUserId, maxCursor, counts, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLikeVideosApiV1DouyinWebFetchUserLikeVideosGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
cookie | String | 用户网页版抖音Cookie/Your web version of Douyin Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveInfoByUidApiV1DouyinWebFetchUserLiveInfoByUidGet(uid)
使用UID获取用户开播信息/Get user live information by UID
[中文] ### 用途: - 使用UID获取用户开播信息 ### 参数: - uid: 用户UID ### 返回: - 用户开播信息,包含room_id与live_status # [English] ### Purpose: - Get user live information by UID ### Parameters: - uid: User UID ### Return: - User live information, including room_id and live_status # [示例/Example] uid = "3081254195702747"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String uid = 3081254195702747; // String | 用户UID/User UID
try {
ResponseModel result = apiInstance.fetchUserLiveInfoByUidApiV1DouyinWebFetchUserLiveInfoByUidGet(uid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveInfoByUidApiV1DouyinWebFetchUserLiveInfoByUidGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户UID/User UID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveInfoByUidApiV1DouyinWebFetchUserLiveInfoByUidGet_0(uid)
使用UID获取用户开播信息/Get user live information by UID
[中文] ### 用途: - 使用UID获取用户开播信息 ### 参数: - uid: 用户UID ### 返回: - 用户开播信息,包含room_id与live_status # [English] ### Purpose: - Get user live information by UID ### Parameters: - uid: User UID ### Return: - User live information, including room_id and live_status # [示例/Example] uid = "3081254195702747"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String uid = 3081254195702747; // String | 用户UID/User UID
try {
ResponseModel result = apiInstance.fetchUserLiveInfoByUidApiV1DouyinWebFetchUserLiveInfoByUidGet_0(uid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveInfoByUidApiV1DouyinWebFetchUserLiveInfoByUidGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户UID/User UID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveVideosApiV1DouyinWebFetchUserLiveVideosGet(webcastId)
获取用户直播流数据/Get user live video data
[中文] ### 用途: - 获取用户直播流数据 ### 参数: - webcast_id: 直播间 webcast_id - 获取方法: - 假设你的直播间链接为:https://www.douyin.com/root/live/376034101029 - 那么直播间webcast_id为:376034101029 - webcast_id为直播间链接的最后一段数字,与room_id不同。 ### 返回: - 直播流数据 # [English] ### Purpose: - Get user live video data ### Parameters: - webcast_id: Room webcast_id - Acquisition method: - Assuming your live room link is: https://www.douyin.com/root/live/376034101029 - Then the live room webcast_id is: 376034101029 - The webcast_id is the last number of the live room link, which is different from the room_id. ### Return: - Live stream data # [示例/Example] webcast_id = "376034101029"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String webcastId = 376034101029; // String | 直播间webcast_id/Room webcast_id
try {
ResponseModel result = apiInstance.fetchUserLiveVideosApiV1DouyinWebFetchUserLiveVideosGet(webcastId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveVideosApiV1DouyinWebFetchUserLiveVideosGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webcastId | String | 直播间webcast_id/Room webcast_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveVideosApiV1DouyinWebFetchUserLiveVideosGet_0(webcastId)
获取用户直播流数据/Get user live video data
[中文] ### 用途: - 获取用户直播流数据 ### 参数: - webcast_id: 直播间 webcast_id - 获取方法: - 假设你的直播间链接为:https://www.douyin.com/root/live/376034101029 - 那么直播间webcast_id为:376034101029 - webcast_id为直播间链接的最后一段数字,与room_id不同。 ### 返回: - 直播流数据 # [English] ### Purpose: - Get user live video data ### Parameters: - webcast_id: Room webcast_id - Acquisition method: - Assuming your live room link is: https://www.douyin.com/root/live/376034101029 - Then the live room webcast_id is: 376034101029 - The webcast_id is the last number of the live room link, which is different from the room_id. ### Return: - Live stream data # [示例/Example] webcast_id = "376034101029"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String webcastId = 376034101029; // String | 直播间webcast_id/Room webcast_id
try {
ResponseModel result = apiInstance.fetchUserLiveVideosApiV1DouyinWebFetchUserLiveVideosGet_0(webcastId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveVideosApiV1DouyinWebFetchUserLiveVideosGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webcastId | String | 直播间webcast_id/Room webcast_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveVideosByRoomIdApiV1DouyinWebFetchUserLiveVideosByRoomIdGet(roomId)
获取指定用户的直播流数据/Get live video data of specified user
[中文] ### 用途: - 获取指定用户的直播流数据 ### 参数: - room_id: 直播间room_id ### 返回: - 直播流数据 # [English] ### Purpose: - Get live video data of specified user ### Parameters: - room_id: Room room_id ### Return: - Live stream data # [示例/Example] room_id = "7318296342189919011"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String roomId = 7318296342189919011; // String | 直播间room_id/Room room_id
try {
ResponseModel result = apiInstance.fetchUserLiveVideosByRoomIdApiV1DouyinWebFetchUserLiveVideosByRoomIdGet(roomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveVideosByRoomIdApiV1DouyinWebFetchUserLiveVideosByRoomIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
roomId | String | 直播间room_id/Room room_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveVideosByRoomIdApiV1DouyinWebFetchUserLiveVideosByRoomIdGet_0(roomId)
获取指定用户的直播流数据/Get live video data of specified user
[中文] ### 用途: - 获取指定用户的直播流数据 ### 参数: - room_id: 直播间room_id ### 返回: - 直播流数据 # [English] ### Purpose: - Get live video data of specified user ### Parameters: - room_id: Room room_id ### Return: - Live stream data # [示例/Example] room_id = "7318296342189919011"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String roomId = 7318296342189919011; // String | 直播间room_id/Room room_id
try {
ResponseModel result = apiInstance.fetchUserLiveVideosByRoomIdApiV1DouyinWebFetchUserLiveVideosByRoomIdGet_0(roomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveVideosByRoomIdApiV1DouyinWebFetchUserLiveVideosByRoomIdGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
roomId | String | 直播间room_id/Room room_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveVideosByRoomIdV2ApiV1DouyinWebFetchUserLiveVideosByRoomIdV2Get(roomId)
获取指定用户的直播流数据V2/Gets the live stream data of the specified user V2
[中文] ### 用途: - 获取指定用户的直播流数据V2 ### 参数: - room_id: 直播间room_id ### 返回: - 直播流数据 # [English] ### Purpose: - Gets the live stream data of the specified user V2 ### Parameters: - room_id: Room room_id ### Return: - Live stream data # [示例/Example] room_id = "7462723839303093032"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String roomId = 7462723839303093032; // String | 直播间room_id/Room room_id
try {
ResponseModel result = apiInstance.fetchUserLiveVideosByRoomIdV2ApiV1DouyinWebFetchUserLiveVideosByRoomIdV2Get(roomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveVideosByRoomIdV2ApiV1DouyinWebFetchUserLiveVideosByRoomIdV2Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
roomId | String | 直播间room_id/Room room_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveVideosByRoomIdV2ApiV1DouyinWebFetchUserLiveVideosByRoomIdV2Get_0(roomId)
获取指定用户的直播流数据V2/Gets the live stream data of the specified user V2
[中文] ### 用途: - 获取指定用户的直播流数据V2 ### 参数: - room_id: 直播间room_id ### 返回: - 直播流数据 # [English] ### Purpose: - Gets the live stream data of the specified user V2 ### Parameters: - room_id: Room room_id ### Return: - Live stream data # [示例/Example] room_id = "7462723839303093032"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String roomId = 7462723839303093032; // String | 直播间room_id/Room room_id
try {
ResponseModel result = apiInstance.fetchUserLiveVideosByRoomIdV2ApiV1DouyinWebFetchUserLiveVideosByRoomIdV2Get_0(roomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveVideosByRoomIdV2ApiV1DouyinWebFetchUserLiveVideosByRoomIdV2Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
roomId | String | 直播间room_id/Room room_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveVideosBySecUidApiV1DouyinWebFetchUserLiveVideosBySecUidGet(secUid)
通过sec_uid获取指定用户的直播流数据/Get live video data of specified user by sec_uid
[中文] ### 用途: - 通过sec_uid获取指定用户的直播流数据 ### 参数: - sec_uid: 用户sec_uid,也叫 sec_user_id,可以在用户主页链接中找到。 ### 返回: - 直播流数据 # [English] ### Purpose - Get live video data of specified user by sec_uid ### Parameters - sec_uid: User sec_uid, also called sec_user_id, can be found in the user's homepage link. ### Return - Live stream data # [示例/Example] sec_uid = "MS4wLjABAAAAAIKOBr_x6p2fPVKOAhqG8LrC1lwwdWChifKEsl-TXFS-kGSGqpMBRexJdzoAfvUF"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAAIKOBr_x6p2fPVKOAhqG8LrC1lwwdWChifKEsl-TXFS-kGSGqpMBRexJdzoAfvUF; // String | 用户sec_uid/User sec_uid
try {
ResponseModel result = apiInstance.fetchUserLiveVideosBySecUidApiV1DouyinWebFetchUserLiveVideosBySecUidGet(secUid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveVideosBySecUidApiV1DouyinWebFetchUserLiveVideosBySecUidGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUid | String | 用户sec_uid/User sec_uid |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLiveVideosBySecUidApiV1DouyinWebFetchUserLiveVideosBySecUidGet_0(secUid)
通过sec_uid获取指定用户的直播流数据/Get live video data of specified user by sec_uid
[中文] ### 用途: - 通过sec_uid获取指定用户的直播流数据 ### 参数: - sec_uid: 用户sec_uid,也叫 sec_user_id,可以在用户主页链接中找到。 ### 返回: - 直播流数据 # [English] ### Purpose - Get live video data of specified user by sec_uid ### Parameters - sec_uid: User sec_uid, also called sec_user_id, can be found in the user's homepage link. ### Return - Live stream data # [示例/Example] sec_uid = "MS4wLjABAAAAAIKOBr_x6p2fPVKOAhqG8LrC1lwwdWChifKEsl-TXFS-kGSGqpMBRexJdzoAfvUF"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAAIKOBr_x6p2fPVKOAhqG8LrC1lwwdWChifKEsl-TXFS-kGSGqpMBRexJdzoAfvUF; // String | 用户sec_uid/User sec_uid
try {
ResponseModel result = apiInstance.fetchUserLiveVideosBySecUidApiV1DouyinWebFetchUserLiveVideosBySecUidGet_0(secUid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserLiveVideosBySecUidApiV1DouyinWebFetchUserLiveVideosBySecUidGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUid | String | 用户sec_uid/User sec_uid |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserMixVideosApiV1DouyinWebFetchUserMixVideosGet(mixId, maxCursor, counts)
获取用户合辑作品数据/Get user mix video data
[中文] ### 用途: - 获取用户合辑作品数据 ### 参数: - mix_id: 合辑id - max_cursor: 最大游标 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user mix video data ### Parameters: - mix_id: Mix id - max_cursor: Maximum cursor - count: Maximum number ### Return: - User video data # [示例/Example] url = https://www.douyin.com/collection/7348687990509553679 mix_id = "7348687990509553679" max_cursor = 0 counts = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String mixId = 7348687990509553679; // String | 合辑id/Mix id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserMixVideosApiV1DouyinWebFetchUserMixVideosGet(mixId, maxCursor, counts);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserMixVideosApiV1DouyinWebFetchUserMixVideosGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
mixId | String | 合辑id/Mix id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserMixVideosApiV1DouyinWebFetchUserMixVideosGet_0(mixId, maxCursor, counts)
获取用户合辑作品数据/Get user mix video data
[中文] ### 用途: - 获取用户合辑作品数据 ### 参数: - mix_id: 合辑id - max_cursor: 最大游标 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user mix video data ### Parameters: - mix_id: Mix id - max_cursor: Maximum cursor - count: Maximum number ### Return: - User video data # [示例/Example] url = https://www.douyin.com/collection/7348687990509553679 mix_id = "7348687990509553679" max_cursor = 0 counts = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String mixId = 7348687990509553679; // String | 合辑id/Mix id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserMixVideosApiV1DouyinWebFetchUserMixVideosGet_0(mixId, maxCursor, counts);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserMixVideosApiV1DouyinWebFetchUserMixVideosGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
mixId | String | 合辑id/Mix id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPostVideosApiV1DouyinWebFetchUserPostVideosGet(secUserId, maxCursor, count, filterType, cookie)
获取用户主页作品数据/Get user homepage video data
[中文] ### 用途: - 获取用户主页作品数据 - 注意:请尽量使用APP的接口而不是WEB的接口,因为WEB的接口可能会被不稳定。 ### 参数: - sec_user_id: 用户sec_user_id - max_cursor: 翻页游标,第一次请求传0,然后每次请求传上一次请求返回的max_cursor进行翻页。 - count: 最大数量,建议不要超过20 - filter_type: 过滤类型,可选参数如下: - 0: 默认排序 - 3: 热度排序 - cookie: 用户网页版抖音Cookie(此接口可以接受用户提供自己的Cookie) ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user homepage video data - Note: Please try to use the APP interface instead of the WEB API, because the WEB API may be unstable. ### Parameters: - sec_user_id: User sec_user_id - max_cursor: Paging cursor, pass 0 for the first request, and then pass the max_cursor returned by the previous request for paging each time. - count: Maximum count number, it is recommended not to exceed 20 - filter_type: Filter type, optional parameters are as follows: - 0: Default sorting - 3: Sort by popularity - cookie: User's web version of Douyin Cookie (This interface can accept users to provide their own Cookie) ### Return: - User video data # [示例/Example] sec_user_id = "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE" max_cursor = "0" counts = 20 filter_type = "0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE; // String | 用户sec_user_id/User sec_user_id
String maxCursor = "\"0\""; // String | 最大游标/Maximum cursor
Integer count = 20; // Integer | 每页数量/Number per page
String filterType = "\"0\""; // String | 过滤类型/Filter type
String cookie = "cookie_example"; // String | 用户网页版抖音Cookie/Your web version of Douyin Cookie
try {
ResponseModel result = apiInstance.fetchUserPostVideosApiV1DouyinWebFetchUserPostVideosGet(secUserId, maxCursor, count, filterType, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserPostVideosApiV1DouyinWebFetchUserPostVideosGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
maxCursor | String | 最大游标/Maximum cursor | [optional] [default to "0"] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
filterType | String | 过滤类型/Filter type | [optional] [default to "0"] |
cookie | String | 用户网页版抖音Cookie/Your web version of Douyin Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPostVideosApiV1DouyinWebFetchUserPostVideosGet_0(secUserId, maxCursor, count, filterType, cookie)
获取用户主页作品数据/Get user homepage video data
[中文] ### 用途: - 获取用户主页作品数据 - 注意:请尽量使用APP的接口而不是WEB的接口,因为WEB的接口可能会被不稳定。 ### 参数: - sec_user_id: 用户sec_user_id - max_cursor: 翻页游标,第一次请求传0,然后每次请求传上一次请求返回的max_cursor进行翻页。 - count: 最大数量,建议不要超过20 - filter_type: 过滤类型,可选参数如下: - 0: 默认排序 - 3: 热度排序 - cookie: 用户网页版抖音Cookie(此接口可以接受用户提供自己的Cookie) ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user homepage video data - Note: Please try to use the APP interface instead of the WEB API, because the WEB API may be unstable. ### Parameters: - sec_user_id: User sec_user_id - max_cursor: Paging cursor, pass 0 for the first request, and then pass the max_cursor returned by the previous request for paging each time. - count: Maximum count number, it is recommended not to exceed 20 - filter_type: Filter type, optional parameters are as follows: - 0: Default sorting - 3: Sort by popularity - cookie: User's web version of Douyin Cookie (This interface can accept users to provide their own Cookie) ### Return: - User video data # [示例/Example] sec_user_id = "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE" max_cursor = "0" counts = 20 filter_type = "0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE; // String | 用户sec_user_id/User sec_user_id
String maxCursor = "\"0\""; // String | 最大游标/Maximum cursor
Integer count = 20; // Integer | 每页数量/Number per page
String filterType = "\"0\""; // String | 过滤类型/Filter type
String cookie = "cookie_example"; // String | 用户网页版抖音Cookie/Your web version of Douyin Cookie
try {
ResponseModel result = apiInstance.fetchUserPostVideosApiV1DouyinWebFetchUserPostVideosGet_0(secUserId, maxCursor, count, filterType, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserPostVideosApiV1DouyinWebFetchUserPostVideosGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
maxCursor | String | 最大游标/Maximum cursor | [optional] [default to "0"] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
filterType | String | 过滤类型/Filter type | [optional] [default to "0"] |
cookie | String | 用户网页版抖音Cookie/Your web version of Douyin Cookie | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserProfileByShortIdApiV1DouyinWebFetchUserProfileByShortIdGet(shortId)
使用Short ID获取用户信息/Get user information by Short ID
[中文] ### 用途: - 使用Short ID获取用户信息 ### 参数: - short_id: 用户Short ID ### 返回: - 用户信息 # [English] ### Purpose: - Get user information by Short ID ### Parameters: - short_id: User Short ID ### Return: - User information # [示例/Example] short_id = "114131058"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String shortId = 114131058; // String | 用户Short ID/User Short ID
try {
ResponseModel result = apiInstance.fetchUserProfileByShortIdApiV1DouyinWebFetchUserProfileByShortIdGet(shortId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserProfileByShortIdApiV1DouyinWebFetchUserProfileByShortIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
shortId | String | 用户Short ID/User Short ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserProfileByShortIdApiV1DouyinWebFetchUserProfileByShortIdGet_0(shortId)
使用Short ID获取用户信息/Get user information by Short ID
[中文] ### 用途: - 使用Short ID获取用户信息 ### 参数: - short_id: 用户Short ID ### 返回: - 用户信息 # [English] ### Purpose: - Get user information by Short ID ### Parameters: - short_id: User Short ID ### Return: - User information # [示例/Example] short_id = "114131058"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String shortId = 114131058; // String | 用户Short ID/User Short ID
try {
ResponseModel result = apiInstance.fetchUserProfileByShortIdApiV1DouyinWebFetchUserProfileByShortIdGet_0(shortId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserProfileByShortIdApiV1DouyinWebFetchUserProfileByShortIdGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
shortId | String | 用户Short ID/User Short ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserProfileByUidApiV1DouyinWebFetchUserProfileByUidGet(uid)
使用UID获取用户信息/Get user information by UID
[中文] ### 用途: - 使用UID获取用户信息 ### 参数: - uid: 用户UID ### 返回: - 用户信息 # [English] ### Purpose: - Get user information by UID ### Parameters: - uid: User UID ### Return: - User information # [示例/Example] uid = "68141954464"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String uid = 68141954464; // String | 用户UID/User UID
try {
ResponseModel result = apiInstance.fetchUserProfileByUidApiV1DouyinWebFetchUserProfileByUidGet(uid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserProfileByUidApiV1DouyinWebFetchUserProfileByUidGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户UID/User UID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserProfileByUidApiV1DouyinWebFetchUserProfileByUidGet_0(uid)
使用UID获取用户信息/Get user information by UID
[中文] ### 用途: - 使用UID获取用户信息 ### 参数: - uid: 用户UID ### 返回: - 用户信息 # [English] ### Purpose: - Get user information by UID ### Parameters: - uid: User UID ### Return: - User information # [示例/Example] uid = "68141954464"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String uid = 68141954464; // String | 用户UID/User UID
try {
ResponseModel result = apiInstance.fetchUserProfileByUidApiV1DouyinWebFetchUserProfileByUidGet_0(uid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserProfileByUidApiV1DouyinWebFetchUserProfileByUidGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户UID/User UID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchResultApiV1DouyinWebFetchUserSearchResultGet(keyword, offset, count, douyinUserFans, douyinUserType, searchId)
获取指定关键词的用户搜索结果(已废弃,使用V2或V3接口代替)/Get user search results of specified keywords (deprecated, use V2 or V3 interface instead)
[中文] ### 用途: - 获取指定关键词的用户搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - douyin_user_fans: 留空:不限, "0_1k": 1000以下, "1k_1w": 1000-1万, "1w_10w": 1w-10w, "10w_100w": 10w-100w,"100w_": 100w以上 - douyin_user_type: 留空:不限, "common_user": 普通用户, "enterprise_user": 企业认证, "personal_user": 个人认证 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### 返回: - 用户搜索结果 # [English] ### Purpose: - Get user search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - douyin_user_fans: Leave blank: Unlimited, "0_1k": Below 1000, "1k_1w": 1000-10,000, "1w_10w": 10,000-100,000, "10w_100w": 100,000-1 million, "100w_": More than 1 million - douyin_user_type: Leave blank: Unlimited, "common_user": Ordinary user, "enterprise_user": Enterprise certification, "personal_user": Personal certification - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### Return: - User search results # [示例/Example] keyword = "动漫" offset = 0 count = 20 douyin_user_fans = "" douyin_user_type = "" search_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String douyinUserFans = "\"\""; // String | 粉丝数/Fans
String douyinUserType = "\"\""; // String | 用户类型/User type
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchUserSearchResultApiV1DouyinWebFetchUserSearchResultGet(keyword, offset, count, douyinUserFans, douyinUserType, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserSearchResultApiV1DouyinWebFetchUserSearchResultGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
douyinUserFans | String | 粉丝数/Fans | [optional] [default to ""] |
douyinUserType | String | 用户类型/User type | [optional] [default to ""] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchResultApiV1DouyinWebFetchUserSearchResultGet_0(keyword, offset, count, douyinUserFans, douyinUserType, searchId)
获取指定关键词的用户搜索结果(已废弃,使用V2或V3接口代替)/Get user search results of specified keywords (deprecated, use V2 or V3 interface instead)
[中文] ### 用途: - 获取指定关键词的用户搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - douyin_user_fans: 留空:不限, "0_1k": 1000以下, "1k_1w": 1000-1万, "1w_10w": 1w-10w, "10w_100w": 10w-100w,"100w_": 100w以上 - douyin_user_type: 留空:不限, "common_user": 普通用户, "enterprise_user": 企业认证, "personal_user": 个人认证 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### 返回: - 用户搜索结果 # [English] ### Purpose: - Get user search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - douyin_user_fans: Leave blank: Unlimited, "0_1k": Below 1000, "1k_1w": 1000-10,000, "1w_10w": 10,000-100,000, "10w_100w": 100,000-1 million, "100w_": More than 1 million - douyin_user_type: Leave blank: Unlimited, "common_user": Ordinary user, "enterprise_user": Enterprise certification, "personal_user": Personal certification - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### Return: - User search results # [示例/Example] keyword = "动漫" offset = 0 count = 20 douyin_user_fans = "" douyin_user_type = "" search_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String douyinUserFans = "\"\""; // String | 粉丝数/Fans
String douyinUserType = "\"\""; // String | 用户类型/User type
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchUserSearchResultApiV1DouyinWebFetchUserSearchResultGet_0(keyword, offset, count, douyinUserFans, douyinUserType, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserSearchResultApiV1DouyinWebFetchUserSearchResultGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
douyinUserFans | String | 粉丝数/Fans | [optional] [default to ""] |
douyinUserType | String | 用户类型/User type | [optional] [default to ""] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchResultV2ApiV1DouyinWebFetchUserSearchResultV2Get(keyword, cursor)
获取指定关键词的用户搜索结果V2/Get user search results of specified keywords V2
[中文] ### 用途: - 获取指定关键词的用户搜索结果V2 ### 参数: - keyword: 关键词 - cursor: 游标,第一次请求时为0,后续从返回数据中获取,用于翻页。 ### 返回: - 用户搜索结果V2 # [English] ### Purpose: - Get user search results of specified keywords V2 ### Parameters: - keyword: Keyword - cursor: Cursor, 0 for the first request, get from the returned data later, used for paging. ### Return: - User search results V2 # [示例/Example] keyword = "中华娘" cursor = 0
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer cursor = 0; // Integer | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserSearchResultV2ApiV1DouyinWebFetchUserSearchResultV2Get(keyword, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserSearchResultV2ApiV1DouyinWebFetchUserSearchResultV2Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchResultV2ApiV1DouyinWebFetchUserSearchResultV2Get_0(keyword, cursor)
获取指定关键词的用户搜索结果V2/Get user search results of specified keywords V2
[中文] ### 用途: - 获取指定关键词的用户搜索结果V2 ### 参数: - keyword: 关键词 - cursor: 游标,第一次请求时为0,后续从返回数据中获取,用于翻页。 ### 返回: - 用户搜索结果V2 # [English] ### Purpose: - Get user search results of specified keywords V2 ### Parameters: - keyword: Keyword - cursor: Cursor, 0 for the first request, get from the returned data later, used for paging. ### Return: - User search results V2 # [示例/Example] keyword = "中华娘" cursor = 0
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer cursor = 0; // Integer | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserSearchResultV2ApiV1DouyinWebFetchUserSearchResultV2Get_0(keyword, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserSearchResultV2ApiV1DouyinWebFetchUserSearchResultV2Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchResultV3ApiV1DouyinWebFetchUserSearchResultV3Get(keyword, cursor, douyinUserType, douyinUserFans)
获取指定关键词的用户搜索结果V3/Get user search results of specified keywords V3
[中文] ### 用途: - 获取指定关键词的用户搜索结果V3 ### 参数: - keyword: 关键词 - cursor: 偏移量 - douyin_user_fans: 留空:不限, "0_1k": 1000以下, "1k_1w": 1000-1万, "1w_10w": 1w-10w, "10w_100w": 10w-100w,"100w_": 100w以上 - douyin_user_type: 留空:不限, "common_user": 普通用户, "enterprise_user": 企业认证, "personal_user": 个人认证 ### 返回: - 用户搜索结果 # [English] ### Purpose: - Get user search results of specified keywords V3 ### Parameters: - keyword: Keyword - cursor: Offset - douyin_user_fans: Leave blank: Unlimited, "0_1k": Below 1000, "1k_1w": 1000-10,000, "1w_10w": 10,000-100,000, "10w_100w": 100,000-1 million, "100w_": More than 1 million - douyin_user_type: Leave blank: Unlimited, "common_user": Ordinary user, "enterprise_user": Enterprise certification, "personal_user": Personal certification ### Return: - User search results # [示例/Example] keyword = "中华娘" cursor = "0" douyin_user_fans = "" douyin_user_type = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
String cursor = "\"0\""; // String | 游标/Cursor
String douyinUserType = "\"\""; // String | 用户类型/User type
String douyinUserFans = "\"\""; // String | 粉丝数/Fans
try {
ResponseModel result = apiInstance.fetchUserSearchResultV3ApiV1DouyinWebFetchUserSearchResultV3Get(keyword, cursor, douyinUserType, douyinUserFans);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserSearchResultV3ApiV1DouyinWebFetchUserSearchResultV3Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
cursor | String | 游标/Cursor | [optional] [default to "0"] |
douyinUserType | String | 用户类型/User type | [optional] [default to ""] |
douyinUserFans | String | 粉丝数/Fans | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchResultV3ApiV1DouyinWebFetchUserSearchResultV3Get_0(keyword, cursor, douyinUserType, douyinUserFans)
获取指定关键词的用户搜索结果V3/Get user search results of specified keywords V3
[中文] ### 用途: - 获取指定关键词的用户搜索结果V3 ### 参数: - keyword: 关键词 - cursor: 偏移量 - douyin_user_fans: 留空:不限, "0_1k": 1000以下, "1k_1w": 1000-1万, "1w_10w": 1w-10w, "10w_100w": 10w-100w,"100w_": 100w以上 - douyin_user_type: 留空:不限, "common_user": 普通用户, "enterprise_user": 企业认证, "personal_user": 个人认证 ### 返回: - 用户搜索结果 # [English] ### Purpose: - Get user search results of specified keywords V3 ### Parameters: - keyword: Keyword - cursor: Offset - douyin_user_fans: Leave blank: Unlimited, "0_1k": Below 1000, "1k_1w": 1000-10,000, "1w_10w": 10,000-100,000, "10w_100w": 100,000-1 million, "100w_": More than 1 million - douyin_user_type: Leave blank: Unlimited, "common_user": Ordinary user, "enterprise_user": Enterprise certification, "personal_user": Personal certification ### Return: - User search results # [示例/Example] keyword = "中华娘" cursor = "0" douyin_user_fans = "" douyin_user_type = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
String cursor = "\"0\""; // String | 游标/Cursor
String douyinUserType = "\"\""; // String | 用户类型/User type
String douyinUserFans = "\"\""; // String | 粉丝数/Fans
try {
ResponseModel result = apiInstance.fetchUserSearchResultV3ApiV1DouyinWebFetchUserSearchResultV3Get_0(keyword, cursor, douyinUserType, douyinUserFans);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchUserSearchResultV3ApiV1DouyinWebFetchUserSearchResultV3Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
cursor | String | 游标/Cursor | [optional] [default to "0"] |
douyinUserType | String | 用户类型/User type | [optional] [default to ""] |
douyinUserFans | String | 粉丝数/Fans | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoBillboardApiV1DouyinWebFetchVideoBillboardGet(date, page, pageSize, subType)
抖音视频榜单/Douyin Video Billboard
[中文] ### 用途: - 抖音视频榜单 ### 参数: - date: 日期,默认为24 - 1: 一小时内 - 24: 一天内 - 72: 3天内 - 168: 7天内 - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sub_type: 子类型,默认为1001 - 1001: 视频总榜 - 1002: 低粉爆款 - 1003: 高完播率 - 1004: 高涨粉率 - 1005: 高点赞率 ### 返回: - 视频榜单数据 # [English] ### Purpose: - Douyin Video Billboard ### Parameters: - date: Date, default is 24 - 1: Within an hour - 24: Within a day - 72: Within 3 days - 168: Within 7 days - page: Page number, default is 1 - page_size: Number per page, default is 10 - sub_type: Subtype, default is 1001 - 1001: Total video list - 1002: Low fans explosion - 1003: High completion rate - 1004: High increase rate - 1005: High like rate ### Return: - Video billboard data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer date = 24; // Integer | 日期/Date
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
Integer subType = 1001; // Integer | 子类型/Subtype
try {
ResponseModel result = apiInstance.fetchVideoBillboardApiV1DouyinWebFetchVideoBillboardGet(date, page, pageSize, subType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoBillboardApiV1DouyinWebFetchVideoBillboardGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
date | Integer | 日期/Date | |
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
subType | Integer | 子类型/Subtype |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoBillboardApiV1DouyinWebFetchVideoBillboardGet_0(date, page, pageSize, subType)
抖音视频榜单/Douyin Video Billboard
[中文] ### 用途: - 抖音视频榜单 ### 参数: - date: 日期,默认为24 - 1: 一小时内 - 24: 一天内 - 72: 3天内 - 168: 7天内 - page: 页码,默认为1 - page_size: 每页数量,默认为10 - sub_type: 子类型,默认为1001 - 1001: 视频总榜 - 1002: 低粉爆款 - 1003: 高完播率 - 1004: 高涨粉率 - 1005: 高点赞率 ### 返回: - 视频榜单数据 # [English] ### Purpose: - Douyin Video Billboard ### Parameters: - date: Date, default is 24 - 1: Within an hour - 24: Within a day - 72: Within 3 days - 168: Within 7 days - page: Page number, default is 1 - page_size: Number per page, default is 10 - sub_type: Subtype, default is 1001 - 1001: Total video list - 1002: Low fans explosion - 1003: High completion rate - 1004: High increase rate - 1005: High like rate ### Return: - Video billboard data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer date = 24; // Integer | 日期/Date
Integer page = 1; // Integer | 页码/Page number
Integer pageSize = 10; // Integer | 每页数量/Number per page
Integer subType = 1001; // Integer | 子类型/Subtype
try {
ResponseModel result = apiInstance.fetchVideoBillboardApiV1DouyinWebFetchVideoBillboardGet_0(date, page, pageSize, subType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoBillboardApiV1DouyinWebFetchVideoBillboardGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
date | Integer | 日期/Date | |
page | Integer | 页码/Page number | |
pageSize | Integer | 每页数量/Number per page | |
subType | Integer | 子类型/Subtype |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoChannelResultApiV1DouyinWebFetchVideoChannelResultGet(tagId, count, refreshIndex)
抖音视频频道数据/Douyin video channel data
[中文] ### 用途: - 抖音视频频道数据 - https://www.douyin.com/channel/300205 ### 参数: - tag_id: 标签id,从URL中获取 - count: 数量 - refresh_index: 刷新索引 ### 返回: - 视频频道数据 # [English] ### Purpose: - Douyin video channel data - https://www.douyin.com/channel/300205 ### Parameters: - tag_id: Tag id, get from the URL - count: Number - refresh_index: Refresh index ### Return: - Video channel data # [示例/Example] tag_id = 300203 count = 10 refresh_index = 1
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer tagId = 300203; // Integer | 标签id/Tag id
Integer count = 10; // Integer | 数量/Number
Integer refreshIndex = 1; // Integer | 刷新索引/Refresh index
try {
ResponseModel result = apiInstance.fetchVideoChannelResultApiV1DouyinWebFetchVideoChannelResultGet(tagId, count, refreshIndex);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoChannelResultApiV1DouyinWebFetchVideoChannelResultGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tagId | Integer | 标签id/Tag id | |
count | Integer | 数量/Number | [optional] [default to 10] |
refreshIndex | Integer | 刷新索引/Refresh index | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoChannelResultApiV1DouyinWebFetchVideoChannelResultGet_0(tagId, count, refreshIndex)
抖音视频频道数据/Douyin video channel data
[中文] ### 用途: - 抖音视频频道数据 - https://www.douyin.com/channel/300205 ### 参数: - tag_id: 标签id,从URL中获取 - count: 数量 - refresh_index: 刷新索引 ### 返回: - 视频频道数据 # [English] ### Purpose: - Douyin video channel data - https://www.douyin.com/channel/300205 ### Parameters: - tag_id: Tag id, get from the URL - count: Number - refresh_index: Refresh index ### Return: - Video channel data # [示例/Example] tag_id = 300203 count = 10 refresh_index = 1
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
Integer tagId = 300203; // Integer | 标签id/Tag id
Integer count = 10; // Integer | 数量/Number
Integer refreshIndex = 1; // Integer | 刷新索引/Refresh index
try {
ResponseModel result = apiInstance.fetchVideoChannelResultApiV1DouyinWebFetchVideoChannelResultGet_0(tagId, count, refreshIndex);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoChannelResultApiV1DouyinWebFetchVideoChannelResultGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tagId | Integer | 标签id/Tag id | |
count | Integer | 数量/Number | [optional] [default to 10] |
refreshIndex | Integer | 刷新索引/Refresh index | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoCommentsApiV1DouyinWebFetchVideoCommentsGet(awemeId, cursor, count)
获取单个视频评论数据/Get single video comments data
[中文] ### 用途: - 获取单个视频评论数据 ### 参数: - aweme_id: 作品id - cursor: 游标 - count: 数量 ### 返回: - 评论数据 # [English] ### Purpose: - Get single video comments data ### Parameters: - aweme_id: Video id - cursor: Cursor - count: Number ### Return: - Comments data # [示例/Example] aweme_id = "7372484719365098803" cursor = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7372484719365098803; // String | 作品id/Video id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchVideoCommentsApiV1DouyinWebFetchVideoCommentsGet(awemeId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoCommentsApiV1DouyinWebFetchVideoCommentsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoCommentsApiV1DouyinWebFetchVideoCommentsGet_0(awemeId, cursor, count)
获取单个视频评论数据/Get single video comments data
[中文] ### 用途: - 获取单个视频评论数据 ### 参数: - aweme_id: 作品id - cursor: 游标 - count: 数量 ### 返回: - 评论数据 # [English] ### Purpose: - Get single video comments data ### Parameters: - aweme_id: Video id - cursor: Cursor - count: Number ### Return: - Comments data # [示例/Example] aweme_id = "7372484719365098803" cursor = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7372484719365098803; // String | 作品id/Video id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchVideoCommentsApiV1DouyinWebFetchVideoCommentsGet_0(awemeId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoCommentsApiV1DouyinWebFetchVideoCommentsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoCommentsReplyApiV1DouyinWebFetchVideoCommentRepliesGet(itemId, commentId, cursor, count)
获取指定视频的评论回复数据/Get comment replies data of specified video
[中文] ### 用途: - 获取指定视频的评论回复数据 ### 参数: - item_id: 作品id - comment_id: 评论id - cursor: 游标 - count: 数量 ### 返回: - 评论回复数据 # [English] ### Purpose: - Get comment replies data of specified video ### Parameters: - item_id: Video id - comment_id: Comment id - cursor: Cursor - count: Number ### Return: - Comment replies data # [示例/Example] aweme_id = "7354666303006723354" comment_id = "7354669356632638218" cursor = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String itemId = 7354666303006723354; // String | 作品id/Video id
String commentId = 7354669356632638218; // String | 评论id/Comment id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchVideoCommentsReplyApiV1DouyinWebFetchVideoCommentRepliesGet(itemId, commentId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoCommentsReplyApiV1DouyinWebFetchVideoCommentRepliesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
itemId | String | 作品id/Video id | |
commentId | String | 评论id/Comment id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoCommentsReplyApiV1DouyinWebFetchVideoCommentRepliesGet_0(itemId, commentId, cursor, count)
获取指定视频的评论回复数据/Get comment replies data of specified video
[中文] ### 用途: - 获取指定视频的评论回复数据 ### 参数: - item_id: 作品id - comment_id: 评论id - cursor: 游标 - count: 数量 ### 返回: - 评论回复数据 # [English] ### Purpose: - Get comment replies data of specified video ### Parameters: - item_id: Video id - comment_id: Comment id - cursor: Cursor - count: Number ### Return: - Comment replies data # [示例/Example] aweme_id = "7354666303006723354" comment_id = "7354669356632638218" cursor = 0 count = 20
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String itemId = 7354666303006723354; // String | 作品id/Video id
String commentId = 7354669356632638218; // String | 评论id/Comment id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchVideoCommentsReplyApiV1DouyinWebFetchVideoCommentRepliesGet_0(itemId, commentId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoCommentsReplyApiV1DouyinWebFetchVideoCommentRepliesGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
itemId | String | 作品id/Video id | |
commentId | String | 评论id/Comment id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoFansAddCountApiV1DouyinWebFetchVideoFansAddCountGet(awemeId)
获取视频新增粉丝数量/Get video new fans count
[中文] ### 用途: 获取视频新增粉丝数量 ### 参数: - aweme_id: 作品id ### 返回: - 新增粉丝数量 # [English] ### Purpose: Get video new fans count ### Parameters: - aweme_id: Video id ### Return: - New Fans count # [示例/Example] aweme_id = "7429296623961853234"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7429296623961853234; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchVideoFansAddCountApiV1DouyinWebFetchVideoFansAddCountGet(awemeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoFansAddCountApiV1DouyinWebFetchVideoFansAddCountGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoFansAddCountApiV1DouyinWebFetchVideoFansAddCountGet_0(awemeId)
获取视频新增粉丝数量/Get video new fans count
[中文] ### 用途: 获取视频新增粉丝数量 ### 参数: - aweme_id: 作品id ### 返回: - 新增粉丝数量 # [English] ### Purpose: Get video new fans count ### Parameters: - aweme_id: Video id ### Return: - New Fans count # [示例/Example] aweme_id = "7429296623961853234"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7429296623961853234; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchVideoFansAddCountApiV1DouyinWebFetchVideoFansAddCountGet_0(awemeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoFansAddCountApiV1DouyinWebFetchVideoFansAddCountGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 作品id/Video id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoLikePortraitApiV1DouyinWebFetchVideoLikePortraitGet(awemeId, option)
抖音视频点赞观众画像/Douyin Video Like Viewer Portrait
[中文] ### 用途: - 抖音视频点赞观众画像 ### 参数: - aweme_id: 视频aweme_id - option: 选项,默认为1 - 1: 观众手机价格分布 - 2: 观众性别分布 - 3: 观众年龄分布 - 4: 观众地域分布(省份) - 5: 观众地域分布(城市) - 6: 观众城市等级分布 - 7: 观众手机品牌分布 ### 返回: - 视频点赞观众画像数据 # [English] ### Purpose: - Douyin Video Like Viewer Portrait ### Parameters: - aweme_id: Aweme_id of video - option: Option, default is 1 - 1: Distribution of audience mobile phone prices - 2: Distribution of audience gender - 3: Distribution of audience age - 4: Distribution of audience region (province) - 5: Distribution of audience region (city) - 6: Distribution of audience city level - 7: Distribution of audience mobile phone brands ### Return: - Video like viewer portrait data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7000000000000000000; // String | 视频aweme_id/Aweme_id of video
String option = 1; // String | 选项/Option
try {
ResponseModel result = apiInstance.fetchVideoLikePortraitApiV1DouyinWebFetchVideoLikePortraitGet(awemeId, option);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoLikePortraitApiV1DouyinWebFetchVideoLikePortraitGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 视频aweme_id/Aweme_id of video | |
option | String | 选项/Option |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoLikePortraitApiV1DouyinWebFetchVideoLikePortraitGet_0(awemeId, option)
抖音视频点赞观众画像/Douyin Video Like Viewer Portrait
[中文] ### 用途: - 抖音视频点赞观众画像 ### 参数: - aweme_id: 视频aweme_id - option: 选项,默认为1 - 1: 观众手机价格分布 - 2: 观众性别分布 - 3: 观众年龄分布 - 4: 观众地域分布(省份) - 5: 观众地域分布(城市) - 6: 观众城市等级分布 - 7: 观众手机品牌分布 ### 返回: - 视频点赞观众画像数据 # [English] ### Purpose: - Douyin Video Like Viewer Portrait ### Parameters: - aweme_id: Aweme_id of video - option: Option, default is 1 - 1: Distribution of audience mobile phone prices - 2: Distribution of audience gender - 3: Distribution of audience age - 4: Distribution of audience region (province) - 5: Distribution of audience region (city) - 6: Distribution of audience city level - 7: Distribution of audience mobile phone brands ### Return: - Video like viewer portrait data
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String awemeId = 7000000000000000000; // String | 视频aweme_id/Aweme_id of video
String option = 1; // String | 选项/Option
try {
ResponseModel result = apiInstance.fetchVideoLikePortraitApiV1DouyinWebFetchVideoLikePortraitGet_0(awemeId, option);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoLikePortraitApiV1DouyinWebFetchVideoLikePortraitGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
awemeId | String | 视频aweme_id/Aweme_id of video | |
option | String | 选项/Option |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoSearchResultApiV1DouyinWebFetchVideoSearchResultGet(keyword, offset, count, sortType, publishTime, filterDuration, searchId)
获取指定关键词的视频搜索结果/Get video search results of specified keywords
[中文] ### 用途: - 获取指定关键词的视频搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量,第一次请求时为0,后续从返回数据中获取,用于翻页。 - 例如: offset = 10 - JSON Path-1 : Unable to render expression.
$.data.cursor - count: 数量,默认为10,建议保持不变。 - sort_type: - 0:综合排序 - 1:最多点赞 - 2:最新发布 - publish_time: - 0:不限 - 1:最近一天 - 7:最近一周 - 180:最近半年 - filter_duration: - 0:不限 0-1:1分钟以内 - 1-5:1-5分钟 - 5-10000:5分钟以上 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = &quot;2024083107320448E367ECDCCC6B71F7F3&quot; - JSON Path-1 : $
.data.extra.logid - JSON Path-2 :
You can't use 'macro parameter character #' in math mode
$.data.log_pb.impr_id ### 返回: - 视频搜索结果 # [English] ### Purpose: - Get video search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset, 0 for the first request, get from the returned data later, used for paging. - For example: offset = 10 - JSON Path-1 : $
.data.cursor - count: Number, default is 10, it is recommended to keep it unchanged. - sort_type: - 0: Comprehensive sorting - 1: Most likes - 2: Latest release - publish_time: - 0: Unlimited - 1: Last day - 7: Last week - 180: Last half year - filter_duration: - 0: Unlimited - 0-1: Within 1 minute - 1-5: 1-5 minutes - 5-10000: More than 5 minutes - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### Return: - Video search results # [示例/Example] keyword = "游戏" offset = 0 count = 10 sort_type = "0" publish_time = "0" filter_duration = "0" search_id = ""
$.data.cursor - count: 数量,默认为10,建议保持不变。 - sort_type: - 0:综合排序 - 1:最多点赞 - 2:最新发布 - publish_time: - 0:不限 - 1:最近一天 - 7:最近一周 - 180:最近半年 - filter_duration: - 0:不限 0-1:1分钟以内 - 1-5:1-5分钟 - 5-10000:5分钟以上 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = &quot;2024083107320448E367ECDCCC6B71F7F3&quot; - JSON Path-1 : $
$.data.log_pb.impr_id ### 返回: - 视频搜索结果 # [English] ### Purpose: - Get video search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset, 0 for the first request, get from the returned data later, used for paging. - For example: offset = 10 - JSON Path-1 : $
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 游戏; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String sortType = "\"0\""; // String | 排序类型/Sort type
String publishTime = "\"0\""; // String | 发布时间/Publish time
String filterDuration = "\"0\""; // String | 视频时长/Duration filter
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchVideoSearchResultApiV1DouyinWebFetchVideoSearchResultGet(keyword, offset, count, sortType, publishTime, filterDuration, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoSearchResultApiV1DouyinWebFetchVideoSearchResultGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
sortType | String | 排序类型/Sort type | [optional] [default to "0"] |
publishTime | String | 发布时间/Publish time | [optional] [default to "0"] |
filterDuration | String | 视频时长/Duration filter | [optional] [default to "0"] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoSearchResultApiV1DouyinWebFetchVideoSearchResultGet_0(keyword, offset, count, sortType, publishTime, filterDuration, searchId)
获取指定关键词的视频搜索结果/Get video search results of specified keywords
[中文] ### 用途: - 获取指定关键词的视频搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量,第一次请求时为0,后续从返回数据中获取,用于翻页。 - 例如: offset = 10 - JSON Path-1 : Unable to render expression.
$.data.cursor - count: 数量,默认为10,建议保持不变。 - sort_type: - 0:综合排序 - 1:最多点赞 - 2:最新发布 - publish_time: - 0:不限 - 1:最近一天 - 7:最近一周 - 180:最近半年 - filter_duration: - 0:不限 0-1:1分钟以内 - 1-5:1-5分钟 - 5-10000:5分钟以上 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = &quot;2024083107320448E367ECDCCC6B71F7F3&quot; - JSON Path-1 : $
.data.extra.logid - JSON Path-2 :
You can't use 'macro parameter character #' in math mode
$.data.log_pb.impr_id ### 返回: - 视频搜索结果 # [English] ### Purpose: - Get video search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset, 0 for the first request, get from the returned data later, used for paging. - For example: offset = 10 - JSON Path-1 : $
.data.cursor - count: Number, default is 10, it is recommended to keep it unchanged. - sort_type: - 0: Comprehensive sorting - 1: Most likes - 2: Latest release - publish_time: - 0: Unlimited - 1: Last day - 7: Last week - 180: Last half year - filter_duration: - 0: Unlimited - 0-1: Within 1 minute - 1-5: 1-5 minutes - 5-10000: More than 5 minutes - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### Return: - Video search results # [示例/Example] keyword = "游戏" offset = 0 count = 10 sort_type = "0" publish_time = "0" filter_duration = "0" search_id = ""
$.data.cursor - count: 数量,默认为10,建议保持不变。 - sort_type: - 0:综合排序 - 1:最多点赞 - 2:最新发布 - publish_time: - 0:不限 - 1:最近一天 - 7:最近一周 - 180:最近半年 - filter_duration: - 0:不限 0-1:1分钟以内 - 1-5:1-5分钟 - 5-10000:5分钟以上 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = &quot;2024083107320448E367ECDCCC6B71F7F3&quot; - JSON Path-1 : $
$.data.log_pb.impr_id ### 返回: - 视频搜索结果 # [English] ### Purpose: - Get video search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset, 0 for the first request, get from the returned data later, used for paging. - For example: offset = 10 - JSON Path-1 : $
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 游戏; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String sortType = "\"0\""; // String | 排序类型/Sort type
String publishTime = "\"0\""; // String | 发布时间/Publish time
String filterDuration = "\"0\""; // String | 视频时长/Duration filter
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchVideoSearchResultApiV1DouyinWebFetchVideoSearchResultGet_0(keyword, offset, count, sortType, publishTime, filterDuration, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoSearchResultApiV1DouyinWebFetchVideoSearchResultGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
sortType | String | 排序类型/Sort type | [optional] [default to "0"] |
publishTime | String | 发布时间/Publish time | [optional] [default to "0"] |
filterDuration | String | 视频时长/Duration filter | [optional] [default to "0"] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoSearchResultV2ApiV1DouyinWebFetchVideoSearchResultV2Get(keyword, sortType, publishTime, filterDuration, page, searchId)
获取指定关键词的视频搜索结果V2/Get video search results of specified keywords V2
[中文] ### 用途: - 获取指定关键词的视频搜索结果V2,此接口稳定性更好,收费更贵,当`/api/v1/douyin/web/fetch_video_search_result`接口不稳定时,建议使用此接口。 - 收费标准为:0.01$每次请求。 ### 参数: - keyword: 关键词 - sort_type: - 排序类型,可用值如下: - _0 :综合(General) - _1 :最多点赞(More likes) - _2 :最新发布(New) - publish_time: - 发布时间,可用值如下: - _0 :不限(No Limit) - _1 :一天之内(last 1 day) - _7 :一周之内(last 1 week) - _180 :半年之内(last half year) - filter_duration: - 视频时长,可用值如下: - _0 :不限(No Limit) - _1 :1分钟以下(1 minute and below) - _2 :1-5分钟 (1-5 minutes) - _3 :5分钟以上(5 minutes more) - page: 页码 - 默认从1开始,然后依次递增加1 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### 返回: - 视频搜索结果V2 # [English] ### Purpose: - Get video search results of specified keywords V2, this interface has better stability and higher cost, when the `/api/v1/douyin/web/fetch_video_search_result` interface is unstable, it is recommended to use this interface. - The charging standard is:
You can't use 'macro parameter character #' in math mode
$0.01 per request. ### Parameters: - keyword: Keyword - sort_type: - Sort type, available values are as follows: - _0 : General - _1 : More likes - _2 : New - publish_time: - Publish time, available values are as follows: - _0 : No Limit - _1 : last 1 day - _7 : last 1 week - _180 : last half year - filter_duration: - Duration filter, available values are as follows: - _0 : No Limit - _1 : 1 minute and below - _2 : 1-5 minutes - _3 : 5 minutes more - page: Page - Start from 1 by default, then increase by 1 each time - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = &quot;2024083107320448E367ECDCCC6B71F7F3&quot; - JSON Path-1 : $
.data.extra.logid - JSON Path-2 : $.data.log_pb.impr_id ### Return: - Video search results V2 # [示例/Example] keyword = "中华娘" sort_type = "_0" publish_time = "_0" filter_duration = "_0" page = 1 search_id = ""
$0.01 per request. ### Parameters: - keyword: Keyword - sort_type: - Sort type, available values are as follows: - _0 : General - _1 : More likes - _2 : New - publish_time: - Publish time, available values are as follows: - _0 : No Limit - _1 : last 1 day - _7 : last 1 week - _180 : last half year - filter_duration: - Duration filter, available values are as follows: - _0 : No Limit - _1 : 1 minute and below - _2 : 1-5 minutes - _3 : 5 minutes more - page: Page - Start from 1 by default, then increase by 1 each time - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = &quot;2024083107320448E367ECDCCC6B71F7F3&quot; - JSON Path-1 : $
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
String sortType = "\"_0\""; // String | 排序类型/Sort type
String publishTime = "\"_0\""; // String | 发布时间/Publish time
String filterDuration = "\"_0\""; // String | 视频时长/Duration filter
Integer page = 1; // Integer | 页码/Page
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchVideoSearchResultV2ApiV1DouyinWebFetchVideoSearchResultV2Get(keyword, sortType, publishTime, filterDuration, page, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoSearchResultV2ApiV1DouyinWebFetchVideoSearchResultV2Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
sortType | String | 排序类型/Sort type | [optional] [default to "_0"] |
publishTime | String | 发布时间/Publish time | [optional] [default to "_0"] |
filterDuration | String | 视频时长/Duration filter | [optional] [default to "_0"] |
page | Integer | 页码/Page | [optional] [default to 1] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoSearchResultV2ApiV1DouyinWebFetchVideoSearchResultV2Get_0(keyword, sortType, publishTime, filterDuration, page, searchId)
获取指定关键词的视频搜索结果V2/Get video search results of specified keywords V2
[中文] ### 用途: - 获取指定关键词的视频搜索结果V2,此接口稳定性更好,收费更贵,当`/api/v1/douyin/web/fetch_video_search_result`接口不稳定时,建议使用此接口。 - 收费标准为:0.01$每次请求。 ### 参数: - keyword: 关键词 - sort_type: - 排序类型,可用值如下: - _0 :综合(General) - _1 :最多点赞(More likes) - _2 :最新发布(New) - publish_time: - 发布时间,可用值如下: - _0 :不限(No Limit) - _1 :一天之内(last 1 day) - _7 :一周之内(last 1 week) - _180 :半年之内(last half year) - filter_duration: - 视频时长,可用值如下: - _0 :不限(No Limit) - _1 :1分钟以下(1 minute and below) - _2 :1-5分钟 (1-5 minutes) - _3 :5分钟以上(5 minutes more) - page: 页码 - 默认从1开始,然后依次递增加1 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "2024083107320448E367ECDCCC6B71F7F3" - JSON Path-1 : .data.log_pb.impr_id ### 返回: - 视频搜索结果V2 # [English] ### Purpose: - Get video search results of specified keywords V2, this interface has better stability and higher cost, when the `/api/v1/douyin/web/fetch_video_search_result` interface is unstable, it is recommended to use this interface. - The charging standard is:
You can't use 'macro parameter character #' in math mode
$0.01 per request. ### Parameters: - keyword: Keyword - sort_type: - Sort type, available values are as follows: - _0 : General - _1 : More likes - _2 : New - publish_time: - Publish time, available values are as follows: - _0 : No Limit - _1 : last 1 day - _7 : last 1 week - _180 : last half year - filter_duration: - Duration filter, available values are as follows: - _0 : No Limit - _1 : 1 minute and below - _2 : 1-5 minutes - _3 : 5 minutes more - page: Page - Start from 1 by default, then increase by 1 each time - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = &quot;2024083107320448E367ECDCCC6B71F7F3&quot; - JSON Path-1 : $
.data.extra.logid - JSON Path-2 : $.data.log_pb.impr_id ### Return: - Video search results V2 # [示例/Example] keyword = "中华娘" sort_type = "_0" publish_time = "_0" filter_duration = "_0" page = 1 search_id = ""
$0.01 per request. ### Parameters: - keyword: Keyword - sort_type: - Sort type, available values are as follows: - _0 : General - _1 : More likes - _2 : New - publish_time: - Publish time, available values are as follows: - _0 : No Limit - _1 : last 1 day - _7 : last 1 week - _180 : last half year - filter_duration: - Duration filter, available values are as follows: - _0 : No Limit - _1 : 1 minute and below - _2 : 1-5 minutes - _3 : 5 minutes more - page: Page - Start from 1 by default, then increase by 1 each time - search_id: Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. - For example: search_id = &quot;2024083107320448E367ECDCCC6B71F7F3&quot; - JSON Path-1 : $
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
String sortType = "\"_0\""; // String | 排序类型/Sort type
String publishTime = "\"_0\""; // String | 发布时间/Publish time
String filterDuration = "\"_0\""; // String | 视频时长/Duration filter
Integer page = 1; // Integer | 页码/Page
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
try {
ResponseModel result = apiInstance.fetchVideoSearchResultV2ApiV1DouyinWebFetchVideoSearchResultV2Get_0(keyword, sortType, publishTime, filterDuration, page, searchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#fetchVideoSearchResultV2ApiV1DouyinWebFetchVideoSearchResultV2Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 关键词/Keyword | |
sortType | String | 排序类型/Sort type | [optional] [default to "_0"] |
publishTime | String | 发布时间/Publish time | [optional] [default to "_0"] |
filterDuration | String | 视频时长/Duration filter | [optional] [default to "_0"] |
page | Integer | 页码/Page | [optional] [default to 1] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel generateABogusApiV1DouyinWebGenerateABogusPost(abogusModel)
使用接口网址生成A-Bogus参数/Generate A-Bogus parameter using API URL
[中文] ### 用途: - 使用接口网址生成A-Bogus参数,提交的URL不能带有a_bogus参数,同时a_bogus参数与请求头中的User-Agent有关,需要一起提交和请求。 ### 参数: - url: API链接,请去除url中的原本的a_boogus参数(如有)。 - data: 请求载荷,只有在POST请求中才需要提交,GET请求中使用空字符串即可。 - user_agent: user-agent,需要提交你请求头中的User-Agent,该值参与a_bogus参数的计算。 - index_0: 加密明文列表的第一个值,无特殊要求,默认为0,不要随意修改。 - index_1: 加密明文列表的第二个值,无特殊要求,默认为1,不要随意修改。 - index_2: 加密明文列表的第三个值,无特殊要求,默认为14,不要随意修改。 ### 返回: - A-Bogus参数 # [English] ### Purpose: - Generate A-Bogus parameter using API URL, the submitted URL cannot contain the original a_boogus parameter, and the a_bogus parameter is related to the User-Agent in the request header, which needs to be submitted and requested together. ### Parameters: - url: API link, please remove the original a_boogus parameter from the url (if any). - data: Request payload, only need to submit in POST request, use an empty string in GET request. - user_agent: user-agent, you need to submit the User-Agent in your request header, which is involved in the calculation of the a_bogus parameter. - index_0: The first value of the encrypted plaintext list, no special requirements, the default is 0, do not modify it at will. - index_1: The second value of the encrypted plaintext list, no special requirements, the default is 1, do not modify it at will. - index_2: The third value of the encrypted plaintext list, no special requirements, the default is 14, do not modify it at will. ### Return: - A-Bogus parameter # [示例/Example] ```json { "url": "https://www.douyin.com/aweme/v1/web/general/search/single/?device_platform=webapp&aid=6383&channel=channel_pc_web&search_channel=aweme_general&enable_history=1&keyword=%E4%B8%AD%E5%8D%8E%E5%A8%98&search_source=normal_search&query_correct_type=1&is_filter_search=0&from_group_id=7346905902554844468&offset=0&count=15&need_filter_settings=1&pc_client_type=1&version_code=190600&version_name=19.6.0&cookie_enabled=true&screen_width=1280&screen_height=800&browser_language=zh-CN&browser_platform=Win32&browser_name=Firefox&browser_version=124.0&browser_online=true&engine_name=Gecko&engine_version=124.0&os_name=Windows&os_version=10&cpu_core_num=16&device_memory=&platform=PC&webid=7348962975497324070&msToken=YCTVM6YGmjFdIpQAN9ykXLBXiSiuHdZkOkEQWTeqVOHBEPmOcM0lNwE0Kd9vgHPMPigSndZDHfAq9k-6lDmH3Jqz6mHHxmn-BzQjmLMIfLIPgirgnOixM9x4PwgcNQ%3D%3D\", "data": "", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36", "index_0": 0, "index_1": 1, "index_2": 14 } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
ABogusModel abogusModel = new ABogusModel(); // ABogusModel |
try {
ResponseModel result = apiInstance.generateABogusApiV1DouyinWebGenerateABogusPost(abogusModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateABogusApiV1DouyinWebGenerateABogusPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
abogusModel | ABogusModel | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel generateABogusApiV1DouyinWebGenerateABogusPost_0(abogusModel)
使用接口网址生成A-Bogus参数/Generate A-Bogus parameter using API URL
[中文] ### 用途: - 使用接口网址生成A-Bogus参数,提交的URL不能带有a_bogus参数,同时a_bogus参数与请求头中的User-Agent有关,需要一起提交和请求。 ### 参数: - url: API链接,请去除url中的原本的a_boogus参数(如有)。 - data: 请求载荷,只有在POST请求中才需要提交,GET请求中使用空字符串即可。 - user_agent: user-agent,需要提交你请求头中的User-Agent,该值参与a_bogus参数的计算。 - index_0: 加密明文列表的第一个值,无特殊要求,默认为0,不要随意修改。 - index_1: 加密明文列表的第二个值,无特殊要求,默认为1,不要随意修改。 - index_2: 加密明文列表的第三个值,无特殊要求,默认为14,不要随意修改。 ### 返回: - A-Bogus参数 # [English] ### Purpose: - Generate A-Bogus parameter using API URL, the submitted URL cannot contain the original a_boogus parameter, and the a_bogus parameter is related to the User-Agent in the request header, which needs to be submitted and requested together. ### Parameters: - url: API link, please remove the original a_boogus parameter from the url (if any). - data: Request payload, only need to submit in POST request, use an empty string in GET request. - user_agent: user-agent, you need to submit the User-Agent in your request header, which is involved in the calculation of the a_bogus parameter. - index_0: The first value of the encrypted plaintext list, no special requirements, the default is 0, do not modify it at will. - index_1: The second value of the encrypted plaintext list, no special requirements, the default is 1, do not modify it at will. - index_2: The third value of the encrypted plaintext list, no special requirements, the default is 14, do not modify it at will. ### Return: - A-Bogus parameter # [示例/Example] ```json { "url": "https://www.douyin.com/aweme/v1/web/general/search/single/?device_platform=webapp&aid=6383&channel=channel_pc_web&search_channel=aweme_general&enable_history=1&keyword=%E4%B8%AD%E5%8D%8E%E5%A8%98&search_source=normal_search&query_correct_type=1&is_filter_search=0&from_group_id=7346905902554844468&offset=0&count=15&need_filter_settings=1&pc_client_type=1&version_code=190600&version_name=19.6.0&cookie_enabled=true&screen_width=1280&screen_height=800&browser_language=zh-CN&browser_platform=Win32&browser_name=Firefox&browser_version=124.0&browser_online=true&engine_name=Gecko&engine_version=124.0&os_name=Windows&os_version=10&cpu_core_num=16&device_memory=&platform=PC&webid=7348962975497324070&msToken=YCTVM6YGmjFdIpQAN9ykXLBXiSiuHdZkOkEQWTeqVOHBEPmOcM0lNwE0Kd9vgHPMPigSndZDHfAq9k-6lDmH3Jqz6mHHxmn-BzQjmLMIfLIPgirgnOixM9x4PwgcNQ%3D%3D\", "data": "", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36", "index_0": 0, "index_1": 1, "index_2": 14 } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
ABogusModel abogusModel = new ABogusModel(); // ABogusModel |
try {
ResponseModel result = apiInstance.generateABogusApiV1DouyinWebGenerateABogusPost_0(abogusModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateABogusApiV1DouyinWebGenerateABogusPost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
abogusModel | ABogusModel | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel generateRealMsTokenApiV1DouyinWebGenerateRealMsTokenGet()
生成真实msToken/Generate real msToken
[中文] ### 用途: - 生成真实msToken ### 返回: - msToken # [English] ### Purpose: - Generate real msToken ### Return: - msToken
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.generateRealMsTokenApiV1DouyinWebGenerateRealMsTokenGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateRealMsTokenApiV1DouyinWebGenerateRealMsTokenGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel generateRealMsTokenApiV1DouyinWebGenerateRealMsTokenGet_0()
生成真实msToken/Generate real msToken
[中文] ### 用途: - 生成真实msToken ### 返回: - msToken # [English] ### Purpose: - Generate real msToken ### Return: - msToken
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.generateRealMsTokenApiV1DouyinWebGenerateRealMsTokenGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateRealMsTokenApiV1DouyinWebGenerateRealMsTokenGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel generateSVWebIdApiV1DouyinWebGenerateSVWebIdGet()
生成s_v_web_id/Generate s_v_web_id
[中文] ### 用途: - 生成s_v_web_id ### 返回: - s_v_web_id # [English] ### Purpose: - Generate s_v_web_id ### Return: - s_v_web_id
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.generateSVWebIdApiV1DouyinWebGenerateSVWebIdGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateSVWebIdApiV1DouyinWebGenerateSVWebIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel generateSVWebIdApiV1DouyinWebGenerateSVWebIdGet_0()
生成s_v_web_id/Generate s_v_web_id
[中文] ### 用途: - 生成s_v_web_id ### 返回: - s_v_web_id # [English] ### Purpose: - Generate s_v_web_id ### Return: - s_v_web_id
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.generateSVWebIdApiV1DouyinWebGenerateSVWebIdGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateSVWebIdApiV1DouyinWebGenerateSVWebIdGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel generateTtwidApiV1DouyinWebGenerateTtwidGet(userAgent)
生成ttwid/Generate ttwid
[中文] ### 用途: - 生成ttwid ### 返回: - ttwid # [English] ### Purpose: - Generate ttwid ### Return: - ttwid
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String userAgent = "\"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0\""; // String |
try {
ResponseModel result = apiInstance.generateTtwidApiV1DouyinWebGenerateTtwidGet(userAgent);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateTtwidApiV1DouyinWebGenerateTtwidGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userAgent | String | [optional] [default to "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel generateTtwidApiV1DouyinWebGenerateTtwidGet_0(userAgent)
生成ttwid/Generate ttwid
[中文] ### 用途: - 生成ttwid ### 返回: - ttwid # [English] ### Purpose: - Generate ttwid ### Return: - ttwid
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String userAgent = "\"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0\""; // String |
try {
ResponseModel result = apiInstance.generateTtwidApiV1DouyinWebGenerateTtwidGet_0(userAgent);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateTtwidApiV1DouyinWebGenerateTtwidGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userAgent | String | [optional] [default to "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel generateVerifyFpApiV1DouyinWebGenerateVerifyFpGet()
生成verify_fp/Generate verify_fp
[中文] ### 用途: - 生成verify_fp ### 返回: - verify_fp # [English] ### Purpose: - Generate verify_fp ### Return: - verify_fp
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.generateVerifyFpApiV1DouyinWebGenerateVerifyFpGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateVerifyFpApiV1DouyinWebGenerateVerifyFpGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel generateVerifyFpApiV1DouyinWebGenerateVerifyFpGet_0()
生成verify_fp/Generate verify_fp
[中文] ### 用途: - 生成verify_fp ### 返回: - verify_fp # [English] ### Purpose: - Generate verify_fp ### Return: - verify_fp
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.generateVerifyFpApiV1DouyinWebGenerateVerifyFpGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateVerifyFpApiV1DouyinWebGenerateVerifyFpGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel generateXBogusApiV1DouyinWebGenerateXBogusPost(xbogusModel)
使用接口网址生成X-Bogus参数/Generate X-Bogus parameter using API URL
[中文] ### 用途: - 使用接口网址生成X-Bogus参数 ### 参数: - url: 接口网址 # [English] ### Purpose: - Generate X-Bogus parameter using API URL ### Parameters: - url: API URL # [示例/Example] ```json { "url": "https://www.douyin.com/aweme/v1/web/aweme/detail/?aweme_id=7148736076176215311&device_platform=webapp&aid=6383&channel=channel_pc_web&pc_client_type=1&version_code=170400&version_name=17.4.0&cookie_enabled=true&screen_width=1920&screen_height=1080&browser_language=zh-CN&browser_platform=Win32&browser_name=Edge&browser_version=117.0.2045.47&browser_online=true&engine_name=Blink&engine_version=117.0.0.0&os_name=Windows&os_version=10&cpu_core_num=128&device_memory=10240&platform=PC&downlink=10&effective_type=4g&round_trip_time=100\", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
XBogusModel xbogusModel = new XBogusModel(); // XBogusModel |
try {
ResponseModel result = apiInstance.generateXBogusApiV1DouyinWebGenerateXBogusPost(xbogusModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateXBogusApiV1DouyinWebGenerateXBogusPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
xbogusModel | XBogusModel | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel generateXBogusApiV1DouyinWebGenerateXBogusPost_0(xbogusModel)
使用接口网址生成X-Bogus参数/Generate X-Bogus parameter using API URL
[中文] ### 用途: - 使用接口网址生成X-Bogus参数 ### 参数: - url: 接口网址 # [English] ### Purpose: - Generate X-Bogus parameter using API URL ### Parameters: - url: API URL # [示例/Example] ```json { "url": "https://www.douyin.com/aweme/v1/web/aweme/detail/?aweme_id=7148736076176215311&device_platform=webapp&aid=6383&channel=channel_pc_web&pc_client_type=1&version_code=170400&version_name=17.4.0&cookie_enabled=true&screen_width=1920&screen_height=1080&browser_language=zh-CN&browser_platform=Win32&browser_name=Edge&browser_version=117.0.2045.47&browser_online=true&engine_name=Blink&engine_version=117.0.0.0&os_name=Windows&os_version=10&cpu_core_num=128&device_memory=10240&platform=PC&downlink=10&effective_type=4g&round_trip_time=100\", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
XBogusModel xbogusModel = new XBogusModel(); // XBogusModel |
try {
ResponseModel result = apiInstance.generateXBogusApiV1DouyinWebGenerateXBogusPost_0(xbogusModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#generateXBogusApiV1DouyinWebGenerateXBogusPost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
xbogusModel | XBogusModel | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getAllAwemeIdApiV1DouyinWebGetAllAwemeIdPost(requestBody)
提取列表作品id/Extract list video id
[中文] ### 用途: - 提取列表作品id(最多支持20个链接) ### 参数: - url: 作品链接列表 ### 返回: - 作品id列表 # [English] ### Purpose: - Extract list video id (supports up to 20 links) ### Parameters: - url: Video link list ### Return: - Video id list # [示例/Example] ```json { "urls":[ "0.53 02/26 I@v.sE Fus:/ 你别太帅了郑润泽# 现场版live # 音乐节 # 郑润泽 https://v.douyin.com/iRNBho6u/ 复制此链接,打开Dou音搜索,直接观看视频!", "https://v.douyin.com/iRNBho6u/", "https://www.iesdouyin.com/share/video/7298145681699622182/?region=CN&mid=7298145762238565171&u_code=l1j9bkbd&did=MS4wLjABAAAAtqpCx0hpOERbdSzQdjRZw-wFPxaqdbAzsKDmbJMUI3KWlMGQHC-n6dXAqa-dM2EP&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&titleType=title&share_sign=05kGlqGmR4_IwCX.ZGk6xuL0osNA..5ur7b0jbOx6cc-&share_version=170400&ts=1699262937&from_aid=6383&from_ssr=1&from=web_code_link", "https://www.douyin.com/video/7298145681699622182?previous_page=web_code_link", "https://www.douyin.com/video/7298145681699622182", ] } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
List<String> requestBody = ["0.53 02/26 I@v.sE Fus:/ 你别太帅了郑润泽# 现场版live # 音乐节 # 郑润泽 https://v.douyin.com/iRNBho6u/ 复制此链接,打开Dou音搜索,直接观看视频!","https://v.douyin.com/iRNBho6u/","https://www.iesdouyin.com/share/video/7298145681699622182/?region=CN&mid=7298145762238565171&u_code=l1j9bkbd&did=MS4wLjABAAAAtqpCx0hpOERbdSzQdjRZw-wFPxaqdbAzsKDmbJMUI3KWlMGQHC-n6dXAqa-dM2EP&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&titleType=title&share_sign=05kGlqGmR4_IwCX.ZGk6xuL0osNA..5ur7b0jbOx6cc-&share_version=170400&ts=1699262937&from_aid=6383&from_ssr=1&from=web_code_link","https://www.douyin.com/video/7298145681699622182?previous_page=web_code_link","https://www.douyin.com/video/7298145681699622182"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllAwemeIdApiV1DouyinWebGetAllAwemeIdPost(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getAllAwemeIdApiV1DouyinWebGetAllAwemeIdPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getAllAwemeIdApiV1DouyinWebGetAllAwemeIdPost_0(requestBody)
提取列表作品id/Extract list video id
[中文] ### 用途: - 提取列表作品id(最多支持20个链接) ### 参数: - url: 作品链接列表 ### 返回: - 作品id列表 # [English] ### Purpose: - Extract list video id (supports up to 20 links) ### Parameters: - url: Video link list ### Return: - Video id list # [示例/Example] ```json { "urls":[ "0.53 02/26 I@v.sE Fus:/ 你别太帅了郑润泽# 现场版live # 音乐节 # 郑润泽 https://v.douyin.com/iRNBho6u/ 复制此链接,打开Dou音搜索,直接观看视频!", "https://v.douyin.com/iRNBho6u/", "https://www.iesdouyin.com/share/video/7298145681699622182/?region=CN&mid=7298145762238565171&u_code=l1j9bkbd&did=MS4wLjABAAAAtqpCx0hpOERbdSzQdjRZw-wFPxaqdbAzsKDmbJMUI3KWlMGQHC-n6dXAqa-dM2EP&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&titleType=title&share_sign=05kGlqGmR4_IwCX.ZGk6xuL0osNA..5ur7b0jbOx6cc-&share_version=170400&ts=1699262937&from_aid=6383&from_ssr=1&from=web_code_link", "https://www.douyin.com/video/7298145681699622182?previous_page=web_code_link", "https://www.douyin.com/video/7298145681699622182", ] } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
List<String> requestBody = ["0.53 02/26 I@v.sE Fus:/ 你别太帅了郑润泽# 现场版live # 音乐节 # 郑润泽 https://v.douyin.com/iRNBho6u/ 复制此链接,打开Dou音搜索,直接观看视频!","https://v.douyin.com/iRNBho6u/","https://www.iesdouyin.com/share/video/7298145681699622182/?region=CN&mid=7298145762238565171&u_code=l1j9bkbd&did=MS4wLjABAAAAtqpCx0hpOERbdSzQdjRZw-wFPxaqdbAzsKDmbJMUI3KWlMGQHC-n6dXAqa-dM2EP&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&titleType=title&share_sign=05kGlqGmR4_IwCX.ZGk6xuL0osNA..5ur7b0jbOx6cc-&share_version=170400&ts=1699262937&from_aid=6383&from_ssr=1&from=web_code_link","https://www.douyin.com/video/7298145681699622182?previous_page=web_code_link","https://www.douyin.com/video/7298145681699622182"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllAwemeIdApiV1DouyinWebGetAllAwemeIdPost_0(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getAllAwemeIdApiV1DouyinWebGetAllAwemeIdPost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getAllSecUserIdApiV1DouyinWebGetAllSecUserIdPost(requestBody)
提取列表用户id/Extract list user id
[中文] ### 用途: - 提取列表用户id ### 参数: - url: 用户主页链接列表(最多支持10个链接) ### 返回: - 如果链接成功获取到sec_user_id,则返回sec_user_id,否则返回原始的输入链接,后续可以手动校验链接无法获取sec_user_id的原因。 # [English] ### Purpose: - Extract list user id ### Parameters: - url: User homepage link list (supports up to 10 links) ### Return: - If the sec_user_id is successfully obtained from the link, the sec_user_id is returned, otherwise the original input link is returned, and the reason why the sec_user_id cannot be obtained can be manually verified later. # [示例/Example] ```json { "urls":[ "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE?vid=7285950278132616463", "https://www.douyin.com/user/MS4wLjABAAAAVsneOf144eGDFf8Xp9QNb1VW6ovXnNT5SqJBhJfe8KQBKWKDTWK5Hh-_i9mJzb8C", "长按复制此条消息,打开抖音搜索,查看TA的更多作品。 https://v.douyin.com/idFqvUms/", "https://v.douyin.com/idFqvUms/" ] } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
List<String> requestBody = ["https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE?vid=7285950278132616463","https://www.douyin.com/user/MS4wLjABAAAAVsneOf144eGDFf8Xp9QNb1VW6ovXnNT5SqJBhJfe8KQBKWKDTWK5Hh-_i9mJzb8C","长按复制此条消息,打开抖音搜索,查看TA的更多作品。 https://v.douyin.com/idFqvUms/","https://v.douyin.com/idFqvUms/"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllSecUserIdApiV1DouyinWebGetAllSecUserIdPost(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getAllSecUserIdApiV1DouyinWebGetAllSecUserIdPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getAllSecUserIdApiV1DouyinWebGetAllSecUserIdPost_0(requestBody)
提取列表用户id/Extract list user id
[中文] ### 用途: - 提取列表用户id ### 参数: - url: 用户主页链接列表(最多支持10个链接) ### 返回: - 如果链接成功获取到sec_user_id,则返回sec_user_id,否则返回原始的输入链接,后续可以手动校验链接无法获取sec_user_id的原因。 # [English] ### Purpose: - Extract list user id ### Parameters: - url: User homepage link list (supports up to 10 links) ### Return: - If the sec_user_id is successfully obtained from the link, the sec_user_id is returned, otherwise the original input link is returned, and the reason why the sec_user_id cannot be obtained can be manually verified later. # [示例/Example] ```json { "urls":[ "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE?vid=7285950278132616463", "https://www.douyin.com/user/MS4wLjABAAAAVsneOf144eGDFf8Xp9QNb1VW6ovXnNT5SqJBhJfe8KQBKWKDTWK5Hh-_i9mJzb8C", "长按复制此条消息,打开抖音搜索,查看TA的更多作品。 https://v.douyin.com/idFqvUms/", "https://v.douyin.com/idFqvUms/" ] } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
List<String> requestBody = ["https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE?vid=7285950278132616463","https://www.douyin.com/user/MS4wLjABAAAAVsneOf144eGDFf8Xp9QNb1VW6ovXnNT5SqJBhJfe8KQBKWKDTWK5Hh-_i9mJzb8C","长按复制此条消息,打开抖音搜索,查看TA的更多作品。 https://v.douyin.com/idFqvUms/","https://v.douyin.com/idFqvUms/"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllSecUserIdApiV1DouyinWebGetAllSecUserIdPost_0(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getAllSecUserIdApiV1DouyinWebGetAllSecUserIdPost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getAllWebcastIdApiV1DouyinWebGetAllWebcastIdPost(requestBody)
提取列表直播间号/Extract list webcast id
[中文] ### 用途: - 提取列表直播间号 ### 参数: - url: 直播间链接列表(最多支持20个链接) ### 返回: - 直播间号列表 # [English] ### Purpose: - Extract list webcast id ### Parameters: - url: Room link list (supports up to 20 links) ### Return: - Room id list # [示例/Example] ```json { "urls": [ "https://live.douyin.com/775841227732", "https://live.douyin.com/775841227732?room_id=7318296342189919011&enter_from_merge=web_share_link&enter_method=web_share_link&previous_page=app_code_link", 'https://webcast.amemv.com/douyin/webcast/reflow/7318296342189919011?u_code=l1j9bkbd&did=MS4wLjABAAAAEs86TBQPNwAo-RGrcxWyCdwKhI66AK3Pqf3ieo6HaxI&iid=MS4wLjABAAAA0ptpM-zzoliLEeyvWOCUt-_dQza4uSjlIvbtIazXnCY&with_sec_did=1&use_link_command=1&ecom_share_track_params=&extra_params={"from_request_id":"20231230162057EC005772A8EAA0199906","im_channel_invite_id":"0"}&user_id=3644207898042206&liveId=7318296342189919011&from=share&style=share&enter_method=click_share&roomId=7318296342189919011&activity_info={}', "6i- Q@x.Sl 03/23 【醒子8ke的直播间】 点击打开👉https://v.douyin.com/i8tBR7hX/ 或长按复制此条消息,打开抖音,看TA直播", "https://v.douyin.com/i8tBR7hX/", ] } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
List<String> requestBody = ["https://live.douyin.com/775841227732","https://live.douyin.com/775841227732?room_id=7318296342189919011&enter_from_merge=web_share_link&enter_method=web_share_link&previous_page=app_code_link","https://webcast.amemv.com/douyin/webcast/reflow/7318296342189919011?u_code=l1j9bkbd&did=MS4wLjABAAAAEs86TBQPNwAo-RGrcxWyCdwKhI66AK3Pqf3ieo6HaxI&iid=MS4wLjABAAAA0ptpM-zzoliLEeyvWOCUt-_dQza4uSjlIvbtIazXnCY&with_sec_did=1&use_link_command=1&ecom_share_track_params=&extra_params={\"from_request_id\":\"20231230162057EC005772A8EAA0199906\",\"im_channel_invite_id\":\"0\"}&user_id=3644207898042206&liveId=7318296342189919011&from=share&style=share&enter_method=click_share&roomId=7318296342189919011&activity_info={}","6i- Q@x.Sl 03/23 【醒子8ke的直播间】 点击打开👉https://v.douyin.com/i8tBR7hX/ 或长按复制此条消息,打开抖音,看TA直播","https://v.douyin.com/i8tBR7hX/"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllWebcastIdApiV1DouyinWebGetAllWebcastIdPost(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getAllWebcastIdApiV1DouyinWebGetAllWebcastIdPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getAllWebcastIdApiV1DouyinWebGetAllWebcastIdPost_0(requestBody)
提取列表直播间号/Extract list webcast id
[中文] ### 用途: - 提取列表直播间号 ### 参数: - url: 直播间链接列表(最多支持20个链接) ### 返回: - 直播间号列表 # [English] ### Purpose: - Extract list webcast id ### Parameters: - url: Room link list (supports up to 20 links) ### Return: - Room id list # [示例/Example] ```json { "urls": [ "https://live.douyin.com/775841227732", "https://live.douyin.com/775841227732?room_id=7318296342189919011&enter_from_merge=web_share_link&enter_method=web_share_link&previous_page=app_code_link", 'https://webcast.amemv.com/douyin/webcast/reflow/7318296342189919011?u_code=l1j9bkbd&did=MS4wLjABAAAAEs86TBQPNwAo-RGrcxWyCdwKhI66AK3Pqf3ieo6HaxI&iid=MS4wLjABAAAA0ptpM-zzoliLEeyvWOCUt-_dQza4uSjlIvbtIazXnCY&with_sec_did=1&use_link_command=1&ecom_share_track_params=&extra_params={"from_request_id":"20231230162057EC005772A8EAA0199906","im_channel_invite_id":"0"}&user_id=3644207898042206&liveId=7318296342189919011&from=share&style=share&enter_method=click_share&roomId=7318296342189919011&activity_info={}', "6i- Q@x.Sl 03/23 【醒子8ke的直播间】 点击打开👉https://v.douyin.com/i8tBR7hX/ 或长按复制此条消息,打开抖音,看TA直播", "https://v.douyin.com/i8tBR7hX/", ] } ```
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
List<String> requestBody = ["https://live.douyin.com/775841227732","https://live.douyin.com/775841227732?room_id=7318296342189919011&enter_from_merge=web_share_link&enter_method=web_share_link&previous_page=app_code_link","https://webcast.amemv.com/douyin/webcast/reflow/7318296342189919011?u_code=l1j9bkbd&did=MS4wLjABAAAAEs86TBQPNwAo-RGrcxWyCdwKhI66AK3Pqf3ieo6HaxI&iid=MS4wLjABAAAA0ptpM-zzoliLEeyvWOCUt-_dQza4uSjlIvbtIazXnCY&with_sec_did=1&use_link_command=1&ecom_share_track_params=&extra_params={\"from_request_id\":\"20231230162057EC005772A8EAA0199906\",\"im_channel_invite_id\":\"0\"}&user_id=3644207898042206&liveId=7318296342189919011&from=share&style=share&enter_method=click_share&roomId=7318296342189919011&activity_info={}","6i- Q@x.Sl 03/23 【醒子8ke的直播间】 点击打开👉https://v.douyin.com/i8tBR7hX/ 或长按复制此条消息,打开抖音,看TA直播","https://v.douyin.com/i8tBR7hX/"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllWebcastIdApiV1DouyinWebGetAllWebcastIdPost_0(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getAllWebcastIdApiV1DouyinWebGetAllWebcastIdPost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getAwemeIdApiV1DouyinWebGetAwemeIdGet(url)
提取单个作品id/Extract single video id
[中文] ### 用途: - 提取单个作品id ### 参数: - url: 作品链接 ### 返回: - 作品id # [English] ### Purpose: - Extract single video id ### Parameters: - url: Video link ### Return: - Video id # [示例/Example] url = "https://www.douyin.com/video/7298145681699622182\"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String url = https://www.douyin.com/video/7298145681699622182; // String |
try {
ResponseModel result = apiInstance.getAwemeIdApiV1DouyinWebGetAwemeIdGet(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getAwemeIdApiV1DouyinWebGetAwemeIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
url | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getAwemeIdApiV1DouyinWebGetAwemeIdGet_0(url)
提取单个作品id/Extract single video id
[中文] ### 用途: - 提取单个作品id ### 参数: - url: 作品链接 ### 返回: - 作品id # [English] ### Purpose: - Extract single video id ### Parameters: - url: Video link ### Return: - Video id # [示例/Example] url = "https://www.douyin.com/video/7298145681699622182\"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String url = https://www.douyin.com/video/7298145681699622182; // String |
try {
ResponseModel result = apiInstance.getAwemeIdApiV1DouyinWebGetAwemeIdGet_0(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getAwemeIdApiV1DouyinWebGetAwemeIdGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
url | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getSecUserIdApiV1DouyinWebGetSecUserIdGet(url)
提取单个用户id/Extract single user id
[中文] ### 用途: - 提取单个用户id ### 参数: - url: 用户主页链接 ### 返回: - 用户sec_user_id # [English] ### Purpose: - Extract single user id ### Parameters: - url: User homepage link ### Return: - User sec_user_id # [示例/Example] url = "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE\"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String url = https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE; // String |
try {
ResponseModel result = apiInstance.getSecUserIdApiV1DouyinWebGetSecUserIdGet(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getSecUserIdApiV1DouyinWebGetSecUserIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
url | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getSecUserIdApiV1DouyinWebGetSecUserIdGet_0(url)
提取单个用户id/Extract single user id
[中文] ### 用途: - 提取单个用户id ### 参数: - url: 用户主页链接 ### 返回: - 用户sec_user_id # [English] ### Purpose: - Extract single user id ### Parameters: - url: User homepage link ### Return: - User sec_user_id # [示例/Example] url = "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE\"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String url = https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE; // String |
try {
ResponseModel result = apiInstance.getSecUserIdApiV1DouyinWebGetSecUserIdGet_0(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getSecUserIdApiV1DouyinWebGetSecUserIdGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
url | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getWebcastIdApiV1DouyinWebGetWebcastIdGet(url)
提取直播间号/Extract webcast id
[中文] ### 用途: - 提取列表直播间号 ### 参数: - url: 直播间链接 ### 返回: - 直播间号 # [English] ### Purpose: - Extract list webcast id ### Parameters: - url: Room link ### Return: - Room id # [示例/Example] url = "https://live.douyin.com/775841227732\"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String url = https://live.douyin.com/775841227732; // String |
try {
ResponseModel result = apiInstance.getWebcastIdApiV1DouyinWebGetWebcastIdGet(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getWebcastIdApiV1DouyinWebGetWebcastIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
url | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getWebcastIdApiV1DouyinWebGetWebcastIdGet_0(url)
提取直播间号/Extract webcast id
[中文] ### 用途: - 提取列表直播间号 ### 参数: - url: 直播间链接 ### 返回: - 直播间号 # [English] ### Purpose: - Extract list webcast id ### Parameters: - url: Room link ### Return: - Room id # [示例/Example] url = "https://live.douyin.com/775841227732\"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String url = https://live.douyin.com/775841227732; // String |
try {
ResponseModel result = apiInstance.getWebcastIdApiV1DouyinWebGetWebcastIdGet_0(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#getWebcastIdApiV1DouyinWebGetWebcastIdGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
url | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileApiV1DouyinWebHandlerUserProfileGet(secUserId)
根据sec_user_id获取指定用户的信息/Get information of specified user by sec_user_id
[中文] ### 用途: - 获取指定用户的信息 ### 参数: - sec_user_id: 用户sec_user_id ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user ### Parameters: - sec_user_id: User sec_user_id ### Return: - User information # [示例/Example] sec_user_id = "MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y; // String | 用户sec_user_id/User sec_user_id
try {
ResponseModel result = apiInstance.handlerUserProfileApiV1DouyinWebHandlerUserProfileGet(secUserId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#handlerUserProfileApiV1DouyinWebHandlerUserProfileGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileApiV1DouyinWebHandlerUserProfileGet_0(secUserId)
根据sec_user_id获取指定用户的信息/Get information of specified user by sec_user_id
[中文] ### 用途: - 获取指定用户的信息 ### 参数: - sec_user_id: 用户sec_user_id ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user ### Parameters: - sec_user_id: User sec_user_id ### Return: - User information # [示例/Example] sec_user_id = "MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y; // String | 用户sec_user_id/User sec_user_id
try {
ResponseModel result = apiInstance.handlerUserProfileApiV1DouyinWebHandlerUserProfileGet_0(secUserId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#handlerUserProfileApiV1DouyinWebHandlerUserProfileGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileV2ApiV1DouyinWebHandlerUserProfileV2Get(uniqueId)
根据抖音号获取指定用户的信息/Get information of specified user by unique_id
[中文] ### 用途: - 根据抖音号获取指定用户的信息 ### 参数: - unique_id: 用户unique_id ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user by unique_id ### Parameters: - unique_id: User unique_id ### Return: - User information # [示例/Example] unique_id = "TheChief"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String uniqueId = TheChief; // String | 用户unique_id/User unique_id
try {
ResponseModel result = apiInstance.handlerUserProfileV2ApiV1DouyinWebHandlerUserProfileV2Get(uniqueId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#handlerUserProfileV2ApiV1DouyinWebHandlerUserProfileV2Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uniqueId | String | 用户unique_id/User unique_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileV2ApiV1DouyinWebHandlerUserProfileV2Get_0(uniqueId)
根据抖音号获取指定用户的信息/Get information of specified user by unique_id
[中文] ### 用途: - 根据抖音号获取指定用户的信息 ### 参数: - unique_id: 用户unique_id ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user by unique_id ### Parameters: - unique_id: User unique_id ### Return: - User information # [示例/Example] unique_id = "TheChief"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String uniqueId = TheChief; // String | 用户unique_id/User unique_id
try {
ResponseModel result = apiInstance.handlerUserProfileV2ApiV1DouyinWebHandlerUserProfileV2Get_0(uniqueId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#handlerUserProfileV2ApiV1DouyinWebHandlerUserProfileV2Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uniqueId | String | 用户unique_id/User unique_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileV3ApiV1DouyinWebHandlerUserProfileV3Get(uid)
根据抖音uid获取指定用户的信息/Get information of specified user by uid
[中文] ### 用途: - 根据抖音uid获取指定用户的信息 ### 参数: - uid: 用户uid,也就是抖音号的short_id ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user by unique_id ### Parameters: - uid: User uid, which is the short_id of the Douyin number ### Return: - User information # [示例/Example] uid = "1673937488185292"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String uid = 1673937488185292; // String | 用户uid(short_id)/User uid(short_id)
try {
ResponseModel result = apiInstance.handlerUserProfileV3ApiV1DouyinWebHandlerUserProfileV3Get(uid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#handlerUserProfileV3ApiV1DouyinWebHandlerUserProfileV3Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户uid(short_id)/User uid(short_id) |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileV3ApiV1DouyinWebHandlerUserProfileV3Get_0(uid)
根据抖音uid获取指定用户的信息/Get information of specified user by uid
[中文] ### 用途: - 根据抖音uid获取指定用户的信息 ### 参数: - uid: 用户uid,也就是抖音号的short_id ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user by unique_id ### Parameters: - uid: User uid, which is the short_id of the Douyin number ### Return: - User information # [示例/Example] uid = "1673937488185292"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String uid = 1673937488185292; // String | 用户uid(short_id)/User uid(short_id)
try {
ResponseModel result = apiInstance.handlerUserProfileV3ApiV1DouyinWebHandlerUserProfileV3Get_0(uid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#handlerUserProfileV3ApiV1DouyinWebHandlerUserProfileV3Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户uid(short_id)/User uid(short_id) |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileV4ApiV1DouyinWebHandlerUserProfileV4Get(secUserId)
根据sec_user_id获取指定用户的信息(性别,年龄,直播等级、牌子)/Get information of specified user by sec_user_id (gender, age, live level、brand)
[中文] ### 用途: - 获取指定用户的信息 ### 参数: - sec_user_id: 用户sec_user_id ### 返回: - 用户信息,包含性别,年龄,直播等级,直播间牌子 ### 说明: - 性别:1为男,2为女,0为未知,在live_user字段中。 - 年龄:在user字段中,-1为未知。 # [English] ### Purpose: - Get information of specified user ### Parameters: - sec_user_id: User sec_user_id ### Return: - User information, including gender, age, live level, live room brand ### Description: - gender: 1 male, 2 female, 0 unknown, in the live_user field. - age: in the user field, -1 unknown. # [示例/Example] sec_user_id = "MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y; // String | 用户sec_user_id/User sec_user_id
try {
ResponseModel result = apiInstance.handlerUserProfileV4ApiV1DouyinWebHandlerUserProfileV4Get(secUserId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#handlerUserProfileV4ApiV1DouyinWebHandlerUserProfileV4Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileV4ApiV1DouyinWebHandlerUserProfileV4Get_0(secUserId)
根据sec_user_id获取指定用户的信息(性别,年龄,直播等级、牌子)/Get information of specified user by sec_user_id (gender, age, live level、brand)
[中文] ### 用途: - 获取指定用户的信息 ### 参数: - sec_user_id: 用户sec_user_id ### 返回: - 用户信息,包含性别,年龄,直播等级,直播间牌子 ### 说明: - 性别:1为男,2为女,0为未知,在live_user字段中。 - 年龄:在user字段中,-1为未知。 # [English] ### Purpose: - Get information of specified user ### Parameters: - sec_user_id: User sec_user_id ### Return: - User information, including gender, age, live level, live room brand ### Description: - gender: 1 male, 2 female, 0 unknown, in the live_user field. - age: in the user field, -1 unknown. # [示例/Example] sec_user_id = "MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String secUserId = MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y; // String | 用户sec_user_id/User sec_user_id
try {
ResponseModel result = apiInstance.handlerUserProfileV4ApiV1DouyinWebHandlerUserProfileV4Get_0(secUserId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#handlerUserProfileV4ApiV1DouyinWebHandlerUserProfileV4Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel webcastId2RoomIdApiV1DouyinWebWebcastId2RoomIdGet(webcastId)
直播间号转房间号/Webcast id to room id
[中文] ### 用途: - 直播间号转房间号 ### 参数: - webcast_id: 直播间号 ### 返回: - 房间号 # [English] ### Purpose: - Webcast id to room id ### Parameters: - webcast_id: Webcast id ### Return: - Room id # [示例/Example] "webcast_id = "775841227732"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String webcastId = 775841227732; // String | 直播间号/Webcast id
try {
ResponseModel result = apiInstance.webcastId2RoomIdApiV1DouyinWebWebcastId2RoomIdGet(webcastId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#webcastId2RoomIdApiV1DouyinWebWebcastId2RoomIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webcastId | String | 直播间号/Webcast id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel webcastId2RoomIdApiV1DouyinWebWebcastId2RoomIdGet_0(webcastId)
直播间号转房间号/Webcast id to room id
[中文] ### 用途: - 直播间号转房间号 ### 参数: - webcast_id: 直播间号 ### 返回: - 房间号 # [English] ### Purpose: - Webcast id to room id ### Parameters: - webcast_id: Webcast id ### Return: - Room id # [示例/Example] "webcast_id = "775841227732"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.DouyinWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
DouyinWebApiApi apiInstance = new DouyinWebApiApi(defaultClient);
String webcastId = 775841227732; // String | 直播间号/Webcast id
try {
ResponseModel result = apiInstance.webcastId2RoomIdApiV1DouyinWebWebcastId2RoomIdGet_0(webcastId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DouyinWebApiApi#webcastId2RoomIdApiV1DouyinWebWebcastId2RoomIdGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webcastId | String | 直播间号/Webcast id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |