Versions in this module Expand all Collapse all v2 v2.4.8 Aug 2, 2020 Changes in this version + const MuteAll + const MuteFeed + const MuteStory + var ErrNoMore = errors.New("List end have been reached") + func Export(inst *Instagram, writer io.Writer) error + func GetBest(obj interface{}) string + func MediaIDFromShortID(code string) (string, error) + type Account struct + AddressStreet string + AllowContactsSync bool + AllowedCommenterType string + Biography string + BusinessContactMethod string + Byline string + CanBoostPost bool + CanSeeOrganicInsights bool + Category string + CityID int64 + CityName string + ContactPhoneNumber string + DirectMessaging string + Email string + ExternalLynxURL string + ExternalURL string + FbPageCallToActionID string + FollowerCount int + FollowingCount int + FullName string + Gender int + GeoMediaCount int + HasAnonymousProfilePicture bool + HasBiographyTranslation bool + HasChaining bool + HdProfilePicURLInfo PicURLInfo + HdProfilePicVersions []PicURLInfo + ID int64 + IsBusiness bool + IsCallToActionEnabled bool + IsPrivate bool + IsUnpublished bool + IsVerified bool + LatestReelMedia int64 + Latitude float64 + Longitude float64 + MediaCount int + MutualFollowersCount float64 + Nametag Nametag + PhoneNumber string + ProfilePicID string + ProfilePicURL string + PublicEmail string + PublicPhoneCountryCode string + PublicPhoneNumber string + ReelAutoArchive string + SearchSocialContext string + ShowInsightsTerms bool + SocialContext string + Username string + UsertagsCount int + Zip string + func (account *Account) Archived(params ...interface{}) *FeedMedia + func (account *Account) ChangePassword(old, new string) error + func (account *Account) Feed(params ...interface{}) *FeedMedia + func (account *Account) Followers() *Users + func (account *Account) Following() *Users + func (account *Account) Liked() *FeedMedia + func (account *Account) PendingFollowRequests() ([]User, error) + func (account *Account) RemoveProfilePic() error + func (account *Account) Saved() (*SavedMedia, error) + func (account *Account) SetBiography(bio string) error + func (account *Account) SetPrivate() error + func (account *Account) SetPublic() error + func (account *Account) Stories() *StoryMedia + func (account *Account) Sync() error + func (account *Account) Tags(minTimestamp []byte) (*FeedMedia, error) + type Activity struct + func (act *Activity) Following() *FollowingActivity + func (act *Activity) Recent() *MineActivity + type BlockedUser struct + BlockAt int64 + FullName string + ProfilePicURL string + UserID int64 + Username string + func (b *BlockedUser) Unblock() error + type Broadcast struct + BroadcastMessage string + BroadcastOwner User + BroadcastStatus string + CoverFrameURL string + DashManifest string + EncodingTag string + ExpireAt int64 + ID int64 + InternalOnly bool + MediaID string + NumberOfQualities int + OrganicTrackingToken string + PublishedTime int64 + type Candidate struct + Height int + URL string + Width int + type Caption struct + BitFlags int + ContentType string + CreatedAt int64 + CreatedAtUtc int64 + DidReportAsSpam bool + HasTranslation bool + ID int64 + MediaID int64 + Status string + Text string + Type int + User User + UserID int64 + type Challenge struct + Action string + LoggedInUser *Account + NonceCode string + Status string + StepData ChallengeStepData + StepName string + UserID int64 + func (challenge *Challenge) Process(apiURL string) error + func (challenge *Challenge) SendSecurityCode(code string) error + type ChallengeError struct + Challenge struct{ ... } + ErrorType string + Message string + Status string + func (e ChallengeError) Error() string + type ChallengeStepData struct + BigBlueToken string + Choice string + ContactPoint string + Email string + FbAccessToken string + FormType string + GoogleOauthToken string + ResendDelay interface{} + SecurityCode string + type Comment struct + BitFlags int + ChildCommentCount int + CommentIndex int + CommentLikeCount int + ContentType string + CreatedAt int64 + CreatedAtUtc int64 + DidReportAsSpam bool + HasLikedComment bool + HasMoreHeadChildComments bool + HasMoreTailChildComments bool + ID int64 + InlineComposerDisplayCondition string + NextMaxChildCursor string + NextMinChildCursor string + NumHeadChildComments int + NumTailChildComments int + OtherPreviewUsers []User + PreviewChildComments []Comment + Status string + Text string + Type int + User User + UserID int64 + func (c *Comment) Like() error + func (c *Comment) Unlike() error + type Comments struct + Caption Caption + CaptionIsEdited bool + CommentCount int64 + CommentLikesEnabled bool + DisplayRealtimeTypingIndicator bool + HasMoreComments bool + HasMoreHeadloadComments bool + InitiateAtTop bool + InsertNewCommentToTop bool + Items []Comment + MediaHeaderDisplay string + NextMaxID json.RawMessage + NextMinID json.RawMessage + PreviewComments []Comment + Status string + ThreadingEnabled bool + func (comments *Comments) Add(text string) (err error) + func (comments *Comments) Del(comment *Comment) error + func (comments *Comments) DelByID(id string) error + func (comments *Comments) DelMine(limit int) error + func (comments *Comments) Disable() error + func (comments *Comments) Enable() error + func (comments *Comments) Next() bool + func (comments *Comments) Sync() + func (comments Comments) Error() error + type ConfigFile struct + Cookies []*http.Cookie + DeviceID string + ID int64 + PhoneID string + RankToken string + Token string + UUID string + User string + type Contact struct + Emails []string + Name string + Numbers []string + type Contacts struct + func (c *Contacts) SyncContacts(contacts *[]Contact) (*SyncAnswer, error) + func (c *Contacts) UnlinkContacts() error + type Conversation struct + ExpiringMediaReceiveCount int + ExpiringMediaSendCount int + HasNewer bool + HasOlder bool + ID string + Inviter User + IsPin bool + IsSpam bool + Items []InboxItem + LastActivityAt int64 + LastPermanentItem Item + LastSeenAt map[string]struct{ ... } + LeftUsers []User + Muted bool + Named bool + NewestCursor string + OldestCursor string + Pending bool + PendingScore int64 + ReshareReceiveCount int + ReshareSendCount int + ThreadType string + Title string + Users []User + V2ID string + ValuedRequest bool + ViewerID int64 + func (c *Conversation) Like() error + func (c *Conversation) Next() bool + func (c *Conversation) Send(text string) error + func (c *Conversation) Write(b []byte) (int, error) + func (c Conversation) Error() error + type ErrChallengeProcess struct + StepName string + func (ec ErrChallengeProcess) Error() string + type Error400 struct + Action string + Payload struct{ ... } + Status string + StatusCode string + func (e Error400) Error() string + type Error503 struct + Message string + func (e Error503) Error() string + type ErrorN struct + ErrorType string + Message string + Status string + func (e ErrorN) Error() string + type Feed struct + func (feed *Feed) LocationID(locationID int64) (*FeedLocation, error) + func (feed *Feed) Tags(tag string) (*FeedTag, error) + type FeedLocation struct + AutoLoadMoreEnabled bool + Items []Item + Location Location + MediaCount int + MoreAvailable bool + NextID string + NumResults int + RankedItems []Item + Status string + type FeedMedia struct + AutoLoadMoreEnabled bool + Items []Item + MoreAvailable bool + NextID interface{} + NumResults int + Status string + func (media *FeedMedia) Delete() error + func (media *FeedMedia) ID() string + func (media *FeedMedia) Next(params ...interface{}) bool + func (media *FeedMedia) SetID(id interface{}) + func (media *FeedMedia) SetInstagram(inst *Instagram) + func (media *FeedMedia) Sync() error + func (media FeedMedia) Error() error + type FeedTag struct + AutoLoadMoreEnabled bool + Images []Item + MoreAvailable bool + NextID string + NumResults int + RankedItems []Item + Status string + Story StoryMedia + func (ft *FeedTag) Error() error + func (ft *FeedTag) Next() bool + type FollowingActivity struct + AutoLoadMoreEnabled bool + NextID int64 + Status string + Stories []struct{ ... } + func (act *FollowingActivity) Error() error + func (act *FollowingActivity) Next() bool + type Friendship struct + Blocking bool + FollowedBy bool + Following bool + IncomingRequest bool + IsMutingReel bool + IsPrivate bool + Muting bool + OutgoingRequest bool + type Hashtag struct + AutoLoadMoreEnabled bool + ID int64 + MediaCount int + MoreAvailable bool + Name string + NextID string + NextMediaIds []int64 + NextPage int + Sections []struct{ ... } + Status string + func (h *Hashtag) Error() error + func (h *Hashtag) Next() bool + func (h *Hashtag) Stories() (*StoryMedia, error) + func (h *Hashtag) Sync() error + type Images struct + Versions []Candidate + func (img Images) GetBest() string + type Inbox struct + BlendedInboxEnabled bool + Conversations []Conversation + Cursor string + HasNewer bool + HasOlder bool + PendingRequestsTotal int + SeqID int64 + SnapshotAtMs int64 + UnseenCount int + UnseenCountTs int64 + func (inbox *Inbox) New(user *User, text string) error + func (inbox *Inbox) Next() bool + func (inbox *Inbox) NextPending() bool + func (inbox *Inbox) Reset() + func (inbox *Inbox) Sync() error + func (inbox *Inbox) SyncPending() error + type InboxItem struct + ClientContext string + ID string + Like string + Media struct{ ... } + Text string + Timestamp int64 + Type string + UserID int64 + type InboxItemLike struct + ItemID string + ItemType string + Timestamp int64 + UserID int64 + type InboxItemMedia struct + ClientContext string + ExpiringMediaActionSummary struct{ ... } + ItemID string + ItemType string + RavenMedia struct{ ... } + ReplyChainCount int + SeenUserIds []interface{} + Timestamp int64 + UserID int64 + ViewMode string + type Instagram struct + Account *Account + Activity *Activity + Challenge *Challenge + Contacts *Contacts + Feed *Feed + Inbox *Inbox + Locations *LocationInstance + Profiles *Profiles + Search *Search + Timeline *Timeline + func Import(path string) (*Instagram, error) + func ImportConfig(config ConfigFile) (*Instagram, error) + func ImportReader(r io.Reader) (*Instagram, error) + func New(username, password string) *Instagram + func (inst *Instagram) Export(path string) error + func (inst *Instagram) GetMedia(o interface{}) (*FeedMedia, error) + func (inst *Instagram) Login() error + func (inst *Instagram) Logout() error + func (inst *Instagram) NewHashtag(name string) *Hashtag + func (inst *Instagram) NewUser() *User + func (inst *Instagram) Save() error + func (inst *Instagram) SetCookieJar(jar http.CookieJar) error + func (inst *Instagram) SetDeviceID(id string) + func (inst *Instagram) SetHTTPClient(client *http.Client) + func (inst *Instagram) SetHTTPTransport(transport http.RoundTripper) + func (inst *Instagram) SetPhoneID(id string) + func (inst *Instagram) SetProxy(url string, insecure bool) error + func (inst *Instagram) SetUUID(uuid string) + func (inst *Instagram) UnsetProxy() + func (insta *Instagram) UploadAlbum(photos []io.Reader, photoCaption string, quality int, filterType int) (Item, error) + func (insta *Instagram) UploadPhoto(photo io.Reader, photoCaption string, quality int, filterType int) (Item, error) + type Item struct + Audience string + CanViewerReshare bool + CanViewerSave bool + Caption Caption + CaptionIsEdited bool + CarouselMedia []Item + CarouselParentID string + ClientCacheKey string + Code string + CommentCount int + CommentLikesEnabled bool + CommentThreadingEnabled bool + Comments *Comments + CommentsDisabled bool + CreativeConfig interface{} + DeviceTimestamp int64 + FbUserTags Tag + FilterType int + HasAudio bool + HasLiked bool + HasMoreComments bool + HasSharedToFb int64 + ID string + Images Images + ImportedTakenAt int64 + IsDashEligible int + Lat float64 + Likers []User + Likes int + Lng float64 + Location Location + MaxNumVisiblePreviewComments int + MediaType int + Mentions []Mentions + NumberOfQualities int + OrganicTrackingToken string + OriginalHeight int + OriginalWidth int + PhotoOfYou bool + Pk int64 + Previewcomments interface{} + ReelMentions []StoryReelMention + ShowOneTapFbShareTooltip bool + StoryCTA []StoryCTA + StoryEvents []interface{} + StoryFeedMedia []interface{} + StoryHashtags []interface{} + StoryLocations []interface{} + StoryMusicStickers []struct{ ... } + StoryPolls []interface{} + StoryProductItems []interface{} + StoryQuestions []interface{} + StorySliders []interface{} + StorySoundOn []interface{} + SupportsReelReactions bool + Tags struct{ ... } + TakenAt int64 + Toplikers interface{} + User User + VideoDashManifest string + VideoDuration float64 + Videos []Video + ViewCount float64 + func (item *Item) Comment(text string) error + func (item *Item) Delete() error + func (item *Item) Download(folder, name string) (imgs, vds string, err error) + func (item *Item) Hashtags() []Hashtag + func (item *Item) Like() error + func (item *Item) MediaToString() string + func (item *Item) PreviewComments() []Comment + func (item *Item) Save() error + func (item *Item) StoryIsCloseFriends() bool + func (item *Item) SyncLikers() error + func (item *Item) TopLikers() []string + func (item *Item) Unlike() error + type LayoutSection struct + ExploreItemInfo struct{ ... } + FeedType string + LayoutContent struct{ ... } + LayoutType string + type LiveItems struct + Broadcasts []Broadcast + CanReply bool + CanReshare bool + ID string + LastSeenBroadcastTs float64 + Muted bool + RankedPosition int64 + SeenRankedPosition int64 + User User + type Location struct + Address string + City string + ExternalSource string + FacebookPlacesID int64 + Lat float64 + Lng float64 + Name string + Pk int64 + ShortName string + type LocationInstance struct + func (l *LocationInstance) Feeds(locationID int64) (*Section, error) + type Media interface + Delete func() error + Error func() error + ID func() string + Next func(...interface{}) bool + type Mentions struct + Height float64 + IsPinned int + Rotation float64 + User User + Width float64 + X float64 + Y float64 + Z int64 + type MineActivity struct + Ad struct{ ... } + ContinuationToken int64 + Counts struct{ ... } + FriendRequestStories []interface{} + NextID int64 + Status string + Stories []struct{ ... } + Subscription interface{} + func (act *MineActivity) Error() error + func (act *MineActivity) Next() bool + type Nametag struct + Emoji string + Gradient json.Number + Mode int64 + SelfieSticker json.Number + type PicURLInfo struct + Height int + URL string + Width int + type Profiles struct + func (prof *Profiles) Blocked() ([]BlockedUser, error) + func (prof *Profiles) ByID(id int64) (*User, error) + func (prof *Profiles) ByName(name string) (*User, error) + type SavedMedia struct + AutoLoadMoreEnabled bool + Items []struct{ ... } + MoreAvailable bool + NumResults int + Status string + type School struct + type Search struct + func (search *Search) Facebook(user string) (*SearchResult, error) + func (search *Search) Location(lat, lng, location string) (*SearchResult, error) + func (search *Search) Tags(tag string) (*SearchResult, error) + func (search *Search) User(user string, countParam ...int) (*SearchResult, error) + type SearchResult struct + ClearClientCache bool + HasMore bool + Hashtags []struct{ ... } + NumResults int64 + Places []interface{} + RankToken string + RequestID string + Status string + Tags []struct{ ... } + Users []User + Venues []struct{ ... } + type Section struct + MoreAvailable bool + NextMaxID string + NextMediaIds []int64 + NextPage int + Sections []LayoutSection + Status string + type StoryCTA struct + Links []struct{ ... } + type StoryMedia struct + Broadcasts []Broadcast + CanReply bool + CanReshare bool + ExpiringAt float64 + FaceFilterNuxVersion int + HasBestiesMedia interface{} + HasNewNuxStory bool + HaveBeenSeen float64 + Items []Item + LatestReelMedia int64 + Pk interface{} + PrefetchCount int + ReelMentions []string + ReelType string + Status string + StoryRankingToken string + Title string + User User + func (media *StoryMedia) Delete() error + func (media *StoryMedia) ID() string + func (media *StoryMedia) Next(params ...interface{}) bool + func (media *StoryMedia) Sync() error + func (media StoryMedia) Error() error + type StoryReelMention struct + Height float64 + IsHidden int + IsPinned int + Rotation float64 + User User + Width float64 + X float64 + Y float64 + Z int + type SuggestedUsers struct + AutoDvance string + ID string + LandingSiteTitle string + LandingSiteType string + NetegoType string + Suggestions []struct{ ... } + Title string + TrackingToken string + Type int + UpsellFbPos string + ViewAllText string + type SyncAnswer struct + Status string + Users []struct{ ... } + Warning string + type Tag struct + In []struct{ ... } + type Timeline struct + func (time *Timeline) Get() *FeedMedia + func (time *Timeline) Stories() (*Tray, error) + type Tray struct + Broadcasts []Broadcast + FaceFilterNuxVersion int + HasNewNuxStory bool + Lives struct{ ... } + Status string + Stories []StoryMedia + StoryRankingToken string + type User struct + AddressStreet string + AllowedCommenterType string + Biography string + BiographyWithEntities struct{ ... } + BusinessContactMethod string + Byline string + CanBeReportedAsFraud bool + Category string + CityID int64 + CityName string + ContactPhoneNumber string + DirectMessaging string + Email string + ExternalLynxURL string + ExternalURL string + FbPageCallToActionID string + FollowerCount int + FollowingCount int + FollowingTagCount int + Friendship Friendship + FullName string + Gender int + GeoMediaCount int + HasAnonymousProfilePicture bool + HasBiographyTranslation bool + HasChaining bool + HasHighlightReels bool + HdProfilePicURLInfo PicURLInfo + HdProfilePicVersions []PicURLInfo + ID int64 + IncludeDirectBlacklistStatus bool + IsBusiness bool + IsCallToActionEnabled bool + IsFavorite bool + IsFavoriteForHighlights bool + IsFavoriteForStories bool + IsPrivate bool + IsUnpublished bool + IsVerified bool + LatestReelMedia int64 + Latitude float64 + Longitude float64 + MediaCount int + MutualFollowersCount float64 + MutualFollowersID []int64 + PhoneNumber string + ProfileContext string + ProfilePicID string + ProfilePicURL string + PublicEmail string + PublicPhoneCountryCode string + PublicPhoneNumber string + ReelAutoArchive string + School School + SearchSocialContext string + ShoppablePostsCount int + ShowShoppableFeed bool + SocialContext string + Username string + UsertagsCount int + Zip string + func (user *User) Block() error + func (user *User) Feed(params ...interface{}) *FeedMedia + func (user *User) Follow() error + func (user *User) Followers() *Users + func (user *User) Following() *Users + func (user *User) FriendShip() error + func (user *User) Highlights() ([]StoryMedia, error) + func (user *User) Mute(opt muteOption) error + func (user *User) SetInstagram(insta *Instagram) + func (user *User) Stories() *StoryMedia + func (user *User) Sync(params ...interface{}) error + func (user *User) Tags(minTimestamp []byte) (*FeedMedia, error) + func (user *User) Unblock() error + func (user *User) Unfollow() error + func (user *User) Unmute(opt muteOption) error + type Users struct + BigList bool + NextID string + PageSize int + RawNextID json.RawMessage + Status string + Users []User + func (users *Users) Error() error + func (users *Users) Next() bool + func (users *Users) SetInstagram(inst *Instagram) + type Video struct + Height int + ID string + Type int + URL string + Width int