var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' };
fetch("https://api.tikhub.io/api/v1/instagram/v1/fetch_search?query=taylorswift&select", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' };
fetch("https://api.tikhub.io/api/v1/instagram/v1/fetch_user_info_by_username_v3?username=instagram", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' };
fetch("https://api.tikhub.io/api/v1/instagram/v1/fetch_user_reels?user_id=25025320&count&max_id", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' };
fetch("https://api.tikhub.io/api/v1/instagram/v1/fetch_user_posts_v2?user_id=25025320&count&end_cursor", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' };
fetch("https://api.tikhub.io/api/v1/instagram/v1/fetch_post_comments_v2?media_id=3766120364183949816&sort_order=recent&min_id=", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' };
fetch("https://api.tikhub.io/api/v1/instagram/v1/fetch_comment_replies?media_id=3766120364183949816&comment_id=17871667485468098&min_id=", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
GET https://api.tikhub.io/api/v1/instagram/v1/fetch_post_by_id Instagram-V1-API Last modified: 2 days ago OperationId: fetch_post_by_id_api_v1_instagram_v1_fetch_post_by_id_get [中文] 用途: 通过ID获取单个帖子的详细信息 参数: post_id: 帖子ID 返回: 帖子详情对象,包含媒体、点赞数、评论等 价格: 0.001 USD/请求 [English] Purpose: Get single post details by ID Parameters: post_id: Post ID Return: Post details object with media, likes, comments etc. Price: 0.001 USD/request [示例/Example] post_id = "3742637871112032100" Request Authorization Bearer Token Provide your bearer token in the Authorization header when making requests to protected resources. Example: Authorization: Bearer ******************** Query Params post_id string Post Id required 帖子ID/Post ID Example: 3742637871112032100 Request Code Samples var myHeaders = new Headers(); myHeaders.append("Authorization", "Bearer ");
var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' };
fetch("https://api.tikhub.io/api/v1/instagram/v1/fetch_post_by_id?post_id=3742637871112032100", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));