Instagram

Get an Instagram post or reel

Retrieve a public Instagram post or reel with media URLs, caption, author, timestamps, engagement, comments, carousel items, audio, location and co-authors. Use trim for a compact projection and include_comments to select comment enrichment. Each successful request costs 1 account credit, including partial results. Failed requests cost 0 credits.

get/v1/instagram/post

Request

  • Base URL: https://api.scrapeatlas.com
  • URL: https://api.scrapeatlas.com/v1/instagram/post
  • Auth: API key in header x-api-key

Query parameters

urlstring required

instagram.com post, reel or video permalink (https://www.instagram.com/p/{code}/, /reel/{code}/, /tv/{code}/, optionally prefixed by a username; query strings and fragments ignored).

trim'true' | 'false'

true returns the reference's trimmed projection at the top level as xdt_shortcode_media: id, shortcode, __typename, thumbnail_src, display_url, video_url, has_audio, product_type, video_duration, clips_music_attribution_info, is_video, owner, edge_media_to_caption, edge_media_to_parent_comment, edge_media_preview_comment, taken_at_timestamp, edge_media_preview_like, is_paid_partnership and location.

include_comments'true' | 'false'

Default true. false answers from the media document alone: the comment edges are empty, the comment counters stay, and coverage reports comments_omitted (status partial). Carousels still read the post page for their child shortcodes.

Response

Inspect the response status and failure or coverage fields.

OR
OR

Changes

No recorded changes to this operation across all 1 revision of this API.