获取帖子详情/Get post info (media_id or URL)
Instagramapi
About
获取帖子详情/Get post info (media_id or URL)
Documentation
获取帖子详情/Get post info (media_id or URL)
[中文]
用途:
- 通过媒体ID或帖子URL获取帖子详情
- 返回帖子的完整信息,包括图片/视频、点赞数、评论数、发布者信息等
参数:
- media_id: 帖子的媒体ID(数字ID),可通过
/shortcode_to_media_id接口从短码转换获得 - url: 帖子URL,例如
https://www.instagram.com/p/DUajw4YkorV/,支持/p/、/reel/、/reels/、/tv/路径 - media_id 与 url 至少提供一个;都提供时优先使用 media_id
返回:
data.items: 帖子信息列表(通常只有一个元素)id: 帖子IDcode: 帖子短代码media_type: 媒体类型(1=图片, 2=视频, 8=合集)like_count: 点赞数comment_count: 评论数caption.text: 帖子文本user: 发布者信息image_versions2: 图片版本列表video_versions: 视频版本列表(视频时存在)carousel_media: 合集媒体列表(合集时存在)taken_at: 发布时间戳
价格:
- 0.008 USD/请求
[English]
Purpose:
- Get post details by media ID or post URL
- Returns complete post info including images/videos, likes, comments, author info, etc.
Parameters:
- media_id: Post media ID (numeric ID), can be obtained via
/shortcode_to_media_idendpoint - url: Post URL, e.g.
https://www.instagram.com/p/DUajw4YkorV/, supports/p/,/reel/,/reels/,/tv/paths - At least one of media_id or url is required; media_id wins if both provided
Return:
data.items: Post info list (usually only one element)id: Post IDcode: Post shortcodemedia_type: Media type (1=image, 2=video, 8=carousel)like_count: Likes countcomment_count: Comments countcaption.text: Post caption textuser: Publisher infoimage_versions2: Image version listvideo_versions: Video version list (exists for videos)carousel_media: Carousel media list (exists for carousels)taken_at: Published timestamp
Price:
- 0.008 USD/request
示例/Example
# by media_id
media_id = "3850699893338385742"
# by url
url = "https://www.instagram.com/p/DUajw4YkorV/"
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 获取帖子详情/Get post info (media_id or URL)
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
批量翻译评论/Bulk translate commentsInstagramapi获取评论的子评论/回复/Get comment repliesInstagramapi获取探索页推荐帖子/Get explore feedInstagramapi从URL提取短码/Extract shortcode from URLInstagramapi综合搜索(支持分页)/General search (with pagination)Instagramapi获取话题标签帖子列表/Get hashtag postsInstagramapi获取Highlight精选详情/Get highlight storiesInstagramapi获取地点详情/Get location infoInstagramapi