Instagram modelsapi generation api

instagram/v3/post-info

Get post details by media ID or post URL Returns complete post info including images/videos, likes, comments, author info, etc.

Input
Idle

Example output — click Run to generate your own

API README

Get post info (media_id or URL)

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)
    • 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
# 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.

Related Models