IDstring`json:"id"`// id string The ID for the image
Titlestring`json:"title"`// title string The title of the image.
Descriptionstring`json:"description"`// description string Description of the image.
DateTimeint64`json:"datetime"`// datetime integer Time inserted into the gallery, epoch time
Typestring`json:"type"`// type string Image MIME type.
Animatedbool`json:"animated"`// animated boolean is the image animated
Widthint`json:"width"`// width integer The width of the image in pixels
Heightint`json:"height"`// height integer The height of the image in pixels
Sizeint64`json:"size"`// size integer The size of the image in bytes
Viewsint64`json:"views"`// views integer The number of image views
Linkstring`json:"link"`// link string The direct link to the the image. (Note: if fetching an animated GIF that was over 20MB in original size, a .gif thumbnail will be returned)
Gifvstring`json:"gifv"`// gifv string OPTIONAL, The .gifv link. Only available if the image is animated and type is 'image/gif'.
MP4string`json:"mp4"`// mp4 string OPTIONAL, The direct link to the .mp4. Only available if the image is animated and type is 'image/gif'.
MP4Sizeint64`json:"mp4_size"`// mp4_size integer 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"`// looping boolean OPTIONAL, Whether the image has a looping animation. Only available if the image is animated and type is 'image/gif'.
NSFWbool`json:"nsfw"`// nsfw boolean Indicates if the image has been marked as nsfw or not. Defaults to null if information is not available.
Topicstring`json:"topic"`// topic string Topic of the gallery image.
Sectionstring`json:"section"`// section string 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"`// is_album boolean If it's an album or not
IDstring`json:"id"`// The ID for the image
Titlestring`json:"title"`// The title of the image.
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
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
Viewsint64`json:"views"`// The number of image views
Linkstring`json:"link"`// The direct link to the the image. (Note: if fetching an animated GIF that was over 20MB in original size, a .gif thumbnail will be returned)
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.
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
// ** 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
@ -56,20 +56,20 @@ type imgurGalleryImage struct {
}
typeimgurGalleryAlbumstruct{
IDstring`json:"id"`// id string The ID for the album
Titlestring`json:"title"`// title string The title of the album.
Descriptionstring`json:"description"`// description string Description of the album.
DateTimeint64`json:"datetime"`// datetime integer Time inserted into the gallery, epoch time
Viewsint64`json:"views"`// views integer The number of album views
Linkstring`json:"link"`// link string The URL link to the album
NSFWbool`json:"nsfw"`// nsfw boolean Indicates if the album has been marked as nsfw or not. Defaults to null if information is not available.
Topicstring`json:"topic"`// topic string Topic of the gallery album.
IsAlbumbool`json:"is_album"`// is_album boolean If it's an album or not
Coverstring`json:"cover"`// cover string The ID of the album cover image
CoverWidthint`json:"cover_width"`// cover_width integer The width, in pixels, of the album cover image
CoverHeightint`json:"cover_height"`// cover_height integer The height, in pixels, of the album cover image
ImagesCountint`json:"images_count"`// images_count integer The total number of images in the album
Images[]imgurGalleryImage`json:"images"`// images Array of Images An array of all the images in the album (only available when requesting the direct album)
IDstring`json:"id"`// The ID for the album
Titlestring`json:"title"`// The title of the album.
Descriptionstring`json:"description"`// Description of the album.
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.
Topicstring`json:"topic"`// Topic of the gallery album.
IsAlbumbool`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
ImagesCountint`json:"images_count"`// The total number of images in the album
Images[]imgurGalleryImage`json:"images"`// An array of all the images in the album (only available when requesting the direct album)
// ** Unimplemented fields **
// account_url string The account username or null if it's anonymous.