All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
douyinLiveRoomApiV1TiktokWebTiktokLiveRoomGet | GET /api/v1/tiktok/web/tiktok_live_room | 提取直播间弹幕/Extract live room danmaku |
douyinLiveRoomApiV1TiktokWebTiktokLiveRoomGet_0 | GET /api/v1/tiktok/web/tiktok_live_room | 提取直播间弹幕/Extract live room danmaku |
fetchCheckLiveAliveApiV1TiktokWebFetchCheckLiveAliveGet | GET /api/v1/tiktok/web/fetch_check_live_alive | 直播间开播状态检测/Live room start status check |
fetchCheckLiveAliveApiV1TiktokWebFetchCheckLiveAliveGet_0 | GET /api/v1/tiktok/web/fetch_check_live_alive | 直播间开播状态检测/Live room start status check |
fetchExplorePostApiV1TiktokWebFetchExplorePostGet | GET /api/v1/tiktok/web/fetch_explore_post | 获取探索作品数据/Get explore video data |
fetchExplorePostApiV1TiktokWebFetchExplorePostGet_0 | GET /api/v1/tiktok/web/fetch_explore_post | 获取探索作品数据/Get explore video data |
fetchGeneralSearchApiV1TiktokWebFetchGeneralSearchGet | GET /api/v1/tiktok/web/fetch_general_search | 获取综合搜索列表/Get general search list |
fetchGeneralSearchApiV1TiktokWebFetchGeneralSearchGet_0 | GET /api/v1/tiktok/web/fetch_general_search | 获取综合搜索列表/Get general search list |
fetchHomeFeedApiV1TiktokWebFetchHomeFeedPost | POST /api/v1/tiktok/web/fetch_home_feed | 首页推荐作品/Home Feed |
fetchHomeFeedApiV1TiktokWebFetchHomeFeedPost_0 | POST /api/v1/tiktok/web/fetch_home_feed | 首页推荐作品/Home Feed |
fetchLiveRecommendApiV1TiktokWebFetchLiveRecommendGet | GET /api/v1/tiktok/web/fetch_live_recommend | 获取直播间首页推荐列表/Get live room homepage recommendation list |
fetchLiveRecommendApiV1TiktokWebFetchLiveRecommendGet_0 | GET /api/v1/tiktok/web/fetch_live_recommend | 获取直播间首页推荐列表/Get live room homepage recommendation list |
fetchPostCommentApiV1TiktokWebFetchPostCommentGet | GET /api/v1/tiktok/web/fetch_post_comment | 获取作品的评论列表/Get video comments |
fetchPostCommentApiV1TiktokWebFetchPostCommentGet_0 | GET /api/v1/tiktok/web/fetch_post_comment | 获取作品的评论列表/Get video comments |
fetchPostCommentReplyApiV1TiktokWebFetchPostCommentReplyGet | GET /api/v1/tiktok/web/fetch_post_comment_reply | 获取作品的评论回复列表/Get video comment replies |
fetchPostCommentReplyApiV1TiktokWebFetchPostCommentReplyGet_0 | GET /api/v1/tiktok/web/fetch_post_comment_reply | 获取作品的评论回复列表/Get video comment replies |
fetchPostDetailApiV1TiktokWebFetchPostDetailGet | GET /api/v1/tiktok/web/fetch_post_detail | 获取单个作品数据/Get single video data |
fetchPostDetailApiV1TiktokWebFetchPostDetailGet_0 | GET /api/v1/tiktok/web/fetch_post_detail | 获取单个作品数据/Get single video data |
fetchSearchKeywordSuggestApiV1TiktokWebFetchSearchKeywordSuggestGet | GET /api/v1/tiktok/web/fetch_search_keyword_suggest | 搜索关键字推荐/Search keyword suggest |
fetchSearchKeywordSuggestApiV1TiktokWebFetchSearchKeywordSuggestGet_0 | GET /api/v1/tiktok/web/fetch_search_keyword_suggest | 搜索关键字推荐/Search keyword suggest |
fetchSearchLiveApiV1TiktokWebFetchSearchLiveGet | GET /api/v1/tiktok/web/fetch_search_live | 搜索直播/Search live |
fetchSearchLiveApiV1TiktokWebFetchSearchLiveGet_0 | GET /api/v1/tiktok/web/fetch_search_live | 搜索直播/Search live |
fetchSearchUserApiV1TiktokWebFetchSearchUserGet | GET /api/v1/tiktok/web/fetch_search_user | 搜索用户/Search user |
fetchSearchUserApiV1TiktokWebFetchSearchUserGet_0 | GET /api/v1/tiktok/web/fetch_search_user | 搜索用户/Search user |
fetchSearchVideoApiV1TiktokWebFetchSearchVideoGet | GET /api/v1/tiktok/web/fetch_search_video | 搜索视频/Search video |
fetchSearchVideoApiV1TiktokWebFetchSearchVideoGet_0 | GET /api/v1/tiktok/web/fetch_search_video | 搜索视频/Search video |
fetchTagDetailApiV1TiktokWebFetchTagDetailGet | GET /api/v1/tiktok/web/fetch_tag_detail | Tag详情/Tag Detail |
fetchTagDetailApiV1TiktokWebFetchTagDetailGet_0 | GET /api/v1/tiktok/web/fetch_tag_detail | Tag详情/Tag Detail |
fetchTagPostApiV1TiktokWebFetchTagPostGet | GET /api/v1/tiktok/web/fetch_tag_post | Tag作品/Tag Post |
fetchTagPostApiV1TiktokWebFetchTagPostGet_0 | GET /api/v1/tiktok/web/fetch_tag_post | Tag作品/Tag Post |
fetchTiktokLiveDataApiV1TiktokWebFetchTiktokLiveDataGet | GET /api/v1/tiktok/web/fetch_tiktok_live_data | 通过直播链接获取直播间信息/Get live room information via live link |
fetchTiktokLiveDataApiV1TiktokWebFetchTiktokLiveDataGet_0 | GET /api/v1/tiktok/web/fetch_tiktok_live_data | 通过直播链接获取直播间信息/Get live room information via live link |
fetchTrendingPostApiV1TiktokWebFetchTrendingPostGet | GET /api/v1/tiktok/web/fetch_trending_post | 获取每日热门内容作品数据/Get daily trending video data |
fetchTrendingPostApiV1TiktokWebFetchTrendingPostGet_0 | GET /api/v1/tiktok/web/fetch_trending_post | 获取每日热门内容作品数据/Get daily trending video data |
fetchUserCollectApiV1TiktokWebFetchUserCollectGet | GET /api/v1/tiktok/web/fetch_user_collect | 获取用户的收藏列表/Get user favorites |
fetchUserCollectApiV1TiktokWebFetchUserCollectGet_0 | GET /api/v1/tiktok/web/fetch_user_collect | 获取用户的收藏列表/Get user favorites |
fetchUserFansApiV1TiktokWebFetchUserFansGet | GET /api/v1/tiktok/web/fetch_user_fans | 获取用户的粉丝列表/Get user followers |
fetchUserFansApiV1TiktokWebFetchUserFansGet_0 | GET /api/v1/tiktok/web/fetch_user_fans | 获取用户的粉丝列表/Get user followers |
fetchUserFollowApiV1TiktokWebFetchUserFollowGet | GET /api/v1/tiktok/web/fetch_user_follow | 获取用户的关注列表/Get user followings |
fetchUserFollowApiV1TiktokWebFetchUserFollowGet_0 | GET /api/v1/tiktok/web/fetch_user_follow | 获取用户的关注列表/Get user followings |
fetchUserLikeApiV1TiktokWebFetchUserLikeGet | GET /api/v1/tiktok/web/fetch_user_like | 获取用户的点赞列表/Get user likes |
fetchUserLikeApiV1TiktokWebFetchUserLikeGet_0 | GET /api/v1/tiktok/web/fetch_user_like | 获取用户的点赞列表/Get user likes |
fetchUserMixApiV1TiktokWebFetchUserMixGet | GET /api/v1/tiktok/web/fetch_user_mix | 获取用户的合辑列表/Get user mix list |
fetchUserMixApiV1TiktokWebFetchUserMixGet_0 | GET /api/v1/tiktok/web/fetch_user_mix | 获取用户的合辑列表/Get user mix list |
fetchUserPlayListApiV1TiktokWebFetchUserPlayListGet | GET /api/v1/tiktok/web/fetch_user_play_list | 获取用户的播放列表/Get user play list |
fetchUserPlayListApiV1TiktokWebFetchUserPlayListGet_0 | GET /api/v1/tiktok/web/fetch_user_play_list | 获取用户的播放列表/Get user play list |
fetchUserPostApiV1TiktokWebFetchUserPostGet | GET /api/v1/tiktok/web/fetch_user_post | 获取用户的作品列表/Get user posts |
fetchUserPostApiV1TiktokWebFetchUserPostGet_0 | GET /api/v1/tiktok/web/fetch_user_post | 获取用户的作品列表/Get user posts |
fetchUserProfileApiV1TiktokWebFetchUserProfileGet | GET /api/v1/tiktok/web/fetch_user_profile | 获取用户的个人信息/Get user profile |
fetchUserProfileApiV1TiktokWebFetchUserProfileGet_0 | GET /api/v1/tiktok/web/fetch_user_profile | 获取用户的个人信息/Get user profile |
generateRealMsTokenApiV1TiktokWebGenerateRealMsTokenGet | GET /api/v1/tiktok/web/generate_real_msToken | 生成真实msToken/Generate real msToken |
generateRealMsTokenApiV1TiktokWebGenerateRealMsTokenGet_0 | GET /api/v1/tiktok/web/generate_real_msToken | 生成真实msToken/Generate real msToken |
generateTtwidApiV1TiktokWebGenerateTtwidGet | GET /api/v1/tiktok/web/generate_ttwid | 生成ttwid/Generate ttwid |
generateTtwidApiV1TiktokWebGenerateTtwidGet_0 | GET /api/v1/tiktok/web/generate_ttwid | 生成ttwid/Generate ttwid |
generateXbogusApiV1TiktokWebGenerateXbogusPost | POST /api/v1/tiktok/web/generate_xbogus | 生成xbogus/Generate xbogus |
generateXbogusApiV1TiktokWebGenerateXbogusPost_0 | POST /api/v1/tiktok/web/generate_xbogus | 生成xbogus/Generate xbogus |
getAllAwemeIdApiV1TiktokWebGetAllAwemeIdPost | POST /api/v1/tiktok/web/get_all_aweme_id | 提取列表作品id/Extract list video id |
getAllAwemeIdApiV1TiktokWebGetAllAwemeIdPost_0 | POST /api/v1/tiktok/web/get_all_aweme_id | 提取列表作品id/Extract list video id |
getAllSecUserIdApiV1TiktokWebGetAllSecUserIdPost | POST /api/v1/tiktok/web/get_all_sec_user_id | 提取列表用户sec_user_id/Extract list user sec_user_id |
getAllSecUserIdApiV1TiktokWebGetAllSecUserIdPost_0 | POST /api/v1/tiktok/web/get_all_sec_user_id | 提取列表用户sec_user_id/Extract list user sec_user_id |
getAllUniqueIdApiV1TiktokWebGetAllUniqueIdPost | POST /api/v1/tiktok/web/get_all_unique_id | 获取列表unique_id/Get list unique_id |
getAllUniqueIdApiV1TiktokWebGetAllUniqueIdPost_0 | POST /api/v1/tiktok/web/get_all_unique_id | 获取列表unique_id/Get list unique_id |
getAwemeIdApiV1TiktokWebGetAwemeIdGet | GET /api/v1/tiktok/web/get_aweme_id | 提取单个作品id/Extract single video id |
getAwemeIdApiV1TiktokWebGetAwemeIdGet_0 | GET /api/v1/tiktok/web/get_aweme_id | 提取单个作品id/Extract single video id |
getLiveRoomIdApiV1TiktokWebGetLiveRoomIdGet | GET /api/v1/tiktok/web/get_live_room_id | 根据直播间链接提取直播间ID/Extract live room ID from live room link |
getLiveRoomIdApiV1TiktokWebGetLiveRoomIdGet_0 | GET /api/v1/tiktok/web/get_live_room_id | 根据直播间链接提取直播间ID/Extract live room ID from live room link |
getSecUserIdApiV1TiktokWebGetSecUserIdGet | GET /api/v1/tiktok/web/get_sec_user_id | 提取用户sec_user_id/Extract user sec_user_id |
getSecUserIdApiV1TiktokWebGetSecUserIdGet_0 | GET /api/v1/tiktok/web/get_sec_user_id | 提取用户sec_user_id/Extract user sec_user_id |
getUniqueIdApiV1TiktokWebGetUniqueIdGet | GET /api/v1/tiktok/web/get_unique_id | 获取用户unique_id/Get user unique_id |
getUniqueIdApiV1TiktokWebGetUniqueIdGet_0 | GET /api/v1/tiktok/web/get_unique_id | 获取用户unique_id/Get user unique_id |
ResponseModel douyinLiveRoomApiV1TiktokWebTiktokLiveRoomGet(liveRoomUrl, danmakuType)
提取直播间弹幕/Extract live room danmaku
[中文] ### 用途: - 提取直播间弹幕 #### 价格: - 每10条数据消耗0.001$,支持阶梯式计费折扣。 ### 参数: - live_room_url: 直播间链接 - danmaku_type: 消息类型 - WebcastChatMessage: 聊天消息 - WebcastMemberMessage: 成员消息 - WebcastRoomUserSeqMessage: 用户序列消息 - WebcastGiftMessage: 礼物消息 - WebcastSocialMessage: 社交消息 - WebcastLikeMessage: 点赞消息 - WebcastLinkMicFanTicketMethod: 连麦粉丝票方法 - WebcastLinkMicMethod: 连麦方法 ### 返回: - 弹幕数据的WebSocket连接信息,需要使用WebSocket连接获取弹幕数据,此接口不返回弹幕数据。 # [English] ### Purpose: - Extract live room danmaku #### Price: - 0.001$ per 10 data, support tiered billing discount. ### Parameters: - live_room_url: Live room link - danmaku_type: Message type - WebcastChatMessage: Chat message - WebcastMemberMessage: Member message - WebcastRoomUserSeqMessage: User sequence message - WebcastGiftMessage: Gift message - WebcastSocialMessage: Social message - WebcastLikeMessage: Like message - WebcastLinkMicFanTicketMethod: Link Mic Fan Ticket Method - WebcastLinkMicMethod: Link Mic Method ### 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String liveRoomUrl = https://www.tiktok.com/@mpl.id.official/live; // String | 直播间链接/Live room link
String danmakuType = WebcastChatMessage; // String | 消息类型/Message type
try {
ResponseModel result = apiInstance.douyinLiveRoomApiV1TiktokWebTiktokLiveRoomGet(liveRoomUrl, danmakuType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#douyinLiveRoomApiV1TiktokWebTiktokLiveRoomGet");
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 douyinLiveRoomApiV1TiktokWebTiktokLiveRoomGet_0(liveRoomUrl, danmakuType)
提取直播间弹幕/Extract live room danmaku
[中文] ### 用途: - 提取直播间弹幕 #### 价格: - 每10条数据消耗0.001$,支持阶梯式计费折扣。 ### 参数: - live_room_url: 直播间链接 - danmaku_type: 消息类型 - WebcastChatMessage: 聊天消息 - WebcastMemberMessage: 成员消息 - WebcastRoomUserSeqMessage: 用户序列消息 - WebcastGiftMessage: 礼物消息 - WebcastSocialMessage: 社交消息 - WebcastLikeMessage: 点赞消息 - WebcastLinkMicFanTicketMethod: 连麦粉丝票方法 - WebcastLinkMicMethod: 连麦方法 ### 返回: - 弹幕数据的WebSocket连接信息,需要使用WebSocket连接获取弹幕数据,此接口不返回弹幕数据。 # [English] ### Purpose: - Extract live room danmaku #### Price: - 0.001$ per 10 data, support tiered billing discount. ### Parameters: - live_room_url: Live room link - danmaku_type: Message type - WebcastChatMessage: Chat message - WebcastMemberMessage: Member message - WebcastRoomUserSeqMessage: User sequence message - WebcastGiftMessage: Gift message - WebcastSocialMessage: Social message - WebcastLikeMessage: Like message - WebcastLinkMicFanTicketMethod: Link Mic Fan Ticket Method - WebcastLinkMicMethod: Link Mic Method ### 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String liveRoomUrl = https://www.tiktok.com/@mpl.id.official/live; // String | 直播间链接/Live room link
String danmakuType = WebcastChatMessage; // String | 消息类型/Message type
try {
ResponseModel result = apiInstance.douyinLiveRoomApiV1TiktokWebTiktokLiveRoomGet_0(liveRoomUrl, danmakuType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#douyinLiveRoomApiV1TiktokWebTiktokLiveRoomGet_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 fetchCheckLiveAliveApiV1TiktokWebFetchCheckLiveAliveGet(roomId)
直播间开播状态检测/Live room start status check
[中文] ### 用途: - 直播间开播状态检测 - 如果当前直播间不存在或已下播,则返回空。 ### 参数: - room_id: 直播间ID ### 返回: - 直播间开播状态 # [English] ### Purpose: - Live room start status check - If the current live room does not exist or has ended, it will return empty. ### Parameters: - room_id: Live room ID ### Return: - Live room start status # [示例/Example] room_id = "7381444193462078214"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String roomId = 7381444193462078214; // String | 直播间ID/Live room ID
try {
ResponseModel result = apiInstance.fetchCheckLiveAliveApiV1TiktokWebFetchCheckLiveAliveGet(roomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchCheckLiveAliveApiV1TiktokWebFetchCheckLiveAliveGet");
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 | 直播间ID/Live room ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCheckLiveAliveApiV1TiktokWebFetchCheckLiveAliveGet_0(roomId)
直播间开播状态检测/Live room start status check
[中文] ### 用途: - 直播间开播状态检测 - 如果当前直播间不存在或已下播,则返回空。 ### 参数: - room_id: 直播间ID ### 返回: - 直播间开播状态 # [English] ### Purpose: - Live room start status check - If the current live room does not exist or has ended, it will return empty. ### Parameters: - room_id: Live room ID ### Return: - Live room start status # [示例/Example] room_id = "7381444193462078214"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String roomId = 7381444193462078214; // String | 直播间ID/Live room ID
try {
ResponseModel result = apiInstance.fetchCheckLiveAliveApiV1TiktokWebFetchCheckLiveAliveGet_0(roomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchCheckLiveAliveApiV1TiktokWebFetchCheckLiveAliveGet_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 | 直播间ID/Live room ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchExplorePostApiV1TiktokWebFetchExplorePostGet(categoryType, count)
获取探索作品数据/Get explore video data
[中文] ### 用途: - 获取探索作品数据 ### 参数: - categoryType: 作品分类 - 100: 动画与漫画 - 101: 表演 - 102: 美容护理 - 103: 游戏 - 104: 喜剧 - 105: 日常生活 - 106: 家庭 - 107: 情感关系 - 108: 戏剧 - 109: 穿搭 - 110: 对口型 - 111: 美食 - 112: 运动 - 113: 动物 - 114: 社会 - 115: 汽车 - 116: 教育 - 117: 健身和健康 - 118: 科技 - 119: 唱歌跳舞 - 120: 全部 - count: 每页数量 ### 返回: - 作品数据 # [English] ### Purpose: - Get explore video data ### Parameters: - categoryType: Video category - 100: Animation and comics - 101: Performance - 102: Beauty care - 103: Game - 104: Comedy - 105: Daily life - 106: Family - 107: Emotional relationship - 108: Drama - 109: Dress up - 110: Dubbing - 111: Food - 112: Sports - 113: Animals - 114: Society - 115: Car - 116: Education - 117: Fitness and health - 118: Technology - 119: Singing and dancing - 120: All - count: Number per page ### Return: - Video data # [示例/Example] categoryType = "120" count = 16
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String categoryType = "\"120\""; // String | 作品分类/Video category
Integer count = 16; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchExplorePostApiV1TiktokWebFetchExplorePostGet(categoryType, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchExplorePostApiV1TiktokWebFetchExplorePostGet");
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 |
---|---|---|---|
categoryType | String | 作品分类/Video category | [optional] [default to "120"] |
count | Integer | 每页数量/Number per page | [optional] [default to 16] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchExplorePostApiV1TiktokWebFetchExplorePostGet_0(categoryType, count)
获取探索作品数据/Get explore video data
[中文] ### 用途: - 获取探索作品数据 ### 参数: - categoryType: 作品分类 - 100: 动画与漫画 - 101: 表演 - 102: 美容护理 - 103: 游戏 - 104: 喜剧 - 105: 日常生活 - 106: 家庭 - 107: 情感关系 - 108: 戏剧 - 109: 穿搭 - 110: 对口型 - 111: 美食 - 112: 运动 - 113: 动物 - 114: 社会 - 115: 汽车 - 116: 教育 - 117: 健身和健康 - 118: 科技 - 119: 唱歌跳舞 - 120: 全部 - count: 每页数量 ### 返回: - 作品数据 # [English] ### Purpose: - Get explore video data ### Parameters: - categoryType: Video category - 100: Animation and comics - 101: Performance - 102: Beauty care - 103: Game - 104: Comedy - 105: Daily life - 106: Family - 107: Emotional relationship - 108: Drama - 109: Dress up - 110: Dubbing - 111: Food - 112: Sports - 113: Animals - 114: Society - 115: Car - 116: Education - 117: Fitness and health - 118: Technology - 119: Singing and dancing - 120: All - count: Number per page ### Return: - Video data # [示例/Example] categoryType = "120" count = 16
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String categoryType = "\"120\""; // String | 作品分类/Video category
Integer count = 16; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchExplorePostApiV1TiktokWebFetchExplorePostGet_0(categoryType, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchExplorePostApiV1TiktokWebFetchExplorePostGet_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 |
---|---|---|---|
categoryType | String | 作品分类/Video category | [optional] [default to "120"] |
count | Integer | 每页数量/Number per page | [optional] [default to 16] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchGeneralSearchApiV1TiktokWebFetchGeneralSearchGet(keyword, offset, searchId, cookie)
获取综合搜索列表/Get general search list
[中文] ### 用途: - 获取综合搜索列表 ### 参数: - keyword: 搜索关键词 - offset: 翻页游标,第一次请求时为0,第二次请求时从上一次请求的返回响应中获取,一般这个值的关键字为offset或者cursor。 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: 用户cookie(如果你需要使用自己的账号搜索,或者遇到接口报错,可以自行提供cookie,默认不需要提供) ### 返回: - 综合搜索列表 # [English] ### Purpose: - Get general search list ### Parameters: - keyword: Search keyword - offset: Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor. - 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 = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: User cookie (If you need to search with your own account, or encounter an interface error, you can provide the cookie yourself, default is not required) ### Return: - General search list # [示例/Example] keyword = "TikTok" offset = 0 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
Integer offset = 0; // Integer | 翻页游标/Page cursor
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
String cookie = "cookie_example"; // String | 用户cookie(按需提供)/User cookie(if needed)
try {
ResponseModel result = apiInstance.fetchGeneralSearchApiV1TiktokWebFetchGeneralSearchGet(keyword, offset, searchId, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchGeneralSearchApiV1TiktokWebFetchGeneralSearchGet");
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 | 搜索关键词/Search keyword | |
offset | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
cookie | String | 用户cookie(按需提供)/User cookie(if needed) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchGeneralSearchApiV1TiktokWebFetchGeneralSearchGet_0(keyword, offset, searchId, cookie)
获取综合搜索列表/Get general search list
[中文] ### 用途: - 获取综合搜索列表 ### 参数: - keyword: 搜索关键词 - offset: 翻页游标,第一次请求时为0,第二次请求时从上一次请求的返回响应中获取,一般这个值的关键字为offset或者cursor。 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: 用户cookie(如果你需要使用自己的账号搜索,或者遇到接口报错,可以自行提供cookie,默认不需要提供) ### 返回: - 综合搜索列表 # [English] ### Purpose: - Get general search list ### Parameters: - keyword: Search keyword - offset: Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor. - 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 = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: User cookie (If you need to search with your own account, or encounter an interface error, you can provide the cookie yourself, default is not required) ### Return: - General search list # [示例/Example] keyword = "TikTok" offset = 0 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
Integer offset = 0; // Integer | 翻页游标/Page cursor
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
String cookie = "cookie_example"; // String | 用户cookie(按需提供)/User cookie(if needed)
try {
ResponseModel result = apiInstance.fetchGeneralSearchApiV1TiktokWebFetchGeneralSearchGet_0(keyword, offset, searchId, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchGeneralSearchApiV1TiktokWebFetchGeneralSearchGet_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 | 搜索关键词/Search keyword | |
offset | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
cookie | String | 用户cookie(按需提供)/User cookie(if needed) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHomeFeedApiV1TiktokWebFetchHomeFeedPost(UNKNOWN_BASE_TYPE)
首页推荐作品/Home Feed
[中文] ### 用途: - 首页推荐作品 ### 参数: - count: 每页数量 - cookie: 用户自己的cookie,可选参数,用于接口返回数据的个性化推荐。 ### 返回: - 首页推荐作品 # [English] ### Purpose: - Home Feed ### Parameters: - count: Number per page - cookie: User's own cookie, optional parameter, used for personalized recommendations of interface return data. ### Return: - Home Feed # [示例/Example] count = 15 Cookie = "Your_Cookie"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE = new UNKNOWN_BASE_TYPE(); // UNKNOWN_BASE_TYPE |
try {
ResponseModel result = apiInstance.fetchHomeFeedApiV1TiktokWebFetchHomeFeedPost(UNKNOWN_BASE_TYPE);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchHomeFeedApiV1TiktokWebFetchHomeFeedPost");
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 |
---|---|---|---|
UNKNOWN_BASE_TYPE | UNKNOWN_BASE_TYPE | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHomeFeedApiV1TiktokWebFetchHomeFeedPost_0(UNKNOWN_BASE_TYPE)
首页推荐作品/Home Feed
[中文] ### 用途: - 首页推荐作品 ### 参数: - count: 每页数量 - cookie: 用户自己的cookie,可选参数,用于接口返回数据的个性化推荐。 ### 返回: - 首页推荐作品 # [English] ### Purpose: - Home Feed ### Parameters: - count: Number per page - cookie: User's own cookie, optional parameter, used for personalized recommendations of interface return data. ### Return: - Home Feed # [示例/Example] count = 15 Cookie = "Your_Cookie"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE = new UNKNOWN_BASE_TYPE(); // UNKNOWN_BASE_TYPE |
try {
ResponseModel result = apiInstance.fetchHomeFeedApiV1TiktokWebFetchHomeFeedPost_0(UNKNOWN_BASE_TYPE);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchHomeFeedApiV1TiktokWebFetchHomeFeedPost_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 |
---|---|---|---|
UNKNOWN_BASE_TYPE | UNKNOWN_BASE_TYPE | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveRecommendApiV1TiktokWebFetchLiveRecommendGet(relatedLiveTag)
获取直播间首页推荐列表/Get live room homepage recommendation list
[中文] ### 用途: - 获取直播间首页推荐列表 ### 参数: - related_live_tag: 相关直播标签 ### 返回: - 直播间首页推荐列表 # [English] ### Purpose: - Get live room homepage recommendation list ### Parameters: - related_live_tag: Related live tag ### Return: - Live room homepage recommendation list # [示例/Example] related_live_tag = "VALORANT"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String relatedLiveTag = VALORANT; // String | 相关直播标签/Related live tag
try {
ResponseModel result = apiInstance.fetchLiveRecommendApiV1TiktokWebFetchLiveRecommendGet(relatedLiveTag);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchLiveRecommendApiV1TiktokWebFetchLiveRecommendGet");
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 |
---|---|---|---|
relatedLiveTag | String | 相关直播标签/Related live tag |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveRecommendApiV1TiktokWebFetchLiveRecommendGet_0(relatedLiveTag)
获取直播间首页推荐列表/Get live room homepage recommendation list
[中文] ### 用途: - 获取直播间首页推荐列表 ### 参数: - related_live_tag: 相关直播标签 ### 返回: - 直播间首页推荐列表 # [English] ### Purpose: - Get live room homepage recommendation list ### Parameters: - related_live_tag: Related live tag ### Return: - Live room homepage recommendation list # [示例/Example] related_live_tag = "VALORANT"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String relatedLiveTag = VALORANT; // String | 相关直播标签/Related live tag
try {
ResponseModel result = apiInstance.fetchLiveRecommendApiV1TiktokWebFetchLiveRecommendGet_0(relatedLiveTag);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchLiveRecommendApiV1TiktokWebFetchLiveRecommendGet_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 |
---|---|---|---|
relatedLiveTag | String | 相关直播标签/Related live tag |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostCommentApiV1TiktokWebFetchPostCommentGet(awemeId, cursor, count, currentRegion)
获取作品的评论列表/Get video comments
[中文] ### 用途: - 获取作品的评论列表 ### 参数: - aweme_id: 作品id - cursor: 翻页游标 - count: 每页数量 - current_region: 当前地区,默认为空。 ### 返回: - 作品的评论列表 # [English] ### Purpose: - Get video comments ### Parameters: - aweme_id: Video id - cursor: Page cursor - count: Number per page - current_region: Current region, default is empty. ### Return: - Video comments # [示例/Eample] aweme_id = "7304809083817774382" cursor = 0 count = 20 current_region = ""
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String awemeId = 7304809083817774382; // String | 作品id/Video id
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 20; // Integer | 每页数量/Number per page
String currentRegion = "\"\""; // String | 当前地区/Current region
try {
ResponseModel result = apiInstance.fetchPostCommentApiV1TiktokWebFetchPostCommentGet(awemeId, cursor, count, currentRegion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchPostCommentApiV1TiktokWebFetchPostCommentGet");
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 | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
currentRegion | String | 当前地区/Current region | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostCommentApiV1TiktokWebFetchPostCommentGet_0(awemeId, cursor, count, currentRegion)
获取作品的评论列表/Get video comments
[中文] ### 用途: - 获取作品的评论列表 ### 参数: - aweme_id: 作品id - cursor: 翻页游标 - count: 每页数量 - current_region: 当前地区,默认为空。 ### 返回: - 作品的评论列表 # [English] ### Purpose: - Get video comments ### Parameters: - aweme_id: Video id - cursor: Page cursor - count: Number per page - current_region: Current region, default is empty. ### Return: - Video comments # [示例/Eample] aweme_id = "7304809083817774382" cursor = 0 count = 20 current_region = ""
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String awemeId = 7304809083817774382; // String | 作品id/Video id
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 20; // Integer | 每页数量/Number per page
String currentRegion = "\"\""; // String | 当前地区/Current region
try {
ResponseModel result = apiInstance.fetchPostCommentApiV1TiktokWebFetchPostCommentGet_0(awemeId, cursor, count, currentRegion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchPostCommentApiV1TiktokWebFetchPostCommentGet_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 | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
currentRegion | String | 当前地区/Current region | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostCommentReplyApiV1TiktokWebFetchPostCommentReplyGet(itemId, commentId, cursor, count, currentRegion)
获取作品的评论回复列表/Get video comment replies
[中文] ### 用途: - 获取作品的评论回复列表 ### 参数: - item_id: 作品id - comment_id: 评论id - cursor: 翻页游标 - count: 每页数量 - current_region: 当前地区,默认为空。 ### 返回: - 作品的评论回复列表 # [English] ### Purpose: - Get video comment replies ### Parameters: - item_id: Video id - comment_id: Comment id - cursor: Page cursor - count: Number per page - current_region: Current region, default is empty. ### Return: - Video comment replies # [示例/Eample] item_id = "7304809083817774382" comment_id = "7304877760886588191" cursor = 0 count = 20 current_region = ""
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String itemId = 7304809083817774382; // String | 作品id/Video id
String commentId = 7304877760886588191; // String | 评论id/Comment id
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 20; // Integer | 每页数量/Number per page
String currentRegion = "\"\""; // String | 当前地区/Current region
try {
ResponseModel result = apiInstance.fetchPostCommentReplyApiV1TiktokWebFetchPostCommentReplyGet(itemId, commentId, cursor, count, currentRegion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchPostCommentReplyApiV1TiktokWebFetchPostCommentReplyGet");
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 | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
currentRegion | String | 当前地区/Current region | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostCommentReplyApiV1TiktokWebFetchPostCommentReplyGet_0(itemId, commentId, cursor, count, currentRegion)
获取作品的评论回复列表/Get video comment replies
[中文] ### 用途: - 获取作品的评论回复列表 ### 参数: - item_id: 作品id - comment_id: 评论id - cursor: 翻页游标 - count: 每页数量 - current_region: 当前地区,默认为空。 ### 返回: - 作品的评论回复列表 # [English] ### Purpose: - Get video comment replies ### Parameters: - item_id: Video id - comment_id: Comment id - cursor: Page cursor - count: Number per page - current_region: Current region, default is empty. ### Return: - Video comment replies # [示例/Eample] item_id = "7304809083817774382" comment_id = "7304877760886588191" cursor = 0 count = 20 current_region = ""
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String itemId = 7304809083817774382; // String | 作品id/Video id
String commentId = 7304877760886588191; // String | 评论id/Comment id
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 20; // Integer | 每页数量/Number per page
String currentRegion = "\"\""; // String | 当前地区/Current region
try {
ResponseModel result = apiInstance.fetchPostCommentReplyApiV1TiktokWebFetchPostCommentReplyGet_0(itemId, commentId, cursor, count, currentRegion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchPostCommentReplyApiV1TiktokWebFetchPostCommentReplyGet_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 | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
currentRegion | String | 当前地区/Current region | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostDetailApiV1TiktokWebFetchPostDetailGet(itemId)
获取单个作品数据/Get single video data
[中文] ### 用途: - 获取单个作品数据 - 此接口无法用于视频下载,只能获取视频数据,访问此接口返回的视频链接会返回HTTP403报错。 - 如果有视频下载需求,请使用 /api/v1/tiktok/app/v2/fetch_one_video 接口。 ### 参数: - itemId: 作品id ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data - This interface cannot be used for video download, it can only get video data, and accessing the video link returned by this interface will return an HTTP403 error. - If you need to download videos, please use the /api/v1/tiktok/app/v2/fetch_one_video interface. ### Parameters: - itemId: Video id ### Return: - Video data # [示例/Example] itemId = "7339393672959757570"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String itemId = 7339393672959757570; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchPostDetailApiV1TiktokWebFetchPostDetailGet(itemId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchPostDetailApiV1TiktokWebFetchPostDetailGet");
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 |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostDetailApiV1TiktokWebFetchPostDetailGet_0(itemId)
获取单个作品数据/Get single video data
[中文] ### 用途: - 获取单个作品数据 - 此接口无法用于视频下载,只能获取视频数据,访问此接口返回的视频链接会返回HTTP403报错。 - 如果有视频下载需求,请使用 /api/v1/tiktok/app/v2/fetch_one_video 接口。 ### 参数: - itemId: 作品id ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data - This interface cannot be used for video download, it can only get video data, and accessing the video link returned by this interface will return an HTTP403 error. - If you need to download videos, please use the /api/v1/tiktok/app/v2/fetch_one_video interface. ### Parameters: - itemId: Video id ### Return: - Video data # [示例/Example] itemId = "7339393672959757570"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String itemId = 7339393672959757570; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchPostDetailApiV1TiktokWebFetchPostDetailGet_0(itemId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchPostDetailApiV1TiktokWebFetchPostDetailGet_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 |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchKeywordSuggestApiV1TiktokWebFetchSearchKeywordSuggestGet(keyword)
搜索关键字推荐/Search keyword suggest
[中文] ### 用途: - 搜索关键字推荐 ### 参数: - keyword: 搜索关键词 ### 返回: - 关键字推荐列表 # [English] ### Purpose: - Search keyword suggest ### Parameters: - keyword: Search keyword ### Return: - Keyword suggest list # [示例/Example] keyword = "TikTok"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
try {
ResponseModel result = apiInstance.fetchSearchKeywordSuggestApiV1TiktokWebFetchSearchKeywordSuggestGet(keyword);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchSearchKeywordSuggestApiV1TiktokWebFetchSearchKeywordSuggestGet");
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 | 搜索关键词/Search keyword |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchKeywordSuggestApiV1TiktokWebFetchSearchKeywordSuggestGet_0(keyword)
搜索关键字推荐/Search keyword suggest
[中文] ### 用途: - 搜索关键字推荐 ### 参数: - keyword: 搜索关键词 ### 返回: - 关键字推荐列表 # [English] ### Purpose: - Search keyword suggest ### Parameters: - keyword: Search keyword ### Return: - Keyword suggest list # [示例/Example] keyword = "TikTok"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
try {
ResponseModel result = apiInstance.fetchSearchKeywordSuggestApiV1TiktokWebFetchSearchKeywordSuggestGet_0(keyword);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchSearchKeywordSuggestApiV1TiktokWebFetchSearchKeywordSuggestGet_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 | 搜索关键词/Search keyword |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchLiveApiV1TiktokWebFetchSearchLiveGet(keyword, count, offset, searchId, cookie)
搜索直播/Search live
[中文] ### 用途: - 搜索直播 ### 参数: - keyword: 搜索关键词 - count: 每页数量 - offset: 翻页游标,第一次请求时为0,第二次请求时从上一次请求的返回响应中获取,一般这个值的关键字为offset或者cursor。 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: 用户cookie(如果你需要使用自己的账号搜索,或者遇到接口报错,可以自行提供cookie,默认不需要提供) ### 返回: - 直播列表 # [English] ### Purpose: - Search live ### Parameters: - keyword: Search keyword - count: Number per page - offset: Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor. - 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 = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: User cookie (If you need to search with your own account, or encounter an interface error, you can provide the cookie yourself, default is not required) ### Return: - Live list # [示例/Example] keyword = "TikTok" count = 20 offset = 0 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
Integer count = 20; // Integer | 每页数量/Number per page
Integer offset = 0; // Integer | 翻页游标/Page cursor
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
String cookie = "cookie_example"; // String | 用户cookie(按需提供)/User cookie(if needed)
try {
ResponseModel result = apiInstance.fetchSearchLiveApiV1TiktokWebFetchSearchLiveGet(keyword, count, offset, searchId, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchSearchLiveApiV1TiktokWebFetchSearchLiveGet");
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 | 搜索关键词/Search keyword | |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
offset | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
cookie | String | 用户cookie(按需提供)/User cookie(if needed) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchLiveApiV1TiktokWebFetchSearchLiveGet_0(keyword, count, offset, searchId, cookie)
搜索直播/Search live
[中文] ### 用途: - 搜索直播 ### 参数: - keyword: 搜索关键词 - count: 每页数量 - offset: 翻页游标,第一次请求时为0,第二次请求时从上一次请求的返回响应中获取,一般这个值的关键字为offset或者cursor。 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: 用户cookie(如果你需要使用自己的账号搜索,或者遇到接口报错,可以自行提供cookie,默认不需要提供) ### 返回: - 直播列表 # [English] ### Purpose: - Search live ### Parameters: - keyword: Search keyword - count: Number per page - offset: Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor. - 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 = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: User cookie (If you need to search with your own account, or encounter an interface error, you can provide the cookie yourself, default is not required) ### Return: - Live list # [示例/Example] keyword = "TikTok" count = 20 offset = 0 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
Integer count = 20; // Integer | 每页数量/Number per page
Integer offset = 0; // Integer | 翻页游标/Page cursor
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
String cookie = "cookie_example"; // String | 用户cookie(按需提供)/User cookie(if needed)
try {
ResponseModel result = apiInstance.fetchSearchLiveApiV1TiktokWebFetchSearchLiveGet_0(keyword, count, offset, searchId, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchSearchLiveApiV1TiktokWebFetchSearchLiveGet_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 | 搜索关键词/Search keyword | |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
offset | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
cookie | String | 用户cookie(按需提供)/User cookie(if needed) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchUserApiV1TiktokWebFetchSearchUserGet(keyword, cursor, searchId, cookie)
搜索用户/Search user
[中文] ### 用途: - 搜索用户 ### 参数: - keyword: 搜索关键词 - cursor: 翻页游标,第一次请求时为0,第二次请求时从上一次请求的返回响应中获取,一般这个值的关键字为offset或者cursor。 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: 用户cookie(如果你需要使用自己的账号搜索,或者遇到接口报错,可以自行提供cookie,默认不需要提供) ### 返回: - 用户列表 # [English] ### Purpose: - Search user ### Parameters: - keyword: Search keyword - cursor: Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor. - 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 = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: User cookie (If you need to search with your own account, or encounter an interface error, you can provide the cookie yourself, default is not required) ### Return: - User list # [示例/Example] keyword = "TikTok" cursor = 0 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
Integer cursor = 0; // Integer | 翻页游标/Page cursor
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
String cookie = "cookie_example"; // String | 用户cookie(按需提供)/User cookie(if needed)
try {
ResponseModel result = apiInstance.fetchSearchUserApiV1TiktokWebFetchSearchUserGet(keyword, cursor, searchId, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchSearchUserApiV1TiktokWebFetchSearchUserGet");
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 | 搜索关键词/Search keyword | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
cookie | String | 用户cookie(按需提供)/User cookie(if needed) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchUserApiV1TiktokWebFetchSearchUserGet_0(keyword, cursor, searchId, cookie)
搜索用户/Search user
[中文] ### 用途: - 搜索用户 ### 参数: - keyword: 搜索关键词 - cursor: 翻页游标,第一次请求时为0,第二次请求时从上一次请求的返回响应中获取,一般这个值的关键字为offset或者cursor。 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: 用户cookie(如果你需要使用自己的账号搜索,或者遇到接口报错,可以自行提供cookie,默认不需要提供) ### 返回: - 用户列表 # [English] ### Purpose: - Search user ### Parameters: - keyword: Search keyword - cursor: Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor. - 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 = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: User cookie (If you need to search with your own account, or encounter an interface error, you can provide the cookie yourself, default is not required) ### Return: - User list # [示例/Example] keyword = "TikTok" cursor = 0 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
Integer cursor = 0; // Integer | 翻页游标/Page cursor
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
String cookie = "cookie_example"; // String | 用户cookie(按需提供)/User cookie(if needed)
try {
ResponseModel result = apiInstance.fetchSearchUserApiV1TiktokWebFetchSearchUserGet_0(keyword, cursor, searchId, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchSearchUserApiV1TiktokWebFetchSearchUserGet_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 | 搜索关键词/Search keyword | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
cookie | String | 用户cookie(按需提供)/User cookie(if needed) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchVideoApiV1TiktokWebFetchSearchVideoGet(keyword, count, offset, searchId, cookie)
搜索视频/Search video
[中文] ### 用途: - 搜索视频 ### 参数: - keyword: 搜索关键词 - count: 每页数量,建议保持默认值20。 - cursor: 翻页游标,第一次请求时为0,第二次请求时从上一次请求的返回响应中获取,一般这个值的关键字为offset或者cursor。 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: 用户cookie(如果你需要使用自己的账号搜索,或者遇到接口报错,可以自行提供cookie,默认不需要提供) ### 返回: - 视频列表 # [English] ### Purpose: - Search video ### Parameters: - keyword: Search keyword - count: Number per page, it is recommended to keep the default value 20. - cursor: Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor. - 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 = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - offset: Page cursor - cookie: User cookie (If you need to search with your own account, or encounter an interface error, you can provide the cookie yourself, default is not required) ### Return: - Video list # [示例/Example] keyword = "TikTok" count = 20 offset = 0 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
Integer count = 20; // Integer | 每页数量/Number per page
Integer offset = 0; // Integer | 翻页游标/Page cursor
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
String cookie = "cookie_example"; // String | 用户cookie(按需提供)/User cookie(if needed)
try {
ResponseModel result = apiInstance.fetchSearchVideoApiV1TiktokWebFetchSearchVideoGet(keyword, count, offset, searchId, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchSearchVideoApiV1TiktokWebFetchSearchVideoGet");
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 | 搜索关键词/Search keyword | |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
offset | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
cookie | String | 用户cookie(按需提供)/User cookie(if needed) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchVideoApiV1TiktokWebFetchSearchVideoGet_0(keyword, count, offset, searchId, cookie)
搜索视频/Search video
[中文] ### 用途: - 搜索视频 ### 参数: - keyword: 搜索关键词 - count: 每页数量,建议保持默认值20。 - cursor: 翻页游标,第一次请求时为0,第二次请求时从上一次请求的返回响应中获取,一般这个值的关键字为offset或者cursor。 - search_id: 搜索id,第一次请求时为空,第二次翻页时需要提供,需要从上一次请求的返回响应中获取。 - 例如: search_id = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - cookie: 用户cookie(如果你需要使用自己的账号搜索,或者遇到接口报错,可以自行提供cookie,默认不需要提供) ### 返回: - 视频列表 # [English] ### Purpose: - Search video ### Parameters: - keyword: Search keyword - count: Number per page, it is recommended to keep the default value 20. - cursor: Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor. - 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 = "20240828035554C02011379EBB6A00E00B" - JSON Path-1 : .data.log_pb.impr_id - offset: Page cursor - cookie: User cookie (If you need to search with your own account, or encounter an interface error, you can provide the cookie yourself, default is not required) ### Return: - Video list # [示例/Example] keyword = "TikTok" count = 20 offset = 0 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String keyword = TikTok; // String | 搜索关键词/Search keyword
Integer count = 20; // Integer | 每页数量/Number per page
Integer offset = 0; // Integer | 翻页游标/Page cursor
String searchId = "\"\""; // String | 搜索id,翻页时需要提供/Search id, need to provide when paging
String cookie = "cookie_example"; // String | 用户cookie(按需提供)/User cookie(if needed)
try {
ResponseModel result = apiInstance.fetchSearchVideoApiV1TiktokWebFetchSearchVideoGet_0(keyword, count, offset, searchId, cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchSearchVideoApiV1TiktokWebFetchSearchVideoGet_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 | 搜索关键词/Search keyword | |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
offset | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
searchId | String | 搜索id,翻页时需要提供/Search id, need to provide when paging | [optional] [default to ""] |
cookie | String | 用户cookie(按需提供)/User cookie(if needed) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTagDetailApiV1TiktokWebFetchTagDetailGet(tagName)
Tag详情/Tag Detail
[中文] ### 用途: - Tag详情 ### 参数: - tag_name: Tag名称 ### 返回: - Tag详情 # [English] ### Purpose: - Tag Detail ### Parameters: - tag_name: Tag name ### Return: - Tag Detail # [示例/Example] tag_name = "tiktok"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String tagName = tiktok; // String | Tag名称/Tag name
try {
ResponseModel result = apiInstance.fetchTagDetailApiV1TiktokWebFetchTagDetailGet(tagName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchTagDetailApiV1TiktokWebFetchTagDetailGet");
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 |
---|---|---|---|
tagName | String | Tag名称/Tag name |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTagDetailApiV1TiktokWebFetchTagDetailGet_0(tagName)
Tag详情/Tag Detail
[中文] ### 用途: - Tag详情 ### 参数: - tag_name: Tag名称 ### 返回: - Tag详情 # [English] ### Purpose: - Tag Detail ### Parameters: - tag_name: Tag name ### Return: - Tag Detail # [示例/Example] tag_name = "tiktok"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String tagName = tiktok; // String | Tag名称/Tag name
try {
ResponseModel result = apiInstance.fetchTagDetailApiV1TiktokWebFetchTagDetailGet_0(tagName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchTagDetailApiV1TiktokWebFetchTagDetailGet_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 |
---|---|---|---|
tagName | String | Tag名称/Tag name |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTagPostApiV1TiktokWebFetchTagPostGet(challengeID, count, cursor)
Tag作品/Tag Post
[中文] ### 用途: - Tag作品 ### 参数: - challengeID: Tag ID - count: 每页数量 - cursor: 翻页游标 ### 返回: - Tag作品 # [English] ### Purpose: - Tag Post ### Parameters: - challengeID: Tag ID - count: Number per page - cursor: Page cursor ### Return: - Tag Post # [示例/Example] challengeID = "7551" count = 30 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String challengeID = 7551; // String | Tag ID
Integer count = 30; // Integer | 每页数量/Number per page
Integer cursor = 0; // Integer | 翻页游标/Page cursor
try {
ResponseModel result = apiInstance.fetchTagPostApiV1TiktokWebFetchTagPostGet(challengeID, count, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchTagPostApiV1TiktokWebFetchTagPostGet");
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 |
---|---|---|---|
challengeID | String | Tag ID | |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTagPostApiV1TiktokWebFetchTagPostGet_0(challengeID, count, cursor)
Tag作品/Tag Post
[中文] ### 用途: - Tag作品 ### 参数: - challengeID: Tag ID - count: 每页数量 - cursor: 翻页游标 ### 返回: - Tag作品 # [English] ### Purpose: - Tag Post ### Parameters: - challengeID: Tag ID - count: Number per page - cursor: Page cursor ### Return: - Tag Post # [示例/Example] challengeID = "7551" count = 30 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String challengeID = 7551; // String | Tag ID
Integer count = 30; // Integer | 每页数量/Number per page
Integer cursor = 0; // Integer | 翻页游标/Page cursor
try {
ResponseModel result = apiInstance.fetchTagPostApiV1TiktokWebFetchTagPostGet_0(challengeID, count, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchTagPostApiV1TiktokWebFetchTagPostGet_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 |
---|---|---|---|
challengeID | String | Tag ID | |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTiktokLiveDataApiV1TiktokWebFetchTiktokLiveDataGet(liveRoomUrl)
通过直播链接获取直播间信息/Get live room information via live link
[中文] ### 用途: - 通过直播链接获取直播间信息 - 此接口可获取离线直播间信息 ### 参数: - live_room_url: 直播间链接 ### 返回: - 直播间信息 # [English] ### Purpose: - Get live room information via live link - This interface can get offline live room information ### Parameters: - live_room_url: Live room link ### Return: - Live room information # [示例/Example] live_room_url = "https://www.tiktok.com/@.caseoh_daily/live\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String liveRoomUrl = https://www.tiktok.com/@.caseoh_daily/live; // String | 直播间链接/Live room link
try {
ResponseModel result = apiInstance.fetchTiktokLiveDataApiV1TiktokWebFetchTiktokLiveDataGet(liveRoomUrl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchTiktokLiveDataApiV1TiktokWebFetchTiktokLiveDataGet");
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 |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTiktokLiveDataApiV1TiktokWebFetchTiktokLiveDataGet_0(liveRoomUrl)
通过直播链接获取直播间信息/Get live room information via live link
[中文] ### 用途: - 通过直播链接获取直播间信息 - 此接口可获取离线直播间信息 ### 参数: - live_room_url: 直播间链接 ### 返回: - 直播间信息 # [English] ### Purpose: - Get live room information via live link - This interface can get offline live room information ### Parameters: - live_room_url: Live room link ### Return: - Live room information # [示例/Example] live_room_url = "https://www.tiktok.com/@.caseoh_daily/live\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String liveRoomUrl = https://www.tiktok.com/@.caseoh_daily/live; // String | 直播间链接/Live room link
try {
ResponseModel result = apiInstance.fetchTiktokLiveDataApiV1TiktokWebFetchTiktokLiveDataGet_0(liveRoomUrl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchTiktokLiveDataApiV1TiktokWebFetchTiktokLiveDataGet_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 |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTrendingPostApiV1TiktokWebFetchTrendingPostGet()
获取每日热门内容作品数据/Get daily trending video data
[中文] ### 用途: - 获取每日热门内容作品数据 ### 返回: - 作品数据 # [English] ### Purpose: - Get daily trending video data ### Return: - Video data # [示例/Example]
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchTrendingPostApiV1TiktokWebFetchTrendingPostGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchTrendingPostApiV1TiktokWebFetchTrendingPostGet");
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 fetchTrendingPostApiV1TiktokWebFetchTrendingPostGet_0()
获取每日热门内容作品数据/Get daily trending video data
[中文] ### 用途: - 获取每日热门内容作品数据 ### 返回: - 作品数据 # [English] ### Purpose: - Get daily trending video data ### Return: - Video data # [示例/Example]
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchTrendingPostApiV1TiktokWebFetchTrendingPostGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchTrendingPostApiV1TiktokWebFetchTrendingPostGet_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 fetchUserCollectApiV1TiktokWebFetchUserCollectGet(cookie, secUid, cursor, count, coverFormat)
获取用户的收藏列表/Get user favorites
[中文] ### 用途: - 获取用户的收藏列表 - 注意: 该接口目前只能获取自己的收藏列表,需要提供自己账号的cookie。 ### 参数: - cookie: 用户cookie - secUid: 用户secUid - cursor: 翻页游标 - count: 每页数量 - coverFormat: 封面格式 ### 返回: - 用户的收藏列表 # [English] ### Purpose: - Get user favorites - Note: This interface can currently only get your own favorites list, you need to provide your account cookie. ### Parameters: - cookie: User cookie - secUid: User secUid - cursor: Page cursor - count: Number per page - coverFormat: Cover format ### Return: - User favorites # [示例/Example] cookie = "Your_Cookie" secUid = "Your_SecUid" cursor = 0 count = 30 coverFormat = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String cookie = Your_Cookie; // String | 用户cookie/User cookie
String secUid = Your_SecUid; // String | 用户secUid/User secUid
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 30; // Integer | 每页数量/Number per page
Integer coverFormat = 2; // Integer | 封面格式/Cover format
try {
ResponseModel result = apiInstance.fetchUserCollectApiV1TiktokWebFetchUserCollectGet(cookie, secUid, cursor, count, coverFormat);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserCollectApiV1TiktokWebFetchUserCollectGet");
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/User cookie | |
secUid | String | 用户secUid/User secUid | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
coverFormat | Integer | 封面格式/Cover format | [optional] [default to 2] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserCollectApiV1TiktokWebFetchUserCollectGet_0(cookie, secUid, cursor, count, coverFormat)
获取用户的收藏列表/Get user favorites
[中文] ### 用途: - 获取用户的收藏列表 - 注意: 该接口目前只能获取自己的收藏列表,需要提供自己账号的cookie。 ### 参数: - cookie: 用户cookie - secUid: 用户secUid - cursor: 翻页游标 - count: 每页数量 - coverFormat: 封面格式 ### 返回: - 用户的收藏列表 # [English] ### Purpose: - Get user favorites - Note: This interface can currently only get your own favorites list, you need to provide your account cookie. ### Parameters: - cookie: User cookie - secUid: User secUid - cursor: Page cursor - count: Number per page - coverFormat: Cover format ### Return: - User favorites # [示例/Example] cookie = "Your_Cookie" secUid = "Your_SecUid" cursor = 0 count = 30 coverFormat = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String cookie = Your_Cookie; // String | 用户cookie/User cookie
String secUid = Your_SecUid; // String | 用户secUid/User secUid
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 30; // Integer | 每页数量/Number per page
Integer coverFormat = 2; // Integer | 封面格式/Cover format
try {
ResponseModel result = apiInstance.fetchUserCollectApiV1TiktokWebFetchUserCollectGet_0(cookie, secUid, cursor, count, coverFormat);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserCollectApiV1TiktokWebFetchUserCollectGet_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/User cookie | |
secUid | String | 用户secUid/User secUid | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
coverFormat | Integer | 封面格式/Cover format | [optional] [default to 2] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFansApiV1TiktokWebFetchUserFansGet(secUid, count, maxCursor, minCursor)
获取用户的粉丝列表/Get user followers
[中文] ### 用途: - 获取用户的粉丝列表 ### 参数: - secUid: 用户secUid - count: 每页数量 - maxCursor: 最大游标 - minCursor: 最小游标 ### 返回: - 用户的粉丝列表 # [English] ### Purpose: - Get user followers ### Parameters: - secUid: User secUid - count: Number per page - maxCursor: Max cursor - minCursor: Min cursor ### Return: - User followers # [示例/Example] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" count = 30 maxCursor = 0 minCursor = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户secUid/User secUid
Integer count = 30; // Integer | 每页数量/Number per page
Integer maxCursor = 0; // Integer | 最大游标/Max cursor
Integer minCursor = 0; // Integer | 最小游标/Min cursor
try {
ResponseModel result = apiInstance.fetchUserFansApiV1TiktokWebFetchUserFansGet(secUid, count, maxCursor, minCursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserFansApiV1TiktokWebFetchUserFansGet");
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 | 用户secUid/User secUid | |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
maxCursor | Integer | 最大游标/Max cursor | [optional] [default to 0] |
minCursor | Integer | 最小游标/Min cursor | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFansApiV1TiktokWebFetchUserFansGet_0(secUid, count, maxCursor, minCursor)
获取用户的粉丝列表/Get user followers
[中文] ### 用途: - 获取用户的粉丝列表 ### 参数: - secUid: 用户secUid - count: 每页数量 - maxCursor: 最大游标 - minCursor: 最小游标 ### 返回: - 用户的粉丝列表 # [English] ### Purpose: - Get user followers ### Parameters: - secUid: User secUid - count: Number per page - maxCursor: Max cursor - minCursor: Min cursor ### Return: - User followers # [示例/Example] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" count = 30 maxCursor = 0 minCursor = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户secUid/User secUid
Integer count = 30; // Integer | 每页数量/Number per page
Integer maxCursor = 0; // Integer | 最大游标/Max cursor
Integer minCursor = 0; // Integer | 最小游标/Min cursor
try {
ResponseModel result = apiInstance.fetchUserFansApiV1TiktokWebFetchUserFansGet_0(secUid, count, maxCursor, minCursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserFansApiV1TiktokWebFetchUserFansGet_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 | 用户secUid/User secUid | |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
maxCursor | Integer | 最大游标/Max cursor | [optional] [default to 0] |
minCursor | Integer | 最小游标/Min cursor | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowApiV1TiktokWebFetchUserFollowGet(secUid, count, maxCursor, minCursor)
获取用户的关注列表/Get user followings
[中文] ### 用途: - 获取用户的关注列表 ### 参数: - secUid: 用户secUid - count: 每页数量 - maxCursor: 最大游标 - minCursor: 最小游标 ### 返回: - 用户的关注列表 # [English] ### Purpose: - Get user followings ### Parameters: - secUid: User secUid - count: Number per page - maxCursor: Max cursor - minCursor: Min cursor ### Return: - User followings # [示例/Example] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" count = 30 maxCursor = 0 minCursor = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户secUid/User secUid
Integer count = 30; // Integer | 每页数量/Number per page
Integer maxCursor = 0; // Integer | 最大游标/Max cursor
Integer minCursor = 0; // Integer | 最小游标/Min cursor
try {
ResponseModel result = apiInstance.fetchUserFollowApiV1TiktokWebFetchUserFollowGet(secUid, count, maxCursor, minCursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserFollowApiV1TiktokWebFetchUserFollowGet");
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 | 用户secUid/User secUid | |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
maxCursor | Integer | 最大游标/Max cursor | [optional] [default to 0] |
minCursor | Integer | 最小游标/Min cursor | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowApiV1TiktokWebFetchUserFollowGet_0(secUid, count, maxCursor, minCursor)
获取用户的关注列表/Get user followings
[中文] ### 用途: - 获取用户的关注列表 ### 参数: - secUid: 用户secUid - count: 每页数量 - maxCursor: 最大游标 - minCursor: 最小游标 ### 返回: - 用户的关注列表 # [English] ### Purpose: - Get user followings ### Parameters: - secUid: User secUid - count: Number per page - maxCursor: Max cursor - minCursor: Min cursor ### Return: - User followings # [示例/Example] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" count = 30 maxCursor = 0 minCursor = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户secUid/User secUid
Integer count = 30; // Integer | 每页数量/Number per page
Integer maxCursor = 0; // Integer | 最大游标/Max cursor
Integer minCursor = 0; // Integer | 最小游标/Min cursor
try {
ResponseModel result = apiInstance.fetchUserFollowApiV1TiktokWebFetchUserFollowGet_0(secUid, count, maxCursor, minCursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserFollowApiV1TiktokWebFetchUserFollowGet_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 | 用户secUid/User secUid | |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
maxCursor | Integer | 最大游标/Max cursor | [optional] [default to 0] |
minCursor | Integer | 最小游标/Min cursor | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLikeApiV1TiktokWebFetchUserLikeGet(secUid, cursor, count, coverFormat, postItemListRequestType)
获取用户的点赞列表/Get user likes
[中文] ### 用途: - 获取用户的点赞列表 - 注意: 该接口需要用户点赞列表为公开状态 ### 参数: - secUid: 用户secUid - cursor: 翻页游标 - count: 每页数量,默认为20,不可变更。 - coverFormat: 封面格式 - post_item_list_request_type: 排序方式 - 0:默认排序 - 1:热门排序 - 2:最旧排序 ### 返回: - 用户的点赞列表 # [English] ### Purpose: - Get user likes - Note: This interface requires that the user's like list be public ### Parameters: - secUid: User secUid - cursor: Page cursor - count: Number per page, default is 20, cannot be changed. - coverFormat: Cover format - post_item_list_request_type: Sort type - 0: Default sort - 1: Hot sort - 2: Oldest sort ### Return: - User likes # [示例/Example] secUid = "MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU" cursor = 0 count = 20 coverFormat = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU; // String | 用户secUid/User secUid
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 20; // Integer | 每页数量/Number per page
Integer coverFormat = 2; // Integer | 封面格式/Cover format
Integer postItemListRequestType = 0; // Integer | 排序方式/Sort type
try {
ResponseModel result = apiInstance.fetchUserLikeApiV1TiktokWebFetchUserLikeGet(secUid, cursor, count, coverFormat, postItemListRequestType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserLikeApiV1TiktokWebFetchUserLikeGet");
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 | 用户secUid/User secUid | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
coverFormat | Integer | 封面格式/Cover format | [optional] [default to 2] |
postItemListRequestType | Integer | 排序方式/Sort type | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLikeApiV1TiktokWebFetchUserLikeGet_0(secUid, cursor, count, coverFormat, postItemListRequestType)
获取用户的点赞列表/Get user likes
[中文] ### 用途: - 获取用户的点赞列表 - 注意: 该接口需要用户点赞列表为公开状态 ### 参数: - secUid: 用户secUid - cursor: 翻页游标 - count: 每页数量,默认为20,不可变更。 - coverFormat: 封面格式 - post_item_list_request_type: 排序方式 - 0:默认排序 - 1:热门排序 - 2:最旧排序 ### 返回: - 用户的点赞列表 # [English] ### Purpose: - Get user likes - Note: This interface requires that the user's like list be public ### Parameters: - secUid: User secUid - cursor: Page cursor - count: Number per page, default is 20, cannot be changed. - coverFormat: Cover format - post_item_list_request_type: Sort type - 0: Default sort - 1: Hot sort - 2: Oldest sort ### Return: - User likes # [示例/Example] secUid = "MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU" cursor = 0 count = 20 coverFormat = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU; // String | 用户secUid/User secUid
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 20; // Integer | 每页数量/Number per page
Integer coverFormat = 2; // Integer | 封面格式/Cover format
Integer postItemListRequestType = 0; // Integer | 排序方式/Sort type
try {
ResponseModel result = apiInstance.fetchUserLikeApiV1TiktokWebFetchUserLikeGet_0(secUid, cursor, count, coverFormat, postItemListRequestType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserLikeApiV1TiktokWebFetchUserLikeGet_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 | 用户secUid/User secUid | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
coverFormat | Integer | 封面格式/Cover format | [optional] [default to 2] |
postItemListRequestType | Integer | 排序方式/Sort type | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserMixApiV1TiktokWebFetchUserMixGet(mixId, cursor, count)
获取用户的合辑列表/Get user mix list
[中文] ### 用途: - 获取用户的合辑列表 ### 参数: - mixId: 合辑id - cursor: 翻页游标 - count: 每页数量 ### 返回: - 用户的合辑列表 # [English] ### Purpose: - Get user mix list ### Parameters: - mixId: Mix id - cursor: Page cursor - count: Number per page ### Return: - User mix list # [示例/Eample] mixId = "7101538765474106158" cursor = 0 count = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String mixId = 7101538765474106158; // String | 合辑id/Mix id
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 30; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserMixApiV1TiktokWebFetchUserMixGet(mixId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserMixApiV1TiktokWebFetchUserMixGet");
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 | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserMixApiV1TiktokWebFetchUserMixGet_0(mixId, cursor, count)
获取用户的合辑列表/Get user mix list
[中文] ### 用途: - 获取用户的合辑列表 ### 参数: - mixId: 合辑id - cursor: 翻页游标 - count: 每页数量 ### 返回: - 用户的合辑列表 # [English] ### Purpose: - Get user mix list ### Parameters: - mixId: Mix id - cursor: Page cursor - count: Number per page ### Return: - User mix list # [示例/Eample] mixId = "7101538765474106158" cursor = 0 count = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String mixId = 7101538765474106158; // String | 合辑id/Mix id
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 30; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserMixApiV1TiktokWebFetchUserMixGet_0(mixId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserMixApiV1TiktokWebFetchUserMixGet_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 | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPlayListApiV1TiktokWebFetchUserPlayListGet(secUid, cursor, count)
获取用户的播放列表/Get user play list
[中文] ### 用途: - 获取用户的播放列表 ### 参数: - secUid: 用户secUid - cursor: 翻页游标 - count: 每页数量 ### 返回: - 用户的播放列表 # [English] ### Purpose: - Get user play list ### Parameters: - secUid: User secUid - cursor: Page cursor - count: Number per page ### Return: - User play list # [示例/Eample] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" cursor = 0 count = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户secUid/User secUid
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 30; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserPlayListApiV1TiktokWebFetchUserPlayListGet(secUid, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserPlayListApiV1TiktokWebFetchUserPlayListGet");
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 | 用户secUid/User secUid | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPlayListApiV1TiktokWebFetchUserPlayListGet_0(secUid, cursor, count)
获取用户的播放列表/Get user play list
[中文] ### 用途: - 获取用户的播放列表 ### 参数: - secUid: 用户secUid - cursor: 翻页游标 - count: 每页数量 ### 返回: - 用户的播放列表 # [English] ### Purpose: - Get user play list ### Parameters: - secUid: User secUid - cursor: Page cursor - count: Number per page ### Return: - User play list # [示例/Eample] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" cursor = 0 count = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户secUid/User secUid
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 30; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserPlayListApiV1TiktokWebFetchUserPlayListGet_0(secUid, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserPlayListApiV1TiktokWebFetchUserPlayListGet_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 | 用户secUid/User secUid | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 30] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPostApiV1TiktokWebFetchUserPostGet(secUid, cursor, count, coverFormat, postItemListRequestType)
获取用户的作品列表/Get user posts
[中文] ### 用途: - 获取用户的作品列表 ### 参数: - secUid: 用户secUid - cursor: 翻页游标 - count: 每页数量,默认为20,不可变更。 - coverFormat: 封面格式 - post_item_list_request_type: 排序方式 - 0:默认排序 - 1:热门排序 - 2:最旧排序 ### 返回: - 用户的作品列表 # [English] ### Purpose: - Get user posts ### Parameters: - secUid: User secUid - cursor: Page cursor - count: Number per page, default is 20, cannot be changed. - coverFormat: Cover format - post_item_list_request_type: Sort type - 0: Default sort - 1: Hot sort - 2: Oldest sort ### Return: - User posts # [示例/Example] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" cursor = 0 count = 20 coverFormat = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户secUid/User secUid
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 20; // Integer | 每页数量/Number per page
Integer coverFormat = 2; // Integer | 封面格式/Cover format
Integer postItemListRequestType = 0; // Integer | 排序方式/Sort type
try {
ResponseModel result = apiInstance.fetchUserPostApiV1TiktokWebFetchUserPostGet(secUid, cursor, count, coverFormat, postItemListRequestType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserPostApiV1TiktokWebFetchUserPostGet");
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 | 用户secUid/User secUid | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
coverFormat | Integer | 封面格式/Cover format | [optional] [default to 2] |
postItemListRequestType | Integer | 排序方式/Sort type | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPostApiV1TiktokWebFetchUserPostGet_0(secUid, cursor, count, coverFormat, postItemListRequestType)
获取用户的作品列表/Get user posts
[中文] ### 用途: - 获取用户的作品列表 ### 参数: - secUid: 用户secUid - cursor: 翻页游标 - count: 每页数量,默认为20,不可变更。 - coverFormat: 封面格式 - post_item_list_request_type: 排序方式 - 0:默认排序 - 1:热门排序 - 2:最旧排序 ### 返回: - 用户的作品列表 # [English] ### Purpose: - Get user posts ### Parameters: - secUid: User secUid - cursor: Page cursor - count: Number per page, default is 20, cannot be changed. - coverFormat: Cover format - post_item_list_request_type: Sort type - 0: Default sort - 1: Hot sort - 2: Oldest sort ### Return: - User posts # [示例/Example] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" cursor = 0 count = 20 coverFormat = 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String secUid = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户secUid/User secUid
Integer cursor = 0; // Integer | 翻页游标/Page cursor
Integer count = 20; // Integer | 每页数量/Number per page
Integer coverFormat = 2; // Integer | 封面格式/Cover format
Integer postItemListRequestType = 0; // Integer | 排序方式/Sort type
try {
ResponseModel result = apiInstance.fetchUserPostApiV1TiktokWebFetchUserPostGet_0(secUid, cursor, count, coverFormat, postItemListRequestType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserPostApiV1TiktokWebFetchUserPostGet_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 | 用户secUid/User secUid | |
cursor | Integer | 翻页游标/Page cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
coverFormat | Integer | 封面格式/Cover format | [optional] [default to 2] |
postItemListRequestType | Integer | 排序方式/Sort type | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserProfileApiV1TiktokWebFetchUserProfileGet(uniqueId, secUid)
获取用户的个人信息/Get user profile
[中文] ### 用途: - 获取用户的个人信息 ### 参数: - secUid: 用户secUid - uniqueId: 用户uniqueId - secUid和uniqueId至少提供一个, 优先使用uniqueId, 也就是用户主页的链接中的用户名。 ### 返回: - 用户的个人信息 # [English] ### Purpose: - Get user profile ### Parameters: - secUid: User secUid - uniqueId: User uniqueId - At least one of secUid and uniqueId is provided, and uniqueId is preferred, that is, the username in the user's homepage link. ### Return: - User profile # [示例/Example] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" uniqueId = "tiktok"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String uniqueId = tiktok; // String | 用户uniqueId/User uniqueId
String secUid = "\"\""; // String | 用户secUid/User secUid
try {
ResponseModel result = apiInstance.fetchUserProfileApiV1TiktokWebFetchUserProfileGet(uniqueId, secUid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserProfileApiV1TiktokWebFetchUserProfileGet");
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 | 用户uniqueId/User uniqueId | [optional] [default to ""] |
secUid | String | 用户secUid/User secUid | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserProfileApiV1TiktokWebFetchUserProfileGet_0(uniqueId, secUid)
获取用户的个人信息/Get user profile
[中文] ### 用途: - 获取用户的个人信息 ### 参数: - secUid: 用户secUid - uniqueId: 用户uniqueId - secUid和uniqueId至少提供一个, 优先使用uniqueId, 也就是用户主页的链接中的用户名。 ### 返回: - 用户的个人信息 # [English] ### Purpose: - Get user profile ### Parameters: - secUid: User secUid - uniqueId: User uniqueId - At least one of secUid and uniqueId is provided, and uniqueId is preferred, that is, the username in the user's homepage link. ### Return: - User profile # [示例/Example] secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" uniqueId = "tiktok"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String uniqueId = tiktok; // String | 用户uniqueId/User uniqueId
String secUid = "\"\""; // String | 用户secUid/User secUid
try {
ResponseModel result = apiInstance.fetchUserProfileApiV1TiktokWebFetchUserProfileGet_0(uniqueId, secUid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#fetchUserProfileApiV1TiktokWebFetchUserProfileGet_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 | 用户uniqueId/User uniqueId | [optional] [default to ""] |
secUid | String | 用户secUid/User secUid | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel generateRealMsTokenApiV1TiktokWebGenerateRealMsTokenGet()
生成真实msToken/Generate real msToken
[中文] ### 用途: - 生成真实msToken ### 返回: - 真实msToken # [English] ### Purpose: - Generate real msToken ### Return: - Real 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.generateRealMsTokenApiV1TiktokWebGenerateRealMsTokenGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#generateRealMsTokenApiV1TiktokWebGenerateRealMsTokenGet");
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 generateRealMsTokenApiV1TiktokWebGenerateRealMsTokenGet_0()
生成真实msToken/Generate real msToken
[中文] ### 用途: - 生成真实msToken ### 返回: - 真实msToken # [English] ### Purpose: - Generate real msToken ### Return: - Real 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.generateRealMsTokenApiV1TiktokWebGenerateRealMsTokenGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#generateRealMsTokenApiV1TiktokWebGenerateRealMsTokenGet_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 generateTtwidApiV1TiktokWebGenerateTtwidGet(cookie)
生成ttwid/Generate ttwid
[中文] ### 用途: - 生成ttwid ### 参数: - cookie: 用户cookie ### 返回: - ttwid # [English] ### Purpose: - Generate ttwid ### Parameters: - cookie: User cookie ### Return: - ttwid # [示例/Example] cookie = "Your_Cookie"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String cookie = Your_Cookie; // String | 用户cookie/User cookie
try {
ResponseModel result = apiInstance.generateTtwidApiV1TiktokWebGenerateTtwidGet(cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#generateTtwidApiV1TiktokWebGenerateTtwidGet");
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/User cookie |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel generateTtwidApiV1TiktokWebGenerateTtwidGet_0(cookie)
生成ttwid/Generate ttwid
[中文] ### 用途: - 生成ttwid ### 参数: - cookie: 用户cookie ### 返回: - ttwid # [English] ### Purpose: - Generate ttwid ### Parameters: - cookie: User cookie ### Return: - ttwid # [示例/Example] cookie = "Your_Cookie"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String cookie = Your_Cookie; // String | 用户cookie/User cookie
try {
ResponseModel result = apiInstance.generateTtwidApiV1TiktokWebGenerateTtwidGet_0(cookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#generateTtwidApiV1TiktokWebGenerateTtwidGet_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/User cookie |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel generateXbogusApiV1TiktokWebGenerateXbogusPost(xbogusModel)
生成xbogus/Generate xbogus
[中文] ### 用途: - 生成xbogus ### 参数: - url: 未签名的API URL - user_agent: 用户浏览器User-Agent ### 返回: - xbogus # [English] ### Purpose: - Generate xbogus ### Parameters: - url: Unsigned API URL - user_agent: User browser User-Agent ### Return: - xbogus # [示例/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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
XBogusModel xbogusModel = new XBogusModel(); // XBogusModel |
try {
ResponseModel result = apiInstance.generateXbogusApiV1TiktokWebGenerateXbogusPost(xbogusModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#generateXbogusApiV1TiktokWebGenerateXbogusPost");
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 generateXbogusApiV1TiktokWebGenerateXbogusPost_0(xbogusModel)
生成xbogus/Generate xbogus
[中文] ### 用途: - 生成xbogus ### 参数: - url: 未签名的API URL - user_agent: 用户浏览器User-Agent ### 返回: - xbogus # [English] ### Purpose: - Generate xbogus ### Parameters: - url: Unsigned API URL - user_agent: User browser User-Agent ### Return: - xbogus # [示例/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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
XBogusModel xbogusModel = new XBogusModel(); // XBogusModel |
try {
ResponseModel result = apiInstance.generateXbogusApiV1TiktokWebGenerateXbogusPost_0(xbogusModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#generateXbogusApiV1TiktokWebGenerateXbogusPost_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 getAllAwemeIdApiV1TiktokWebGetAllAwemeIdPost(requestBody)
提取列表作品id/Extract list video id
[中文] ### 用途: - 提取列表作品id ### 参数: - url: 作品链接 (最多支持20个链接) ### 返回: - 作品id # [English] ### Purpose: - Extract list video id ### Parameters: - url: Video link (Support up to 20 links) ### Return: - Video id # [示例/Example] url = ["https://www.tiktok.com/@owlcitymusic/video/7218694761253735723"]
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
List<String> requestBody = ["https://www.tiktok.com/@owlcitymusic/video/7218694761253735723"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllAwemeIdApiV1TiktokWebGetAllAwemeIdPost(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getAllAwemeIdApiV1TiktokWebGetAllAwemeIdPost");
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 getAllAwemeIdApiV1TiktokWebGetAllAwemeIdPost_0(requestBody)
提取列表作品id/Extract list video id
[中文] ### 用途: - 提取列表作品id ### 参数: - url: 作品链接 (最多支持20个链接) ### 返回: - 作品id # [English] ### Purpose: - Extract list video id ### Parameters: - url: Video link (Support up to 20 links) ### Return: - Video id # [示例/Example] url = ["https://www.tiktok.com/@owlcitymusic/video/7218694761253735723"]
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
List<String> requestBody = ["https://www.tiktok.com/@owlcitymusic/video/7218694761253735723"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllAwemeIdApiV1TiktokWebGetAllAwemeIdPost_0(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getAllAwemeIdApiV1TiktokWebGetAllAwemeIdPost_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 getAllSecUserIdApiV1TiktokWebGetAllSecUserIdPost(requestBody)
提取列表用户sec_user_id/Extract list user sec_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 (Support up to 10 links) ### Return: - If the sec_user_id is successfully obtained, 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] url = ["https://www.tiktok.com/@tiktok"]
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
List<String> requestBody = ["https://www.tiktok.com/@tiktok"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllSecUserIdApiV1TiktokWebGetAllSecUserIdPost(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getAllSecUserIdApiV1TiktokWebGetAllSecUserIdPost");
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 getAllSecUserIdApiV1TiktokWebGetAllSecUserIdPost_0(requestBody)
提取列表用户sec_user_id/Extract list user sec_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 (Support up to 10 links) ### Return: - If the sec_user_id is successfully obtained, 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] url = ["https://www.tiktok.com/@tiktok"]
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
List<String> requestBody = ["https://www.tiktok.com/@tiktok"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllSecUserIdApiV1TiktokWebGetAllSecUserIdPost_0(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getAllSecUserIdApiV1TiktokWebGetAllSecUserIdPost_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 getAllUniqueIdApiV1TiktokWebGetAllUniqueIdPost(requestBody)
获取列表unique_id/Get list unique_id
[中文] ### 用途: - 获取列表unique_id ### 参数: - url: 用户主页链接 (最多支持20个链接) ### 返回: - unique_id # [English] ### Purpose: - Get list unique_id ### Parameters: - url: User homepage link (Support up to 20 links) ### Return: - unique_id # [示例/Example] url = ["https://www.tiktok.com/@tiktok"]
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
List<String> requestBody = ["https://www.tiktok.com/@tiktok"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllUniqueIdApiV1TiktokWebGetAllUniqueIdPost(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getAllUniqueIdApiV1TiktokWebGetAllUniqueIdPost");
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 getAllUniqueIdApiV1TiktokWebGetAllUniqueIdPost_0(requestBody)
获取列表unique_id/Get list unique_id
[中文] ### 用途: - 获取列表unique_id ### 参数: - url: 用户主页链接 (最多支持20个链接) ### 返回: - unique_id # [English] ### Purpose: - Get list unique_id ### Parameters: - url: User homepage link (Support up to 20 links) ### Return: - unique_id # [示例/Example] url = ["https://www.tiktok.com/@tiktok"]
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
List<String> requestBody = ["https://www.tiktok.com/@tiktok"]; // List<String> |
try {
ResponseModel result = apiInstance.getAllUniqueIdApiV1TiktokWebGetAllUniqueIdPost_0(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getAllUniqueIdApiV1TiktokWebGetAllUniqueIdPost_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 getAwemeIdApiV1TiktokWebGetAwemeIdGet(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.tiktok.com/@owlcitymusic/video/7218694761253735723\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String url = https://www.tiktok.com/@owlcitymusic/video/7218694761253735723; // String | 作品链接/Video link
try {
ResponseModel result = apiInstance.getAwemeIdApiV1TiktokWebGetAwemeIdGet(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getAwemeIdApiV1TiktokWebGetAwemeIdGet");
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 | 作品链接/Video link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getAwemeIdApiV1TiktokWebGetAwemeIdGet_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.tiktok.com/@owlcitymusic/video/7218694761253735723\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String url = https://www.tiktok.com/@owlcitymusic/video/7218694761253735723; // String | 作品链接/Video link
try {
ResponseModel result = apiInstance.getAwemeIdApiV1TiktokWebGetAwemeIdGet_0(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getAwemeIdApiV1TiktokWebGetAwemeIdGet_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 | 作品链接/Video link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getLiveRoomIdApiV1TiktokWebGetLiveRoomIdGet(liveRoomUrl)
根据直播间链接提取直播间ID/Extract live room ID from live room link
[中文] ### 用途: - 根据直播间链接提取直播间Room ID - 支持短链接,如:https://vt.tiktok.com/ZSjuyJnWQ/ - 支持长链接,如:https://www.tiktok.com/@maksukaracun/live ### 参数: - live_room_url: 直播间链接 ### 返回: - 直播间Room ID # [English] ### Purpose: - Extract live room Room ID from live room link - Support short links, such as: https://vt.tiktok.com/ZSjuyJnWQ/ - Support long links, such as: https://www.tiktok.com/@maksukaracun/live ### Parameters: - live_room_url: Live room link ### Return: - Live room Room ID # [示例/Example] live_room_url = "https://www.tiktok.com/@maksukaracun/live\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String liveRoomUrl = https://www.tiktok.com/@maksukaracun/live; // String | 直播间链接/Live room link
try {
ResponseModel result = apiInstance.getLiveRoomIdApiV1TiktokWebGetLiveRoomIdGet(liveRoomUrl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getLiveRoomIdApiV1TiktokWebGetLiveRoomIdGet");
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 |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getLiveRoomIdApiV1TiktokWebGetLiveRoomIdGet_0(liveRoomUrl)
根据直播间链接提取直播间ID/Extract live room ID from live room link
[中文] ### 用途: - 根据直播间链接提取直播间Room ID - 支持短链接,如:https://vt.tiktok.com/ZSjuyJnWQ/ - 支持长链接,如:https://www.tiktok.com/@maksukaracun/live ### 参数: - live_room_url: 直播间链接 ### 返回: - 直播间Room ID # [English] ### Purpose: - Extract live room Room ID from live room link - Support short links, such as: https://vt.tiktok.com/ZSjuyJnWQ/ - Support long links, such as: https://www.tiktok.com/@maksukaracun/live ### Parameters: - live_room_url: Live room link ### Return: - Live room Room ID # [示例/Example] live_room_url = "https://www.tiktok.com/@maksukaracun/live\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String liveRoomUrl = https://www.tiktok.com/@maksukaracun/live; // String | 直播间链接/Live room link
try {
ResponseModel result = apiInstance.getLiveRoomIdApiV1TiktokWebGetLiveRoomIdGet_0(liveRoomUrl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getLiveRoomIdApiV1TiktokWebGetLiveRoomIdGet_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 |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getSecUserIdApiV1TiktokWebGetSecUserIdGet(url)
提取用户sec_user_id/Extract user sec_user_id
[中文] ### 用途: - 提取列表用户id ### 参数: - url: 用户主页链接 ### 返回: - 用户id # [English] ### Purpose: - Extract list user id ### Parameters: - url: User homepage link ### Return: - User id # [示例/Example] url = "https://www.tiktok.com/@tiktok\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String url = https://www.tiktok.com/@tiktok; // String | 用户主页链接/User homepage link
try {
ResponseModel result = apiInstance.getSecUserIdApiV1TiktokWebGetSecUserIdGet(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getSecUserIdApiV1TiktokWebGetSecUserIdGet");
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 | 用户主页链接/User homepage link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getSecUserIdApiV1TiktokWebGetSecUserIdGet_0(url)
提取用户sec_user_id/Extract user sec_user_id
[中文] ### 用途: - 提取列表用户id ### 参数: - url: 用户主页链接 ### 返回: - 用户id # [English] ### Purpose: - Extract list user id ### Parameters: - url: User homepage link ### Return: - User id # [示例/Example] url = "https://www.tiktok.com/@tiktok\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String url = https://www.tiktok.com/@tiktok; // String | 用户主页链接/User homepage link
try {
ResponseModel result = apiInstance.getSecUserIdApiV1TiktokWebGetSecUserIdGet_0(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getSecUserIdApiV1TiktokWebGetSecUserIdGet_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 | 用户主页链接/User homepage link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getUniqueIdApiV1TiktokWebGetUniqueIdGet(url)
获取用户unique_id/Get user unique_id
[中文] ### 用途: - 获取用户unique_id ### 参数: - url: 用户主页链接 ### 返回: - unique_id # [English] ### Purpose: - Get user unique_id ### Parameters: - url: User homepage link ### Return: - unique_id # [示例/Example] url = "https://www.tiktok.com/@tiktok\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String url = https://www.tiktok.com/@tiktok; // String | 用户主页链接/User homepage link
try {
ResponseModel result = apiInstance.getUniqueIdApiV1TiktokWebGetUniqueIdGet(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getUniqueIdApiV1TiktokWebGetUniqueIdGet");
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 | 用户主页链接/User homepage link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getUniqueIdApiV1TiktokWebGetUniqueIdGet_0(url)
获取用户unique_id/Get user unique_id
[中文] ### 用途: - 获取用户unique_id ### 参数: - url: 用户主页链接 ### 返回: - unique_id # [English] ### Purpose: - Get user unique_id ### Parameters: - url: User homepage link ### Return: - unique_id # [示例/Example] url = "https://www.tiktok.com/@tiktok\"
// 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.TikTokWebApiApi;
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");
TikTokWebApiApi apiInstance = new TikTokWebApiApi(defaultClient);
String url = https://www.tiktok.com/@tiktok; // String | 用户主页链接/User homepage link
try {
ResponseModel result = apiInstance.getUniqueIdApiV1TiktokWebGetUniqueIdGet_0(url);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokWebApiApi#getUniqueIdApiV1TiktokWebGetUniqueIdGet_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 | 用户主页链接/User homepage link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |