获取帖子详情(code)/Get post info by shortcode

Instagramapi

About

获取帖子详情(code)/Get post info by shortcode

Documentation

获取帖子详情(code)/Get post info by shortcode

[中文]

用途:

  • 通过帖子的短代码(code/shortcode)获取帖子详情
  • 短代码即帖子URL中的标识符,如 https://www.instagram.com/p/DUajw4YkorV/ 中的 DUajw4YkorV
  • 返回帖子的完整信息

参数:

  • code: 帖子短代码(如 DUajw4YkorV,必填)

返回:

  • data.items: 帖子信息列表
    • id: 帖子ID
    • code: 帖子短代码
    • 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 shortcode
  • Shortcode is the identifier in the post URL, e.g., DUajw4YkorV from https://www.instagram.com/p/DUajw4YkorV/
  • Returns complete post info

Parameters:

  • code: Post shortcode (e.g., DUajw4YkorV, required)

Return:

  • data.items: Post info list
    • id: Post ID
    • code: Post shortcode
    • media_type: Media type (1=image, 2=video, 8=carousel)
    • like_count: Likes count
    • comment_count: Comments count
    • caption.text: Post caption text
    • user: Publisher info
    • 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

Price:

  • 0.008 USD/request

示例/Example

code = "DUajw4YkorV"

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Try 获取帖子详情(code)/Get post info by shortcode

Test this model in the Sandbase Playground with your own prompts.

Open in Playground

Related Models