Skip to content

Instagram Source Provider

The Instagram Source feeds data from Personal and Business Instagram accounts supporting Media, Media Single, Hashtagged Media and User queries.

Settings

Source Instance Common Settings

SettingDescriptionDefault
NameThe name that will identify this source instance.
Default Cache TimeThe default duration in seconds before the cache is renewed, set to 0 to disable caching. This setting can be overriden in each query configuration.3600

Instagram Source Settings

SettingDescription
AccountThe Instagram Account which to authenticate with.
PageThe Facebook Page associated with the Instagram Business account. Not applicable for Instagram Personal.

Media Query

Fetches media from the authenticated account and resolves to a list of Media Type.

Instagram Media Query

SettingDescriptionDefaultDynamic
TypeThe type of media to fetch, All, Image, or Video.All
OffsetThe offset media to fetch.0
LimitThe maximum amount of media to fetch.20
Since/UntilThe start and/or end datetime the fetched media will be restricted to.
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Media Single Query

Fetches a single media from the authenticated account and resolves to a Media Type.

Instagram Media Single Query

SettingDescriptionDefaultDynamic
IDUnique identifier of the media to retrieve.
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

If the Media is of Album Type you can fetch it media with the Multi Items query which resolves to a list of Album Media Type.

Instagram Album Media Query

SettingDescriptionDefaultDynamic
IDUnique identifier of the media to retrieve.
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Hashtagged Media Query

Fetches top and recent hashtagged media from the authenticated business account and resolves to a list of Media Type.

Instagram Hashtagged Media Query

SettingDescriptionDefaultDynamic
HashtagThe hashtag to query for.
EdgeShould the query look for Top Media or Recent Media hashtagged with.Top
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Notice

Take into consideration that this query is available for Instagram Business Accounts only and that the API imposes the following limitations:

  • Only returns public photos and videos.
  • Will not return promoted/boosted/ads media.
  • Responses will not always be in chronological order.
  • Maximum of 30 unique hashtags within a 7 day period.

User Query

Fetches the user profile from the authenticated account and resolves to a User Type.

Instagram User Query

SettingDefaultDescription
CacheThe duration in seconds before the cache is invalidated and the query re-executed.0

Notice

This query is only available for Instagram Business Accounts

Media Type

Instagram Media Mapping

OptionDescriptionTypeFilters
IDUnique identifier of this media.String
TypeThe type of this media, Album, Image, or Video.String
URLThe path to the locally cached media asset.String
Thumbnail URLThe path to the locally cached media thumbnail asset.String
PermalinkThe Instagram Media URL, e.g. www.instagram.com/p/CO9O62hnpR5nkt.String
CaptionThe caption content.StringLimit
HashtagsThe media hashtags as a custom formated string with Separator argument.String
Created AtThe time this media was created.StringDate
Created ByThe username of the user who created this media.String
Business Only OptionsDescriptionType
Total CommentsNumber of comments made one this media.Int
Total LikesNumber of user that liked this media.Int

Album Media Type

Instagram Album Media Mapping

OptionDescriptionTypeFilters
IDUnique identifier of this media.String
TypeThe type of this media, Album, Image, or Video.String
URLThe path to the locally cached media asset.String
Thumbnail URLThe path to the locally cached media thumbnail asset.String
PermalinkThe Instagram Media URL, e.g. www.instagram.com/p/CO9O62hnpR5nkt.String
Created AtThe time this media was created.StringDate
Created ByThe username of the user who created this media.String

User Type

Instagram User Mapping

OptionDescriptionTypeFilters
IDUnique identifier of this user.String
NameThe name of this user.String
WebsiteThe website of this user profile.String
BiographyThe biography of this user profile.StringLimit
Picture URLThe profile picture URL of this user.String
Total FollowersNumber of Instagram users following this user.Int
Total FollowsNumber of Instagram users this user follows.Int
Total MediaNumber of Instagram Media published on this user.Int