Descriptionstring`json:"description"`// Description of the image.
DateTimeint64`json:"datetime"`// Time inserted into the gallery, epoch time
Typestring`json:"type"`// Image MIME type.
Animatedbool`json:"animated"`// Is the image animated
Animated*bool`json:"animated"`// Is the image animated
Widthint`json:"width"`// The width of the image in pixels
Heightint`json:"height"`// The height of the image in pixels
Sizeint64`json:"size"`// The size of the image in bytes
@ -35,11 +35,11 @@ type imgurGalleryImage struct {
Gifvstring`json:"gifv"`// OPTIONAL, The .gifv link. Only available if the image is animated and type is 'image/gif'.
MP4string`json:"mp4"`// OPTIONAL, The direct link to the .mp4. Only available if the image is animated and type is 'image/gif'.
MP4Sizeint64`json:"mp4_size"`// OPTIONAL, The Content-Length of the .mp4. Only available if the image is animated and type is 'image/gif'. Note that a zero value (0) is possible if the video has not yet been generated
Loopingbool`json:"looping"`// OPTIONAL, Whether the image has a looping animation. Only available if the image is animated and type is 'image/gif'.
NSFWbool`json:"nsfw"`// Indicates if the image has been marked as nsfw or not. Defaults to null if information is not available.
Looping*bool`json:"looping"`// OPTIONAL, Whether the image has a looping animation. Only available if the image is animated and type is 'image/gif'.
NSFW*bool`json:"nsfw"`// Indicates if the image has been marked as nsfw or not. Defaults to null if information is not available.
Topicstring`json:"topic"`// Topic of the gallery image.
Sectionstring`json:"section"`// If the image has been categorized by our backend then this will contain the section the image belongs in. (funny, cats, adviceanimals, wtf, etc)
IsAlbumbool`json:"is_album"`// If it's an album or not
IsAlbum*bool`json:"is_album"`// If it's an album or not
// ** Unimplemented fields **
// bandwidth integer Bandwidth consumed by the image in bytes
// deletehash string OPTIONAL, the deletehash, if you're logged in as the image owner
@ -62,9 +62,9 @@ type imgurGalleryAlbum struct {
DateTimeint64`json:"datetime"`// Time inserted into the gallery, epoch time
Viewsint64`json:"views"`// The number of album views
Linkstring`json:"link"`// The URL link to the album
NSFWbool`json:"nsfw"`// Indicates if the album has been marked as nsfw or not. Defaults to null if information is not available.
NSFW*bool`json:"nsfw"`// Indicates if the album has been marked as nsfw or not. Defaults to null if information is not available.
Topicstring`json:"topic"`// Topic of the gallery album.
IsAlbumbool`json:"is_album"`// If it's an album or not
IsAlbum*bool`json:"is_album"`// If it's an album or not
Coverstring`json:"cover"`// The ID of the album cover image
CoverWidthint`json:"cover_width"`// The width, in pixels, of the album cover image
CoverHeightint`json:"cover_height"`// The height, in pixels, of the album cover image