InstagramMedia

public struct InstagramMedia: Decodable

The struct containing an Instagram media.

  • id

    The media identifier.

    Declaration

    Swift

    public let id: String
  • The owner of the media.

    Declaration

    Swift

    public let user: InstagramUser
  • The thumbnail, low and standard resolution images of the media.

    Declaration

    Swift

    public let images: Images
  • The date and time when the media was created.

    Declaration

    Swift

    public var createdDate: Date
  • The headline of the media.

    Declaration

    Swift

    public let caption: InstagramComment?
  • A Boolean value that indicates whether the current logged-in user has liked the media.

    Declaration

    Swift

    public let userHasLiked: Bool
  • A Count object that contains the number of likes on the media.

    Declaration

    Swift

    public let likes: Count
  • A list of tags used in the media.

    Declaration

    Swift

    public let tags: [String]
  • The image filter used by the media.

    Declaration

    Swift

    public let filter: String
  • A Count object that contains the number of comments on the media.

    Declaration

    Swift

    public let comments: Count
  • The type of media. It can be image or video.

    Declaration

    Swift

    public let type: String
  • The link of the media.

    Declaration

    Swift

    public let link: String
  • The location of the media.

    Declaration

    Swift

    public let location: MediaLocation?
  • A list of users and their position on the image.

    Declaration

    Swift

    public let usersInPhoto: [UserInPhoto]
  • The low and standard resolution videos of the media.

    Declaration

    Swift

    public let videos: Videos?
  • If the media is a carousel, this object contains all the images or videos inside it.

    Declaration

    Swift

    public let carouselMedia: [CarouselMedia]?
  • The distance to the location of media when it has been searched by location.

    Declaration

    Swift

    public let distance: Double?
  • A struct cointaing the number of elements.

    See more

    Declaration

    Swift

    public struct Count: Decodable
  • A struct containing the resolution of a video or image.

    See more

    Declaration

    Swift

    public struct Resolution: Decodable
  • A struct cointaining the thumbnail, low and high resolution images of the media.

    See more

    Declaration

    Swift

    public struct Images: Decodable
  • A struct cointaining the low and standard resolution videos of the media.

    See more

    Declaration

    Swift

    public struct Videos: Decodable
  • A struct containing the location of the media.

    See more

    Declaration

    Swift

    public struct MediaLocation: Codable
  • A struct containing the user and its position on the image.

    See more

    Declaration

    Swift

    public struct UserInPhoto: Decodable
  • The struct containing the images or videos of the carousel.

    See more

    Declaration

    Swift

    public struct CarouselMedia: Decodable