### Get IP Activity List Request Example Source: https://docs.tikhub.io/417585634e0 Example of parameters for querying the IP activity list. Includes start and end times. ```json query_start_time = "1767196800" query_end_time = "1774972799" ``` -------------------------------- ### Get User Highlights Request Example Source: https://docs.tikhub.io/419083064e0 Example demonstrating how to construct a request to get a user's highlights. Includes parameters like user_id and first for pagination. ```http GET https://api.tikhub.io/api/v1/instagram/v3/get_user_highlights?user_id=58208242181&first=10 ``` -------------------------------- ### Get Top Products Request Example Source: https://docs.tikhub.io/308858140e0 Example of how to make a GET request to the get_top_products endpoint using cURL. Ensure to replace '' with your actual authorization token. ```curl curl --location 'https://api.tikhub.io/api/v1/tiktok/ads/get_top_products?last=undefined&page=undefined&limit=undefined&country_code=undefined&first_ecom_category_id=undefined&ecom_type=undefined&period_type=undefined&order_by=undefined&order_type=undefined' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Example GET Request for Post Comment Replies Source: https://docs.tikhub.io/440187735e0 This example shows how to construct a GET request to retrieve replies for a post comment. Ensure you provide the continuation_token obtained from a previous comment retrieval. ```http GET https://api.tikhub.io/api/v1/youtube/web_v2/get_post_comment_replies?continuation_token=xxx&need_format=true ``` -------------------------------- ### Get User Recommendations Request Example (cURL) Source: https://docs.tikhub.io/384533454e0 Example of how to make a GET request to the user recommendations endpoint using cURL. Ensure to replace '' with your actual bearer token. ```curl curl --location 'https://api.tikhub.io/api/v1/linkedin/web/get_user_recommendations?urn=ACoAAC3iNKcB3qbWJrP7K5Z3i89AF5c1snr8bhc&page=1&type=received&pagination_token=undefined' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Get Content Trend Guide Request Source: https://docs.tikhub.io/417585632e0 Example of how to make a GET request to the content trend guide endpoint. Ensure you include your bearer token in the Authorization header. ```curl curl --location 'https://api.tikhub.io/api/v1/douyin/xingtu_v2/get_content_trend_guide' \ --header 'Authorization: Bearer ' ``` ```JavaScript const fetch = require('node-fetch'); const url = 'https://api.tikhub.io/api/v1/douyin/xingtu_v2/get_content_trend_guide'; const token = ''; fetch(url, { method: 'GET', headers: { 'Authorization': `Bearer ${token}` } }) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error)); ``` ```cURL-Windows curl --location "https://api.tikhub.io/api/v1/douyin/xingtu_v2/get_content_trend_guide" \ --header "Authorization: Bearer " ``` ```Httpiew GET /api/v1/douyin/xingtu_v2/get_content_trend_guide HTTP/1.1 Host: api.tikhub.io Authorization: Bearer ``` ```wget wget --header="Authorization: Bearer " https://api.tikhub.io/api/v1/douyin/xingtu_v2/get_content_trend_guide ``` ```PowerShell $url = 'https://api.tikhub.io/api/v1/douyin/xingtu_v2/get_content_trend_guide' $token = '' $headers = @{ 'Authorization' = "Bearer $token" } Invoke-RestMethod -Uri $url -Method Get -Headers $headers ``` -------------------------------- ### Search Products Example Source: https://docs.tikhub.io/415522695e0 Example demonstrating how to search for products with specific parameters like keyword, page, and sort order. This is useful for initial product searches. ```text keyword="充电宝" page=1 sort="sales_qty" ``` -------------------------------- ### Get User Live Details Request Example Source: https://docs.tikhub.io/311485636e0 Demonstrates how to make a request to fetch user live details. Includes examples for query parameters and authorization headers. ```http GET https://api.tikhub.io/api/v1/tiktok/web/fetch_user_live_detail?uniqueId=tiktok ``` ```http Authorization: Bearer ******************** ``` -------------------------------- ### Get Seller Products List V1 Request Example Source: https://docs.tikhub.io/347819636e0 Example of how to set up parameters for fetching a seller's product list. Ensure to set the request timeout to 30 seconds and retry up to 3 times on a 400 error. ```text seller_id = "7495150558072178725" search_params = "" region = "US" ``` -------------------------------- ### Get Sub Comments Request Example Source: https://docs.tikhub.io/310965841e0 This cURL example demonstrates how to request sub-comments for a note. Ensure you replace '' with your actual bearer token. The 'start' parameter is optional and used for pagination. ```cURL curl --location 'https://api.tikhub.io/api/v1/xiaohongshu/app/get_sub_comments?note_id=677d1909000000002002a892&comment_id=677f67e400000000220013f3&start=6806642d000000001f01991b' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Get Hashtag Feed Request Example (cURL) Source: https://docs.tikhub.io/452347434e0 This snippet shows how to make a GET request to the get_hashtag_feed endpoint using cURL. Ensure you replace '' with your actual bearer token. The 'hashtag' parameter is required, while 'start' and 'count' are optional for pagination. ```cURL curl --location 'https://api.tikhub.io/api/v1/linkedin/web_v2/get_hashtag_feed?hashtag=ai&start=undefined&count=undefined' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Example Request Parameters Source: https://docs.tikhub.io/347819634e0 Example values for seller_id, product_id, and region to be used when calling the API. ```text seller_id = "7494629757824764402" product_id = "1729556436942358002" region = "MY" ``` -------------------------------- ### Get Content Valid Date Request Source: https://docs.tikhub.io/444247761e0 Example cURL request to fetch the valid date range for content guide data. Requires an Authorization header with a Bearer token. ```curl curl --location 'https://api.tikhub.io/api/v1/douyin/index/fetch_content_valid_date' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Search Products Request Example Source: https://docs.tikhub.io/415522695e0 Example of how to search for products using the Tikhub API with various parameters. Ensure you replace `` with your actual authorization token. ```curl curl --location 'https://api.tikhub.io/api/v1/xiaohongshu/app/search_products?keyword=%E5%85%85%E7%94%95%E5%AE%9D&page=1&search_id=&session_id=&sort=sales_qty&scope=purchased&service_guarantee=24%E5%B0%8F%E6%97%B6%E5%8F%91%E8%B4%A7%2C%E4%B8%83%E5%A4%A9%E6%97%A0%E7%90%86%E7%94%B1&min_price=1&max_price=100&super_promotion=695fb0a330425100017ff555' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Example Product Search Parameters Source: https://docs.tikhub.io/186826129e0 Demonstrates how to set parameters for a product search query. This includes keyword, cursor for pagination, count, sorting type, review criteria, discount availability, and price range. ```text keyword = "Cat Toy" cursor = 0 count = 12 sort_type = 1 customer_review_four_star = False have_discount = False min_price = "10" max_price = "25" ``` -------------------------------- ### Get User Images Request Example (cURL) Source: https://docs.tikhub.io/452347401e0 This cURL command demonstrates how to make a request to the get_user_images endpoint, including the required Authorization header and query parameters for username, start, and count. ```curl curl --location 'https://api.tikhub.io/api/v1/linkedin/web_v2/get_user_images?username=williamhgates&start=undefined&count=undefined' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### cURL Request Example Source: https://docs.tikhub.io/374442928e0 Example of how to make a GET request to fetch product reviews using cURL, including authorization and query parameters. ```shell curl --location 'https://api.tikhub.io/api/v1/tiktok/shop/web/fetch_product_reviews_v2?product_id=1729556436942358002&page_start=1&sort_rule=2&filter_type=1&filter_value=6®ion=MY' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Get Creator Product List Analytics Request Body Source: https://docs.tikhub.io/289437017e0 Example JSON body for requesting creator product analytics. Includes user cookie, start and end dates, and page number. ```json { "cookie": "your_cookie", "start_date": "2025-04-01", "end_date": "2025-05-01", "page": 0 } ``` -------------------------------- ### Get Creator Video List Analytics Request Body Source: https://docs.tikhub.io/289437016e0 Example request body for fetching creator video list analytics. Includes user cookie, start date, and page number. ```json { "cookie": "your_cookie", "start_date": "04-01-2025", "page": 0 } ``` -------------------------------- ### Fetch User Posts Example Source: https://docs.tikhub.io/343506807e0 Example demonstrating how to set parameters for fetching user posts. Ensure the timeout is set to over 30 seconds for stability. ```python user_id = "3xz63mn6fngqtiq" pcursor = None ``` -------------------------------- ### Fetch Subreddit Settings Example Source: https://docs.tikhub.io/369454685e0 This example demonstrates how to call the API to fetch settings for a specific subreddit. Ensure you provide the correct subreddit ID and optionally specify the need_format parameter. ```bash subreddit_id="t5_2qh0u" need_format=false ``` -------------------------------- ### Get User Experiences Request Example Source: https://docs.tikhub.io/452347405e0 Example of how to make a GET request to the API to fetch user experiences. Requires a username and an Authorization bearer token. ```cURL curl --location 'https://api.tikhub.io/api/v1/linkedin/web_v2/get_user_experiences?username=williamhgates' \ --header 'Authorization: Bearer ' ``` ```JavaScript const username = "williamhgates"; const token = ""; fetch(`https://api.tikhub.io/api/v1/linkedin/web_v2/get_user_experiences?username=${username}`, { method: 'GET', headers: { 'Authorization': `Bearer ${token}` } }) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error)); ``` ```PowerShell Invoke-RestMethod -Uri "https://api.tikhub.io/api/v1/linkedin/web_v2/get_user_experiences?username=williamhgates" -Headers @{Authorization = "Bearer "} ``` -------------------------------- ### Get Topic Feed - Initial Request Example Source: https://docs.tikhub.io/420136408e0 Example of parameters for the initial request to get the topic feed. Only 'page_id' and 'sort' are required for the first call. ```text page_id="5c1cc866febed9000184b7c1" sort="trend" ``` -------------------------------- ### Fetch User Posts Example Source: https://docs.tikhub.io/360042781e0 Demonstrates how to make the initial request and subsequent requests for more posts using the cursor for pagination. Leave the cursor empty for the first request. ```python # 第一次请求(获取前 30 条作品) user_id = "user-xiCyLclE6KJcdTXyvVq3Ontc" cusor = "" # 首次请求留空 # 第二次请求(获取下一页) cursor = "eyJ1c2VyX2lkIjoidXNlci14aUN5TGNsRTZLSmNkVFh5dlZxM09udGMi..." ``` -------------------------------- ### Example Request Parameters Source: https://docs.tikhub.io/362985064e0 Illustrates the parameters used for requesting user homepage video data. It shows example values for `sec_user_id`, `max_cursor`, `counts`, `sort_type`, and `unique_id`. ```text sec_user_id = "MS4wLjABAAAA5u9HhzjGAj-leViCcvZD6b4-qyqHHgr9lVJmcPMzcBUX_Q2NpBeCgz8Uh6KugkfS" max_cursor = 0 counts = 20 sort_type = 0 unique_id = "tiktok" ``` -------------------------------- ### Get Comment Replies Request Example Source: https://docs.tikhub.io/419083072e0 Example demonstrating how to set up a request to get comment replies. Ensure to include your bearer token in the Authorization header. ```http GET https://api.tikhub.io/api/v1/instagram/v3/get_comment_replies?media_id=3829530490739515971&comment_id=18065937092249736 Authorization: Bearer YOUR_BEARER_TOKEN ``` -------------------------------- ### Example Request Parameters Source: https://docs.tikhub.io/401621151e0 These are the example parameters for fetching user reposts. Ensure you provide the required 'secUid' and optional 'cursor', 'count', and 'coverFormat'. ```text secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" cursor = 0 count = 20 coverFormat = 2 ``` -------------------------------- ### Get Recommended Ads Request Example Source: https://docs.tikhub.io/308858148e0 Example of a cURL request to get recommended TikTok ads. Ensure you replace '' with your actual authorization token. ```curl curl --location 'https://api.tikhub.io/api/v1/tiktok/ads/get_recommended_ads?material_id=7213258221116751874&industry=undefined&country_code=undefined' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Get Ad Percentile Request Example Source: https://docs.tikhub.io/308858146e0 Example of a cURL request to get ad percentile data. Ensure to replace '' with your actual authorization token. ```curl curl --location 'https://api.tikhub.io/api/v1/tiktok/ads/get_ad_percentile?material_id=7213258221116751874&metric=undefined&period_type=undefined' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Get Home Recommend Request Example Source: https://docs.tikhub.io/268383317e0 This cURL example demonstrates how to make a POST request to the get_home_recommend endpoint. It includes the Authorization header and a JSON body with parameters like feed_type and need_filter_image. ```curl curl --location 'https://api.tikhub.io/api/v1/xiaohongshu/web/get_home_recommend' \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ \ "feed_type": "0", \ "need_filter_image": false, \ "cursor_score": "", \ "cookie": "", \ "proxy": "" \ }' ``` -------------------------------- ### Get Post Detail Request Example Source: https://docs.tikhub.io/360042776e0 Example of how to fetch detailed information for a specific post using its ID and URL. Requires an authorization token. ```curl curl --location 'https://api.tikhub.io/api/v1/sora2/get_post_detail?post_id=s_68e853d2ad448191b3c81e830f53c3a2&post_url=https%3A%2F%2Fsora.chatgpt.com%2Fp%2Fs_68e853d2ad448191b3c81e830f53c3a2' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Get Content Trend Guide Source: https://docs.tikhub.io/186826129e0 Retrieves a guide for content trends. ```APIDOC ## GET /douyin-xingtu-v2-api/content-trend/guide ### Description Retrieves a guide for content trends. ### Method GET ### Endpoint /douyin-xingtu-v2-api/content-trend/guide ``` -------------------------------- ### API Request Example with Optional Parameters Source: https://docs.tikhub.io/440187733e0 This example shows how to make a request to the get_post_detail endpoint with optional parameters like language_code, country_code, and need_format. ```bash curl -X GET \ "https://api.tikhub.io/api/v1/youtube/web_v2/get_post_detail?post_id=UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy&language_code=en-US&country_code=US&need_format=false" \ -H "Authorization: Bearer YOUR_BEARER_TOKEN" ``` -------------------------------- ### Get Video Info V1 cURL Request Source: https://docs.tikhub.io/413417969e0 Example of how to make a GET request to the Get Video Info V1 API using cURL. This example demonstrates specifying the video ID, URL access mode, and language. ```shell curl --location 'https://api.tikhub.io/api/v1/youtube/web/get_video_info?video_id=LuIL5JATZsc&url_access=undefined&lang=zh-CN&videos=undefined&audios=undefined&subtitles=undefined&related=undefined' \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Get Instagram Post oEmbed Info Example Source: https://docs.tikhub.io/419083073e0 Example of how to call the API to get oEmbed information for an Instagram post. Ensure you provide the full post URL. ```bash curl -X GET \ 'https://api.tikhub.io/api/v1/instagram/v3/get_post_oembed?url=https://www.instagram.com/reel/DUlObENDmJD' \ -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' ``` -------------------------------- ### Get Product Metrics Request Example Source: https://docs.tikhub.io/308858155e0 Example of how to request product metrics using cURL. Ensure you replace `` with your actual authorization token. ```curl curl --location 'https://api.tikhub.io/api/v1/tiktok/ads/get_product_metrics?id=601583&last=undefined&metrics=undefined&ecom_type=undefined&period_type=undefined&country_code=undefined' \ --header 'Authorization: Bearer ' ```