Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 retrieve social interaction metrics (image, video, or album) related to the user as well as associated media objects, specify aggregation period and time range for the account metrics so that I can leverage for filter the data that I need for my end user analytics
  • As a user, I would like to identify and retrieve comments and media objects associated with the user, retrieve social interaction metrics (image, video, or album) for relevant media objects, so that I can leverage for end user analytics

Plugin Type

  •  Batch Source
  •  Batch Sink 
  •  Real-time Source
  •  Real-time Sink
  •  Action
  •  Post-Run Action
  •  Aggregate
  •  Join
  •  Spark Model
  •  Spark Compute

...

Instagram API requires 

Configurables

...

Select all the types of data you want to import from Instagram. There are three options

...

Collecting data from Instagram

...

Configurables

This section defines properties that are configurable for this plugin. 

User Facing NameTypeDescriptionConstraints
Access tokenstring Access token
Request Typeselect
  1. Get Account Insights for specific user
  2. Get Media Insights for a specific media object

Account IDstring Account ID


Mandatory if Request Type = "Get Account Insights"

Media IDstringMedia Object ID

Mandatory if Request Type = "Get Media Insights"

Metrics To Pull multi-selectSelect 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

PeriodselectAggregation period/no of days for metricMandatory if Request Type = "Get Account Insights"
From DatestringStart date for retrieving metric detailsMandatory if Request Type = "Get Account Insights"
To DatestringEnd date for retrieving metric detailsMandatory 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/guides

This API reference currently supports user and media data, the following are not supported:

  • Stories are not supported.
  • Comments are not supported.
  • Insights are not supported.
  • Promoted posts containing Instagram media are not supported.

Note that there is another version of the API for Instagram available at the following link 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