Search code examples
facebook-graph-apiinstagram-apiinstagram-graph-api

Instagram Graph API - reels available but what is the format?


Facebook mentioned they're now making reels data available with the /insights endpoint, yay (see here )! Although the article says they've updated their docs I don't see how it would be formatted, do we think the format will be like this?

insta_page_id/insights?metric=reels&period=lifetime

Solution

  • For a reels post in Instagram, you can try the following query in the Meta Graph API explorer(Assuming you have an app with required permissions):

    [IGpost-id]/insights?metric=likes, comments, shares, plays,reach,saved,total_interactions

    The above query should give you a response for these metric.

    Currently I did not find any media_type as "reels". A reels media_type is still tagged as Video. Only way to identify if a post is a reel is through the permalink url which contains https://www.instagram.com/**reel**/XXXXXXX in it.

    https://developers.facebook.com/docs/instagram-api/reference/ig-media/insights/