GetInsights
Get Instagram media insights
Fetch insights like reach, saves, likes, etc. for specific Instagram media
yaml
type: "io.kestra.plugin.meta.instagram.media.GetInsights"Examples
Get media insights
yaml
id: instagram_get_media_insights
namespace: company.team
tasks:
  - id: get_insights
    type: io.kestra.plugin.meta.instagram.media.GetInsights
    igId: "{{ secret('INSTAGRAM_ACCOUNT_ID') }}"
    accessToken: "{{ secret('INSTAGRAM_ACCESS_TOKEN') }}"
    mediaId: "17954170374002653"
    metrics:
      - LIKES
      - COMMENTS
      - SAVES
      - REACH
Properties
accessToken *Requiredstring
Access Token
Instagram access token with appropriate permissions (instagram_basic, instagram_content_publish, etc.)
igId *Requiredstring
Instagram Account ID
The ID of the Instagram professional account
mediaId *Requiredstring
Media ID
The ID of the Instagram media to get insights for
apiVersion string
 Default 
v24.0API Version
Instagram Graph API version to use
host string
 Default 
https://graph.facebook.comHost URL
The host URL for the Instagram Graph API
metrics array
 SubType string
 Default 
["LIKES","COMMENTS","SAVES","REACH"] Possible Values 
LIKESCOMMENTSSAVESSHARESREACHIMPRESSIONSPROFILE_VISITSPROFILE_ACTIVITYWEBSITE_CLICKSEMAIL_CONTACTSPHONE_CALL_CLICKSTEXT_MESSAGE_CLICKSGET_DIRECTIONS_CLICKSFOLLOWSUNFOLLOWSVIEWSTOTAL_INTERACTIONSREPLIESTAPS_FORWARDTAPS_BACKEXITSNAVIGATIONMetrics
List of insight metrics to retrieve