Instagram modelsapi generation api

instagram/v3/post-info-by-code

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

Input
Idle

Example output — click Run to generate your own

API README

Get post info by shortcode

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

code = "DUajw4YkorV"

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

Related Models