Introduction
Instagram Graph API provides a consistent way for users to pull social media relevant metrics/data for end user analytics
User Storie(s)
As a user, I would like to retrieve user profile/account data from Instagram so I can use it for end user analytics
As a user, I would like to specify aggregation period and time range for the account metrics so that I can filter the data that I need for my end user analytics
As a user, I would like to retrieve social interaction metrics (image, video, or album) for relevant media objects, so that I can leverage for end user analytics
Plugin Type
Configurables
This section defines properties that are configurable for this plugin.
User Facing Name | Type | Description | Constraints |
|---|---|---|---|
Access token | string | Access token |
|
Request Type | select |
|
|
Account ID | string | Account ID |
Mandatory if Request Type = "Get Account Insights" |
Media ID | string | Media Object ID | Mandatory if Request Type = "Get Media Insights" |
Metrics To Pull | multi-select | Select the list of available fields to pull | The metrics dropdown will change based on the request type. See the links in the design section for the list of available metrics. The schema will change based on the fields selected by the user |
Period | select | Aggregation period/no of days for metric | Mandatory if Request Type = "Get Account Insights" |
From Date | string | Start date for retrieving metric details | Mandatory if Request Type = "Get Account Insights" |
To Date | string | End date for retrieving metric details | Mandatory if Request Type = "Get Account Insights" |
Design / Implementation Tips
Metrics to pull will dynamically change based on the type of request that is selected. Output schema will depend on this selection. https://developers.facebook.com/docs/instagram-api should be used for implementation and data pulls
Account Insights - Fields to Pull
https://developers.facebook.com/docs/instagram-api/reference/user/insights#metrics-periods
Media Insights - Fields to Pull
https://developers.facebook.com/docs/instagram-api/reference/media/insights
@Bhooshan Mogal - i need a little bit of guidance on this plugin. There are many different kinds of data pull that we could from Instagram, an obvious is account insights for which I have specified the details above. In addition I have also added media insights that allows you to pull details about a media object. But there is a fairly large list of query types a user can potentially do. Do we have any sense of the kind of use cases that we heard about from clients or should I assume to need to support all of them. Can you please let me know your thoughts? i have added the ones in bold that I have accounted for so far.
User level queries:
get insights on an IG User
get all IG Media objects on an IG User
get all story IG Media objects on an IG User
get data on IG Media objects on which an IG User has been tagged
get data on IG Comments on which an IG User has been @mentioned
get data about IG Media objects on which an IG User has been @mentioned in a caption
Media level queries:
get metadata for individual media objects
get all child media objects in an album carousel
get all comments for individual media objects
get all insights for individual media objects
Hastag level queries
a list of media objects recently tagged with this hashtag
a list of the most popular media objects tagged with this hashtag
Comment level queries
get all replies to a comment