获取帖子详情/Get post info (media_id or 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: 帖子信息列表(通常只有一个元素)media_type: 媒体类型(1=图片, 2=视频, 8=合集)
video_versions: 视频版本列表(视频时存在)
carousel_media: 合集媒体列表(合集时存在)
[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_id endpoint
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)media_type: Media type (1=image, 2=video, 8=carousel)
comment_count: Comments count
caption.text: Post caption text
image_versions2: Image version list
video_versions: Video version list (exists for videos)
carousel_media: Carousel media list (exists for carousels)
taken_at: Published timestamp
示例/Example#
# by media_id
media_id = "3850699893338385742"
# by url
url = "https://www.instagram.com/p/DUajw4YkorV/"
TikOmni Pricing#
Actual billing follows the TikOmni pricing catalog. Query /api/pricing/v1/endpoints with this endpoint path for the current unit price.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
or
Request Code Samples
curl --location 'https://api.tikomni.com/api/u1/v1/instagram/v3/get_post_info?media_id=3850699893338385742&url=https%3A%2F%2Fwww.instagram.com%2Fp%2FDUajw4YkorV%2F' \
--header 'Authorization: Bearer <token>'
Modified at 2026-08-29 22:56:33