# Imgur

> Upload images to Imgur and get links to share or embed, make albums, and search Imgur's public gallery.

App · 10 actions. Web page: https://docs.lodol.com/docs/integrations/imgur

## Actions

### Add images to an album

Add images uploaded with 'Upload an image' to an album made with 'Create an album', using the delete hashes of both.

**Inputs**

- Album delete hash (`album_deletehash`, text, required): The album's delete hash, which 'Create an album' returned. The album's ID won't work here.
- Image delete hashes (`image_deletehashes`, list, required): The delete hashes of images uploaded with 'Upload an image', up to 500. A list from an earlier step works, and so does text with the hashes separated by commas.

**Outputs**

- `added` (true/false): Always true once added
- `album_deletehash` (text): The album's delete hash
- `images_added` (number): How many images were sent

**Example output**

```json
{
  "added": true,
  "album_deletehash": "Zx8Cv6Bn4Mm2Ll0",
  "images_added": 2
}
```

### Create an album

Make an Imgur album, optionally holding images uploaded with 'Upload an image'. Returns its link and the delete hash that adds to it or deletes it later.

**Inputs**

- Title (`title`, text): A title for it, up to 255 characters.
- Description (`description`, text): A description for it, up to 5,000 characters.
- Image delete hashes (`image_deletehashes`, list): The delete hashes of images uploaded with 'Upload an image', up to 500. A list from an earlier step works, and so does text with the hashes separated by commas.

**Outputs**

- `deletehash` (text): The key that adds images to this album or deletes it. Keep it: Imgur shows it only now.
- `id` (text): The album's Imgur ID
- `images_added` (number): How many images it was made with
- `link` (text): Link to the album on Imgur

**Example output**

```json
{
  "deletehash": "Zx8Cv6Bn4Mm2Ll0",
  "id": "Qw3Er5T",
  "images_added": 1,
  "link": "https://imgur.com/a/Qw3Er5T"
}
```

### Delete an album

Delete an album made with 'Create an album', using its delete hash. The images in it are kept.

**Inputs**

- Album delete hash (`album_deletehash`, text, required): The album's delete hash, which 'Create an album' returned. The album's ID won't work here.

**Outputs**

- `album_deletehash` (text): The deleted album's delete hash
- `deleted` (true/false): Always true once deleted

**Example output**

```json
{
  "album_deletehash": "Zx8Cv6Bn4Mm2Ll0",
  "deleted": true
}
```

### Delete an image

Delete an image uploaded with 'Upload an image', using its delete hash. Its links stop working.

**Inputs**

- Delete hash (`deletehash`, text, required): The image's delete hash, which 'Upload an image' returned. Imgur gives it only when the image is uploaded; the image's ID won't work here.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `deletehash` (text): The deleted image's delete hash

**Example output**

```json
{
  "deleted": true,
  "deletehash": "f9KpQ2wErT5yU7i"
}
```

### Get a gallery post

Get one post from Imgur's public gallery, an album or a single image, with its votes, tags and images, from its ID or link.

**Inputs**

- Gallery post (`post_id`, text, required): The post's ID (such as Xy7Kq2M), its gallery link, or an ID 'Search the gallery' returned.

**Outputs**

- `author` (text): The Imgur username that posted it
- `comment_count` (number): How many comments it has
- `cover_link` (text): Direct link to the post's first image
- `description` (text): The post's description
- `downs` (number): Downvotes
- `id` (text): The post's gallery ID
- `images` (list): The post's images
- `images_count` (number): How many images the post holds
- `is_album` (true/false): Whether the post is an album rather than a single image
- `nsfw` (true/false): Whether it is marked as mature
- `page_url` (text): Link to the post in Imgur's gallery
- `points` (number): Upvotes less downvotes
- `posted_at` (text): When it was posted (ISO 8601, UTC)
- `tags` (list): The post's tags
- `title` (text): The post's title
- `ups` (number): Upvotes
- `views` (number): How many times it has been viewed

**Example output**

