GetInsights​Get​Insights

Get Instagram media insights

Fetch insights like reach, saves, likes, etc. for specific Instagram media

yaml
type: "io.kestra.plugin.meta.instagram.media.GetInsights"

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

Access Token

Instagram access token with appropriate permissions (instagram_basic, instagram_content_publish, etc.)

Instagram Account ID

The ID of the Instagram professional account

Media ID

The ID of the Instagram media to get insights for

Default v24.0

API Version

Instagram Graph API version to use

Default https://graph.facebook.com

Host URL

The host URL for the Instagram Graph API

SubType string
Default ["LIKES","COMMENTS","SAVES","REACH"]
Possible Values
LIKESCOMMENTSSAVESSHARESREACHIMPRESSIONSPROFILE_VISITSPROFILE_ACTIVITYWEBSITE_CLICKSEMAIL_CONTACTSPHONE_CALL_CLICKSTEXT_MESSAGE_CLICKSGET_DIRECTIONS_CLICKSFOLLOWSUNFOLLOWSVIEWSTOTAL_INTERACTIONSREPLIESTAPS_FORWARDTAPS_BACKEXITSNAVIGATION

Metrics

List of insight metrics to retrieve