Instagram

Post Info & Comments

Fetch post information and statistics from shortcode. Additionally, the 50 most recent comments in the post can be fetched. N.B. = Video Play Counts (video_play_count) are the total number of views only for Instagram. Reels posted on both Instagram and Facebook, might show a higher amount of views when logged in, because it is the combination of Instagram and Facebook views. This API returns the Instagram only views.

API Pricing (per request): 2 + ceil(#comments_fetched / 5) units

Try the API

get/instagram/post/details

Request

  • Base URL: https://ensembledata.com/apis
  • URL: https://ensembledata.com/apis/instagram/post/details
  • Auth: none declared

Query parameters

codestring required

Shortcode of the post.

n_comments_to_fetchinteger

How many comments to fetch per post (max allowed is 50).

fetch_play_countboolean

For videos, we need to fetch the video_play_count separately because Instagram does not return it with the post information. By default, we fetch this data, which adds a little extra processing time. If you want your request to be returned faster without the video_play_count, set this parameter to False.

tokenstring required

Private token assigned to each client to access the APIs.

Response

Successful Response

unknown required

Changes

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