```json
{
  "author": "printercat",
  "comment_count": 38,
  "cover_link": "https://i.imgur.com/AbC123x.png",
  "description": "",
  "downs": 12,
  "id": "Xy7Kq2M",
  "images": [
    {
      "animated": false,
      "description": "Sales by region",
      "height": 800,
      "id": "AbC123x",
      "link": "https://i.imgur.com/AbC123x.png",
      "mp4": "",
      "nsfw": false,
      "page_url": "https://imgur.com/AbC123x",
      "size": 154321,
      "title": "Quarterly chart",
      "type": "image/png",
      "uploaded_at": "2026-11-19T10:00:00Z",
      "views": 42,
      "width": 1200
    }
  ],
  "images_count": 1,
  "is_album": true,
  "nsfw": false,
  "page_url": "https://imgur.com/gallery/Xy7Kq2M",
  "points": 500,
  "posted_at": "2026-11-18T08:30:00Z",
  "tags": [
    "cats",
    "funny"
  ],
  "title": "My cat discovered the printer",
  "ups": 512,
  "views": 15230
}
```

### Get an album

Get an Imgur album's title, link and view count, with every image in it, from its ID or link.

**Inputs**

- Album (`album_id`, text, required): The album's ID (such as Qw3Er5T) or its Imgur link.

**Outputs**

- `cover` (text): The ID of the album's cover image
- `description` (text): The album's description
- `id` (text): The album's Imgur ID
- `images` (list): The album's images
- `images_count` (number): How many images it holds
- `link` (text): Link to the album on Imgur
- `nsfw` (true/false): Whether it is marked as mature
- `title` (text): The album's title
- `uploaded_at` (text): When it was made (ISO 8601, UTC)
- `views` (number): How many times it has been viewed

**Example output**

```json
{
  "cover": "AbC123x",
  "description": "",
  "id": "Qw3Er5T",
  "images": [
    {
      "animated": false,
      "description": "Sales by region",
      "height": 800,
      "id": "AbC123x",
      "link": "https://i.imgur.com/AbC123x.png",
      "mp4": "",
      "nsfw": false,
      "page_url": "https://imgur.com/AbC123x",
      "size": 154321,
      "title": "Quarterly chart",
      "type": "image/png",
      "uploaded_at": "2026-11-19T10:00:00Z",
      "views": 42,
      "width": 1200
    }
  ],
  "images_count": 1,
  "link": "https://imgur.com/a/Qw3Er5T",
  "nsfw": false,
  "title": "Quarterly charts",
  "uploaded_at": "2026-11-19T10:05:00Z",
  "views": 7
}
```

### Get an image

Get an Imgur image's links, title, size, dimensions and view count from its ID or link.

**Inputs**

- Image (`image_id`, text, required): The image's ID (such as AbC123x) or its Imgur link.

**Outputs**

- `animated` (true/false): Whether it is animated, such as a GIF
- `description` (text): The image's description
- `height` (number): Height in pixels
- `id` (text): The image's Imgur ID
- `link` (text): Direct link to the image file, for embedding
- `mp4` (text): Link to an MP4 copy of an animated image, or empty
- `nsfw` (true/false): Whether it is marked as mature
- `page_url` (text): Link to the image's page on Imgur, for sharing
- `size` (number): Size in bytes
- `title` (text): The image's title
- `type` (text): The file's type, such as image/png
- `uploaded_at` (text): When it was uploaded (ISO 8601, UTC)
- `views` (number): How many times it has been viewed
- `width` (number): Width in pixels

**Example output**

```json
{
  "animated": false,
  "description": "Sales by region",
  "height": 800,
  "id": "AbC123x",
  "link": "https://i.imgur.com/AbC123x.png",
  "mp4": "",
  "nsfw": false,
  "page_url": "https://imgur.com/AbC123x",
  "size": 154321,
  "title": "Quarterly chart",
  "type": "image/png",
  "uploaded_at": "2026-11-19T10:00:00Z",
  "views": 42,
  "width": 1200
}
```

### Search the gallery

Search the posts people have shared to Imgur's public gallery, about 60 a page, with each post's title, links, votes and images. Mature posts are left out unless asked for.

**Inputs**

- Search for (`query`, text, required): Words to search for. Imgur also understands AND, OR and NOT, and filters such as tag:cats or ext:gif.
- Sort by (`sort`, text): How to order the posts. One of: `time` (Newest first (default)), `viral` (Most viral), `top` (Top rated). Default: `time`.
- Posted in (`window`, text): How far back to look, when sorting by top rated. One of: `all` (All time (default)), `day` (Past day), `week` (Past week), `month` (Past month), `year` (Past year). Default: `all`.
- Page (`page`, number): Which page of results, starting at 0. From 0 to 1000. Default: `0`.
- Include mature posts (`include_mature`, true/false): Keep posts Imgur marks as mature in the results. Default: `false`.

