Instagram modelsapi generation api

instagram/v3/location-posts

Get Instagram location-related posts Support sorting by top or latest Location ID can be obtained from search API (search_places) or post details

Input
Idle

Example output — click Run to generate your own

API README

Get location posts

Purpose:

  • Get Instagram location-related posts
  • Support sorting by top or latest
  • Location ID can be obtained from search API (search_places) or post details Parameters:
  • location_id: Location ID (numeric)
  • tab: Post sort order
    • ranked: Top posts (default)
    • recent: Latest posts
  • first: Posts per page (default 12, max 50)
  • after: Pagination cursor from previous response page_info.end_cursor
  • page_size_override: Posts per page (default 12) Return:
  • data.sections: Post section list
    • layout_content.medias: Media list
      • media.id: Post ID
      • media.code: Post shortcode
      • media.media_type: Media type (1=image, 2=video, 8=carousel)
      • media.like_count: Likes count
      • media.comment_count: Comments count
      • media.caption.text: Post caption text
      • media.user: Publisher info
  • data.next_max_id: Next page cursor
  • data.next_page: Next page info
  • data.more_available: Whether has more content Price:
  • 0.008 USD/request

location_id = "1016248898" tab = "ranked"

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

Related Models