**Outputs**

- `count` (number): How many posts were returned
- `mature_hidden` (number): How many mature posts were left out
- `page` (number): The page returned
- `posts` (list): The posts found

**Example output**

```json
{
  "count": 1,
  "mature_hidden": 0,
  "page": 0,
  "posts": [
    {
      "author": "printercat",
      "comment_count": 38,
      "cover_link": "https://i.imgur.com/AbC123x.png",
      "description": "",
      "downs": 12,
      "id": "Xy7Kq2M",
      "images": [
        {
          "animated": false,
          "description": "Sales by region",
          "height": 800,
          "id": "AbC123x",
          "link": "https://i.imgur.com/AbC123x.png",
          "mp4": "",
          "nsfw": false,
          "page_url": "https://imgur.com/AbC123x",
          "size": 154321,
          "title": "Quarterly chart",
          "type": "image/png",
          "uploaded_at": "2026-11-19T10:00:00Z",
          "views": 42,
          "width": 1200
        }
      ],
      "images_count": 1,
      "is_album": true,
      "nsfw": false,
      "page_url": "https://imgur.com/gallery/Xy7Kq2M",
      "points": 500,
      "posted_at": "2026-11-18T08:30:00Z",
      "tags": [
        "cats",
        "funny"
      ],
      "title": "My cat discovered the printer",
      "ups": 512,
      "views": 15230
    }
  ]
}
```

### Update an image

Change the title or description of an image uploaded with 'Upload an image', using its delete hash. A field left empty keeps what the image has.

**Inputs**

- Delete hash (`deletehash`, text, required): The image's delete hash, which 'Upload an image' returned. Imgur gives it only when the image is uploaded; the image's ID won't work here.
- Title (`title`, text): A title for it, up to 255 characters.
- Description (`description`, text): A description for it, up to 5,000 characters.

**Outputs**

- `deletehash` (text): The image's delete hash
- `description` (text): The new description, or empty if unchanged
- `title` (text): The new title, or empty if unchanged
- `updated` (true/false): Always true once updated

**Example output**

```json
{
  "deletehash": "f9KpQ2wErT5yU7i",
  "description": "",
  "title": "Quarterly chart (final)",
  "updated": true
}
```

### Upload an image

Upload an image or GIF to Imgur and get back links to share or embed it, plus the delete hash that changes or deletes it later. Upload a file, use one from an earlier step, or paste an image link. The upload belongs to no Imgur account.

**Inputs**

- Image (`image`, text, required): The image to upload, up to 20MB: upload a file, pick one from an earlier step, or paste a public image link.
- Title (`title`, text): A title for it, up to 255 characters.
- Description (`description`, text): A description for it, up to 5,000 characters.

**Outputs**

- `animated` (true/false): Whether it is animated, such as a GIF
- `deletehash` (text): The key that changes or deletes this image later. Keep it: Imgur shows it only now.
- `description` (text): The image's description
- `height` (number): Height in pixels
- `id` (text): The image's Imgur ID
- `link` (text): Direct link to the image file, for embedding
- `mp4` (text): Link to an MP4 copy of an animated image, or empty
- `nsfw` (true/false): Whether it is marked as mature
- `page_url` (text): Link to the image's page on Imgur, for sharing
- `size` (number): Size in bytes
- `title` (text): The image's title
- `type` (text): The file's type, such as image/png
- `uploaded_at` (text): When it was uploaded (ISO 8601, UTC)
- `views` (number): How many times it has been viewed
- `width` (number): Width in pixels

**Example output**

```json
{
  "animated": false,
  "deletehash": "f9KpQ2wErT5yU7i",
  "description": "Sales by region",
  "height": 800,
  "id": "AbC123x",
  "link": "https://i.imgur.com/AbC123x.png",
  "mp4": "",
  "nsfw": false,
  "page_url": "https://imgur.com/AbC123x",
  "size": 154321,
  "title": "Quarterly chart",
  "type": "image/png",
  "uploaded_at": "2026-11-19T10:00:00Z",
  "views": 0,
  "width": 1200
}
```
