Public
Environment
No Environment
Layout
Double Column
Language
cURL
Imgur API

API Status

Status for the API can be found at status.imgur.com!

Getting Started

Imgur's API exposes the entire Imgur infrastructure via a standardized programmatic interface. Using Imgur's API, you can do just about anything you can do on imgur.com, while using your programming language of choice. The Imgur API is a RESTful API based on HTTP requests and JSON responses.

This version of the API, version 3, uses OAuth 2.0. This means that all requests will need to be encrypted and sent via HTTPS. It also means that you need to register your application, even if you aren't allowing users to login.

The easiest way to start using the Imgur API is by clicking the Run in Postman button above. Postman is a free tool which helps developers run and debug API requests, and is the source of truth for this documentation. Every endpoint you see documented here is readily available by running our Postman collection.

Example code

These examples serve as a starting point to help familiarize you with the basics of the Imgur API.

Need help?

The Imgur engineers are always around answering questions. The quickest way to get help is by posting your question on StackOverflow with the Imgur tag.

Register an Application (IMPORTANT)

Each client must register their application and receive the client_id and client_secret.

For public read-only and anonymous resources, such as getting image info, looking up user comments, etc. all you need to do is send an authorization header with your client_id in your requests. This also works if you'd like to upload images anonymously (without the image being tied to an account), or if you'd like to create an anonymous album. This lets us know which application is accessing the API.

Authorization: Client-ID <YOUR_CLIENT_ID>

Registration Quickstart

If you are just getting started, an easy way to explore the endpoints is by creating an application using following instructions below.

  1. Download Postman and click the Run in Postman button at the top of this page. This will load our collection of endpoints into Postman for easy debugging.
  2. Register your application using the postman callback URL: https://www.getpostman.com/oauth2/callback
  3. In Postman, under the main request builder panel, click the Authorization tab. Click the Get New Access Token button. Set Auth URL to https://api.imgur.com/oauth2/authorize and Access Token URL to https://api.imgur.com/oauth2/token. Add the Client ID and Client Secret you received from registering your application above, then click Request Token
  4. After logging in and granting access to your application, you should receive a refresh token. Copy this refresh token, then click the gear icon in the top right of Postman. Click Manage Environments then Add, and add the refreshToken, clientId, and clientSecret fields as shown below
  5. Inside the Account folder, run the Generate Access Token endpoint. The response you receive will give you an access token which will be valid for about a month. This token is automatically saved to your Postman environment via the JavaScript test for that endpoint as seen below. Whenever your token expires, just re-run this endpoint and a new token will be saved to your environment.
  6. Run any endpoint within the collection. You have authorized your app and logged in with your username, so you are now making authenticated requests against the Imgur API. Happy hacking!

Commercial Usage

Your application is commercial if you're making any money with it (which includes in-app advertising), if you plan on making any money with it, or if it belongs to a commercial organization.

To use Imgur's API commercially, you must first register your application. Once that's done, you must register with RapidAPI. RapidAPI allows you to choose a pricing plan that fits your needs. From then on, the API endpoint is https://imgur-apiv3.p.rapidapi.com/ which must be used in place of https://api.imgur.com/. Additionally, you must set a X-Mashape-Key request header with the key obtained from RapidAPI.

Free Usage

The Imgur API is free for non-commercial usage. Your application is probably free if you don't plan on making any money with it, or if it's open source.

Endpoints

The API is accessed by making HTTP requests to a specific version endpoint URL, in which GET or POST variables contain information about what you wish to access. Every endpoint is accessed via an SSL-enabled HTTPS (port 443), this is because everything is using OAuth 2.0.

Everything (methods, parameters, etc.) is fixed to a version number, and every call must contain one. Different Versions are available at different endpoint URLs. The latest version is Version 3.

The stable HTTP endpoint for the latest version is: https://api.imgur.com/3/

Responses

Each response is wrapped in a data tag. This means if you have a response, it will always be within the data field. We also include a status code and success flag in the response. For more information and examples go to the data models page.

Responses are either JSON (the default), JSONP, or XML. Response formats are specified by supplying an extension to the API call. For example, if you want to access the gallery information with JSON:

https://api.imgur.com/3/gallery.json

JSONP responses are made by adding the callback parameter via either GET or POST to the request. For example:

https://api.imgur.com/3/gallery.json?callback=function_name

and to specify an XML response, the URL is:

https://api.imgur.com/3/gallery.xml

Paging Results

For the most part, if the API action is plural, you can page it via a query string parameter.

NOTE: /gallery endpoints do not support the perPage query string, and /album/{id}/images is not paged.

Query String Parameter Required Description
page optional Page number of the result set (default: 0)
perPage optional Limit the number of results per page. (default: 50, max: 100)

Example:

https://api.imgur.com/3/account/imgur/images/0.json?perPage=42&page=6

Authentication

The API requires each client to use OAuth 2 authentication. This means you'll have to register your application, and generate an access_code if you'd like to log in as a user. For public read-only and anonymous resources, such as getting image info, looking up user comments, etc. all you need to do is send an authorization header with your client_id in your requests. This also works if you'd like to upload images anonymously (without the image being tied to an account), or if you'd like to create an anonymous album. This lets us know which application is accessing the API.

Authorization: Client-ID <YOUR_CLIENT_ID>

For accessing a user's account, please visit the OAuth2 section of the docs. OAuth Endpoints To access OAuth, the following endpoints must be used:

https://api.imgur.com/oauth2/addclient
https://api.imgur.com/oauth2/authorize
https://api.imgur.com/oauth2/token

You can also verify your OAuth 2.0 tokens by setting your header and visiting the page

https://api.imgur.com/oauth2/secret

Rate Limits

The Imgur API uses a credit allocation system to ensure fair distribution of capacity. Each application can allow approximately 1,250 uploads per day or approximately 12,500 requests per day. If the daily limit is hit five times in a month, then the app will be blocked for the rest of the month. The remaining credit limit will be shown with each requests response in the X-RateLimit-ClientRemaining HTTP header.

We also limit each user (via their IP Address) for each application, this is to ensure that no single user is able to spam an application. This limit will simply stop the user from requesting more data for an hour. We recommend that each application takes precautions against spamming by implementing rate limiting on their own applications. Each response will also include the remaining credits for each user in the X-RateLimit-UserLimit HTTP header.

Each request contains rate limit information in the HTTP response headers.

HTTP Header Description
X-RateLimit-UserLimit Total credits that can be allocated.
X-RateLimit-UserRemaining Total credits available.
X-RateLimit-UserReset Timestamp (unix epoch) for when the credits will be reset.
X-RateLimit-ClientLimit Total credits that can be allocated for the application in a day.
X-RateLimit-ClientRemaining Total credits remaining for the application in a day.

Unless otherwise noted, an API call deducts 1 credit from your allocation. However, uploads have a significantly higher computational cost on our back-end, and deduct 10 credits per call. All OAuth calls, such as refreshing tokens or authorizing users, do not deduct any credits. You can also check the current rate limit status on your application by sending a GET request to

https://api.imgur.com/3/credits

Your use of the Imgur API is also limited by the number of POST requests your IP can make across all endpoints. This limit is 1,250 POST requests per hour. Commercial Usage is not impacted by this limit. Each POST request will contain the following headers.

HTTP Header Description
X-Post-Rate-Limit-Limit Total POST credits that are allocated.
X-Post-Rate-Limit-Remaining Total POST credits available.
X-Post-Rate-Limit-Reset Time in seconds until your POST ratelimit is reset

Authorization and OAuth

OAuth 2.0 Overview

The Imgur API uses OAuth 2.0 for authentication. OAuth 2.0 has four steps: registration, authorization, making the request, and getting new access_tokens after the initial one expired.

  • Registration gives you your client_id and client_secret, which is then used to authorize the user to your app.

  • Authorization is the process of the user saying "I would like YourSuperAwesomeImgurApp to access my data". YourSuperAwesomeImgurApp cannot access the user's account without them agreeing to it. After they agree, you will get refresh and access tokens.

    • access_token: is your secret key used to access the user's data. It can be thought of the user's password and username combined into one, and is used to access the user's account. It expires after 1 month.
    • refresh_token: is used to request new access_tokens. Since access_tokens expire after 1 month, we need a way to request new ones without going through the entire authorization step again. It does not expire.
    • authorization_code: is used for obtaining the the access and refresh tokens. It's purpose is to be immediately exchanged for an access_token and refresh_token.
    • Finally, after obtaining your access_token, you make your API requests by sending the Authorization header as such: Authorization: Bearer YOUR_ACCESS_TOKEN
  • Registration

Each client must register their application and receive the client_id and client_secret.

For public read-only and anonymous resources, such as getting image info, looking up user comments, etc. all you need to do is send an authorization header with your client_id in your requests. This also works if you'd like to upload images anonymously (without the image being tied to an account), or if you'd like to create an anonymous album. This lets us know which application is accessing the API.

Authorization: Client-ID YOUR_CLIENT_ID

Authorization

NOTE: If your app is not only requesting public read-only information, then you may skip this step.

To access a user's account, the user must first authorize your application so that you can get an access token. Requesting an access token is fairly straightforward: point a browser (pop-up, or full page redirect if needed) to a URL and include a set of query string parameters.

https://api.imgur.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&response_type=REQUESTED_RESPONSE_TYPE&state=APPLICATION_STATE

The user will now be able to enter their password and accept that they'd like to use your application. Once this happens, they will be redirected to your redirect URL (that you entered during registration) with the access token. You can now send the access token in the headers to access their account information.

Forming the authorization URL

Authorization Endpoint: https://api.imgur.com/oauth2/authorize

View More
Parameter Values Description
response_type token, code, or pin Only token should be used, as the other methods have been deprecated. Determines if Imgur returns an access_token, authorization_code (deprecated), or a PIN code(deprecated). When using token, the access_token and refresh_token will be given to you in the form of query string parameters attached to your redirect URL, which the user may be able to read.
client_id the Client ID you recieved from registration Indicates the client that is making the request.
state any string This optional parameter indicates any state which may be useful to your application upon receipt of the response. Imgur round-trips this parameter, so your application receives the same value it sent. Possible uses include redirecting the user to the correct resource in your site, nonces, and cross-site-request-forgery mitigations.

The response_type Parameter

token: This authorization flow will directly return the access_token and refresh_token via the redirect URL you specified during registration, in the form of hash query string parameters. Example: http://example.com?access_token=ACCESS_TOKEN&token_type=Bearer&expires_in=3600

The code and pin response types have been deprecated and will soon no longer be supported.

Handling the Authorization Response

The response will be sent to the redirect URL that was specified during registration. The contents and format of the response is determined by the value of the response_type parameter. You're able to change your applications redirect URL at any time by accessing the 'apps' section of your account settings.

JavaScript responses for the response_type: token

Imgur returns an access token to your application if the user grants your application the permissions it requested. The access token is returned to your application in the fragment as part of the access_token parameter. Since a fragment (the part of the URL after the #) is not sent to the server, client side javascript must parse the fragment and extract the value of the access_token parameter. Other parameters included in the response include expires_in and token_type. These parameters describe the lifetime of the token in seconds, and the kind of token that is being returned. If the state parameter was included in the request, then it is also included in the response. An example User Agent flow response is shown below:

https://example.com/oauthcallback#access_token=ACCESS_TOKEN&token_type=Bearer&expires_in=3600

Below is a JavaScript snippet that parses the response and returns the parameters to the server.

View More
// First, parse the query string
var params = {}, queryString = location.hash.substring(1),
    regex = /([^&=]+)=([^&]*)/g, m;
while (m = regex.exec(queryString)) {
  params[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
}

// And send the token over to the server
var req = new XMLHttpRequest();
// consider using POST so query isn't logged
req.open('GET', 'https://' + window.location.host + '/catchtoken?' + queryString, true);

req.onreadystatechange = function (e) {
if (req.readyState == 4) {
if(req.status == 200){
window.location = params['state']
}
else if(req.status == 400) {
alert('There was an error processing the token.')
}
else {
alert('something else other than 200 was returned')
}
}
};
req.send(null);

This code sends the parameters received on the fragment to the server using XMLHttpRequest and writes the access token to local storage in the browser. The latter is an optional step, and depends on whether or not the application requires other JavaScript code to make calls to the Imgur API. Also note that this code sends the parameters to the token endpoint, and they are sent over an HTTPS channel.

Error Response

The Imgur API returns an error if the user did not grant your application the permissions it requested. The error is returned to the application in the query string parameter error if the web server flow is used. If the user agent flow was used, then the error is returned in the fragment. If the state parameter was included in the request, it is also present in the error response.

An example error response for the web server flow is shown below:

https://example.com/oauthcallback?error=access_denied

Making your requests

Congrats! You must have the user's access_token at this point and you're ready to start making API requests to their account. All that's required for this is to set the header in your requests:

Authorization: Bearer YOUR_ACCESS_TOKEN

Refresh Tokens

If a user has authorized their account but you no longer have a valid access_token for them, then a new one can be generated by using the refresh_token.

When your application receives a refresh token, it is important to store that refresh token for future use. If your application loses the refresh token, you will have to prompt the user for their login information again.

To obtain a new access token, your application performs a POST to https://api.imgur.com/oauth2/token. The request must include the following parameters to use a refresh token:

Field Description
refresh_token The refresh token returned from the authorization code exchange
client_id The client_id obtained during application registration
client_secret The client secret obtained during application registration
grant_type As defined in the OAuth2 specification, this field must contain a value of: refresh_token

As long as the user has not revoked the access granted to your application, the response includes a new access token. A response from such a request is shown below:

{
    "access_token":"5c3118ebb73fbb275945ab340be60b610a3216d6",
    "refresh_token":"d36b474c95bb9ee54b992c7c34fffc2cc343d0a7",
    "expires_in":3600,
    "token_type":"Bearer",
    "account_username":"saponifi3d"
}

More OAuth 2 help and documentation

For more information about how to use OAuth 2, please visit the great documentation from Google. At the time of writing, our OAuth 2 server is completely compatible with theirs. The documentation may be found here: https://developers.google.com/accounts/docs/OAuth2

Performance Tips

Below are a few ways you can speed up your application's use of the Imgur API.

If you have any additional feature requests, please reach out on Twitter @imgurAPI!

ETag Support

The Imgur API supports ETags, which allows the API to signal to developers whether or not data from previous queries have changed.

Usage:

  1. When fetching from the Imgur API, the response header will include an ETag with a digest of the response data. Save this ETag value for future requests to the same route.

    An example ETag response header:

    ETag: "a695f4e9672bf7fc7a779ac12ead684d72292506"

  2. On the next request to the same route, include a If-None-Match header in the request with the ETag from the first step. (Note: the quotations around the hash must be included)

    An example ETag request header:

    If-None-Match: "a695f4e9672bf7fc7a779ac12ead684d72292506"

  3. If the data hasn't changed, the response status code will be 304 (Not Modified) and no data will be returned.

  4. If the response data has changed since the last request, the data is returned normally with a new ETag in the response header. Save this value for future requests.

    Note: Although ETags help speed up your application, requests with the If-None-Match header will still count towards rate limits.

API Deprecation

When an API endpoint is scheduled for deprecation the following actions will be taken:

  1. The endpoint documentation will be marked as deprececated and a migration plan will be added.
  2. The endpoint will have a Sunset header (Sunset HTTP Header) added to incidate the last date the endpoint should be relied upon.
  3. A email will be sent to active third party developers notifing of the deprecation.
  4. A entry to the API changelog table will be added.

When the Sunset date has passed followup email will be sent to active third party developers notifing of the deprecation.

API Changelog

Date Introduced Available Until Endpoint

Additional Information

If you have questions that aren't answered here, the support page provides details on how to get help.

Account

POST

Generate Access Token

https://api.imgur.com/oauth2/token

Given a user's refresh token, this endpoint generates an access token.

Bodyformdata
refresh_token
{{refreshToken}}

The refresh token returned from the authorization code exchange

client_id
{{clientId}}

The client_id obtained during application registration

client_secret
{{clientSecret}}

The client secret obtained during application registration

grant_type
refresh_token

As defined in the OAuth2 specification, this field must contain a value of: refresh_token



Example Request
Generate Access Token
curl --location --request POST 'https://api.imgur.com/oauth2/token' \
--form 'refresh_token="{{refreshToken}}"' \
--form 'client_id="{{clientId}}"' \
--form 'client_secret="{{clientSecret}}"' \
--form 'grant_type="refresh_token"'
GET

Account Base

https://api.imgur.com/3/account/{{username}}

Request standard user information. If you need the username for the account that is logged in, it is returned in the request for an access token. Note: This endpoint also supports the ability to lookup account base info by account ID. To do so, pass the query parameter account_id.

Response Model: Account

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Sample Response
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}' \
--header 'Authorization: Client-ID {{clientId}}'
Example Response
200 OK
Body
Header(27)
View More
{
  "data": {
    "id": 48437714,
    "url": "ghostinspector",
    "bio": null,
    "avatar": null,
    "reputation": 0,
    "reputation_name": "Neutral",
    "created": 1481839668,
    "pro_expiration": false,
    "user_follow": {
GET

Account Block Status

https://api.imgur.com/account/v1/{{username}}/block

Determine if the user making the request has blocked a username.

Response:

{
  "data": {
    "blocked": boolean
  }
}

HEADERS
Authorization
Bearer {{accessToken}}
Accept
application/vnd.api+json
Bodyformdata


Example Request
Sample Response
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}' \
--header 'Authorization: Client-ID {{clientId}}'
Example Response
200 OK
Body
Header(27)
View More
{
  "data": {
    "id": 48437714,
    "url": "ghostinspector",
    "bio": null,
    "avatar": null,
    "reputation": 0,
    "reputation_name": "Neutral",
    "created": 1481839668,
    "pro_expiration": false,
    "user_follow": {
GET

Account Blocks

https://api.imgur.com/3/account/me/block

List all accounts being blocked,

Response:

View More
{
  "data": {
    "items": [
      {
        "url": "officialimguraffe"
      }
    ],
    "next": null
  },
  "success": true,
  "status": 200
}

HEADERS
Authorization
Bearer {{accessToken}}
Accept
application/vnd.api+json
Bodyformdata


Example Request
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}' \
--header 'Authorization: Client-ID {{clientId}}'
Example Response
200 OK
Body
Header(27)
View More
{
  "data": {
    "id": 48437714,
    "url": "ghostinspector",
    "bio": null,
    "avatar": null,
    "reputation": 0,
    "reputation_name": "Neutral",
    "created": 1481839668,
    "pro_expiration": false,
    "user_follow": {
POST

Account Block Create

https://api.imgur.com/account/v1/{{username}}/block

Block a user.

Response:

{
  "data": {
    "blocked": boolean
  }
}

HEADERS
Authorization
Bearer {{accessToken}}
Accept
application/vnd.api+json
Bodyformdata


Example Request
Sample Response
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}' \
--header 'Authorization: Client-ID {{clientId}}'
Example Response
200 OK
Body
Header(27)
View More
{
  "data": {
    "id": 48437714,
    "url": "ghostinspector",
    "bio": null,
    "avatar": null,
    "reputation": 0,
    "reputation_name": "Neutral",
    "created": 1481839668,
    "pro_expiration": false,
    "user_follow": {
DEL

Account Block Delete

https://api.imgur.com/account/v1/{{username}}/block

Unblock a user.

Response:

{
  "data": {
    "blocked": boolean
  }
}

HEADERS
Authorization
Bearer {{accessToken}}
Accept
application/vnd.api+json
Bodyformdata


Example Request
Sample Response
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}' \
--header 'Authorization: Client-ID {{clientId}}'
Example Response
200 OK
Body
Header(27)
View More
{
  "data": {
    "id": 48437714,
    "url": "ghostinspector",
    "bio": null,
    "avatar": null,
    "reputation": 0,
    "reputation_name": "Neutral",
    "created": 1481839668,
    "pro_expiration": false,
    "user_follow": {
GET

Account Images

https://api.imgur.com/3/account/me/images

To make requests for the current account, you may use me as the {{username}} parameter. For example, https://api.imgur.com/3/account/me/images will request all the images for the account that is currently authenticated.

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Account Images
curl --location --request GET 'https://api.imgur.com/3/account/me/images' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Account Gallery Favorites

https://api.imgur.com/3/account/{{username}}/gallery_favorites/{{page}}/{{favoritesSort}}

Return the images the user has favorited in the gallery.

Response Model: Gallery Image OR Gallery Album

Parameters

Key Required Description
page optional integer - allows you to set the page number so you don't have to retrieve all the data at once.
favoriteSort optional oldest, or newest. Defaults to newest.
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Account Gallery Favorites
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/gallery_favorites/{{page}}/{{favoritesSort}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Account Favorites

https://api.imgur.com/3/account/{{username}}/favorites/{{page}}/{{favoritesSort}}

Returns the users favorited images, only accessible if you're logged in as the user.

Response Model: Gallery Image OR Gallery Album

Note: vote data ('ups', 'downs', and 'score') may be null if the favorited item hasn't been submitted to gallery

Parameters

Key Required Description
page optional integer - allows you to set the page number so you don't have to retrieve all the data at once.
sort optional 'oldest', or 'newest'. Defaults to 'newest'.
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Account Favorites
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/favorites/{{page}}/{{favoritesSort}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Account Submissions

https://api.imgur.com/3/account/{{username}}/submissions/{{page}}

Return the images a user has submitted to the gallery. You can add sorting as well after paging. Sorts can be: newest (default), oldest, worst, best.

Response Model: Gallery Image OR Gallery Album

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Account Submissions
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/submissions/{{page}}/{{sort}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Account Available Avatars (Un-authed / Authed)

https://api.imgur.com/3/account/{{username}}/available_avatars

If unauthentiated, get list of default trophies a user can select from. The username need not exist to get the listing.

If authenticated, get the list of available avatars for the given user.

HEADERS
Authorization
Client-ID {{clientId}}

If unauthenticated, send the Client-ID

Authorization
Bearer {{accessToken}}

If authenticated send the bearer token

Bodyformdata


Example Request
Account Available Avatars (Un-authed / Authed)
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/available_avatars' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Account Avatar (Authed)

https://api.imgur.com/3/account/{{username}}/avatar

Get the current account's avatar URL and avatar name.

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Account Avatar (Authed)
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/avatar' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Account Settings

https://api.imgur.com/3/account/me/settings

Returns the account settings, only accessible if you're logged in as the user.

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Account Settings
curl --location --request GET 'https://api.imgur.com/3/account/me/settings' \
--header 'Authorization: Bearer {{accessToken}}'
PUT

Change Account Settings

https://api.imgur.com/3/account/{{username}}/settings

Updates the account settings for a given user, the user must be logged in.

Response Model: Basic

Parameters

View More
Key Required Description
bio optional The biography of the user, is displayed in the gallery profile page.
public_images optional Set the users images to private or public by default
messaging_enabled optional true | false - Allows the user to enable / disable private messages
album_privacy optional (deprecated) public | hidden | secret - Sets the default privacy level of albums the users creates
accepted_gallery_terms optional true | false - The user agreement to the Imgur Gallery terms.
username optional A valid Imgur username (between 4 and 63 alphanumeric characters)
show_mature optional true | false - Toggle display of mature images in gallery list endpoints.
newsletter_subscribed optional true | false - Toggle subscription to email newsletter.
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
bio
Long time lurker...
public_images
false
messaging_enabled
true
album_privacy
public

(deprecated)

accepted_gallery_terms
true
username
ImgurUser
show_mature
true
newsletter_subscribed
true
avatar
flavor/taco

See Account Available Avatars for possible values



Example Request
Change Account Settings
curl --location -g --request PUT 'https://api.imgur.com/3/account/{{username}}/settings' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Account Gallery Profile

https://api.imgur.com/3/account/{{username}}/settings

Returns the totals for the gallery profile.

Response Model: Gallery Profile

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Account Gallery Profile
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/settings' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Verify User's E-mail

https://api.imgur.com/3/account/{{username}}/verifyemail

Checks to see if user has verified their email address.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Verify User's E-mail
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/verifyemail' \
--header 'Authorization: Bearer {{accessToken}}'
POST

Send Verification E-mail

https://api.imgur.com/3/account/{{username}}/verifyemail

Sends an email to the user to verify that their email is valid to upload to gallery. Must be logged in as the user to send.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Send Verification E-mail
curl --location -g --request POST 'https://api.imgur.com/3/account/{{username}}/verifyemail' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Albums (Un-Authed / Authed)

https://api.imgur.com/3/account/{{username}}/albums/{{page}}

Get all the albums associated with the account. Must be logged in as the user to see secret and hidden albums.

Response Model: Album

Parameters

Key Required Description
page optional integer - allows you to set the page number so you don't have to retrieve all the data at once.
HEADERS
Authorization
Client-ID {{clientId}}
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Albums (Un-Authed / Authed)
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/albums/{{page}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Album

https://api.imgur.com/3/account/{{username}}/album/{{albumHash}}

Get additional information about an album, this endpoint works the same as the Album Endpoint. You can also use any of the additional routes that are used on an album in the album endpoint.

Response Model: Album

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Album
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/album/{{albumHash}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Album IDs (Un-Authed / Authed)

https://api.imgur.com/3/account/{{username}}/albums/ids/{{page}}

Return an array of all of the album IDs (hashes).

Response Model: Basic

HEADERS
Authorization
Client-ID {{clientId}}
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Album IDs (Un-Authed / Authed)
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/albums/ids/{{page}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Album Count (Un-Authed / Authed)

https://api.imgur.com/3/account/{{username}}/albums/count

Return the total number of albums associated with the account.

Response Model: Basic

HEADERS
Authorization
Client-ID {{clientId}}
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Album Count (Un-Authed / Authed)
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/albums/count' \
--header 'Authorization: Client-ID {{clientId}}'
DEL

Album Deletion

https://api.imgur.com/3/account/{{username}}/album/{{albumHash}}

Delete an Album with a given id.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Album Deletion
curl --location -g --request DELETE 'https://api.imgur.com/3/account/{{username}}/album/{{albumHash}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Comments

https://api.imgur.com/3/account/{{username}}/comments/{{commentSort}}/{{page}}

Return the comments the user has created.

Response Model: Comment

Parameters

Key Required Value
commentSort optional best, worst, oldest, or newest. Defaults to newest.
page optional Page number (50 items per page). Defaults to 0.
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Comments
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/comments/{{commentSort}}/{{page}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Comment

https://api.imgur.com/3/account/{{username}}/comment/{{commentId}}

Return information about a specific comment. This endpoint works the same as the Comment Endpoint. You can use any of the additional actions that the comment endpoint allows on this end point.

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Comment
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/comment/{{commentId}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Comment IDs

https://api.imgur.com/3/account/{{username}}/comments/ids/{{sort}}/{{page}}

Return an array of all of the comment IDs.

Response Model: Basic

Parameters

Key Required Value
commentSort optional best, worst, oldest, or newest. Defaults to newest.
page optional Page number (50 items per page). Defaults to 0.
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Comment IDs
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/comments/ids/{{sort}}/{{page}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Comment Count

https://api.imgur.com/3/account/{{username}}/comments/count

Return a count of all of the comments associated with the account.

Response Model: Basic

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Comment Count
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/comments/count' \
--header 'Authorization: Client-ID {{clientId}}'
DEL

Comment Deletion

https://api.imgur.com/3/account/{{username}}/comment/{{commentId}}

Delete a comment. You are required to be logged in as the user whom created the comment.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Comment Deletion
curl --location -g --request DELETE 'https://api.imgur.com/3/account/{{username}}/comment/{{commentId}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Images

https://api.imgur.com/3/account/{{username}}/images/{{page}}

Return all of the images associated with the account. You can page through the images by setting the page, this defaults to 0.

Response Model: Image

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Images
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/images/{{page}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Image

https://api.imgur.com/3/account/{{username}}/image/{{imageId}}

Return information about a specific image. This endpoint works the same as the Image Endpoint. You can use any of the additional actions that the image endpoint with this endpoint.

Response Model: Image

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Image
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/image/{{imageId}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Image IDs

https://api.imgur.com/3/account/{{username}}/images/ids/{{page}}

Returns an array of Image IDs that are associated with the account.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Image IDs
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/images/ids/{{page}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Image Count

https://api.imgur.com/3/account/{{username}}/images/count

Returns the total number of images associated with the account.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Image Count
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/images/count' \
--header 'Authorization: Bearer {{accessToken}}'
DEL

Image Deletion

https://api.imgur.com/3/account/{{username}}/image/{{deleteHash}}

Deletes an Image. This requires a delete hash rather than an ID.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Image Deletion
curl --location -g --request DELETE 'https://api.imgur.com/3/account/{{username}}/image/{{deleteHash}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Replies

https://api.imgur.com/3/account/{{username}}/notifications/replies

Returns all of the reply notifications for the user. Required to be logged in as that user.

Response Model: Notification

Parameters

Key Required Value
new optional boolean - false for all notifications, true for only non-viewed notification. Default is true.
Bodyformdata


Example Request
Replies
curl --location -g --request GET 'https://api.imgur.com/3/account/{{username}}/notifications/replies'
POST

Follow Tag

https://api.imgur.com/3/account/me/follow/tag/{{tagName}}

Follows the {{tagName}} specified for the currently logged in user.

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
curl --location --request POST 'https://api.imgur.com/3/account/me/follow/tag/funny' \
--header 'Authorization: Bearer {{bearerToken}}'
Example Response
200 OK
Body
Header(28)
{
  "data": true,
  "success": true,
  "status": 200
}
DEL

Unfollow tag

https://api.imgur.com/3/account/me/follow/tag/{{tagName}}

Unfollows the {{tagName}} specified for the currently logged in user.

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
curl --location --request DELETE 'https://api.imgur.com/3/account/me/follow/tag/funny' \
--header 'Authorization: Bearer {{bearerToken}}'
Example Response
409 Conflict
Body
Header(18)
{
  "data": {
    "error": "Not following tag",
    "request": "/3/account/me/follow/tag/funny",
    "method": "DELETE"
  },
  "success": false,
  "status": 409
}
POST

Account Delete (me)

https://{{hostname}}/3/account/me/delete?client_id={{clientId}}

Delete the account of the auth'd user with delete feedback.

note: password is left blank to avoid accidental account deletion, to delete account you must add account password to body.

HEADERS
Content-Type
application/json
Authorization
Bearer {{accessToken}}
PARAMS
client_id
{{clientId}}
BODYraw
{
	"password": "",
	"reasons": [
		"Reason #1",
		"Reason #2"
	],
	"feedback": "MOAR CATGIFS"
}


Example Request
Account Delete (me)
View More
curl --location -g --request POST 'https://{{hostname}}/3/account/me/delete?client_id={{clientId}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{accessToken}}' \
--data-raw '{
	"password": "",
	"reasons": [
		"Reason #1",
		"Reason #2"
	],
	"feedback": "MOAR CATGIFS"
}'

Comment

GET

Comment

https://api.imgur.com/3/comment/{{commentId}}

Get information about a specific comment.

Response Model: Comment

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Comment
curl --location -g --request GET 'https://api.imgur.com/3/comment/{{commentId}}' \
--header 'Authorization: Client-ID {{clientId}}'
POST

Comment Creation

https://api.imgur.com/3/comment

Creates a new comment, returns the ID of the comment.

Response Model: Basic

Parameters

Key Required Description
image_id required The ID of the image or album in the gallery that you wish to comment on
comment required The comment text, this is what will be displayed
parent_id optional The ID of the parent comment, this is an alternative method to create a reply.
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
image_id
{{imageHash}}
image_id
{{albumHash}}
comment
I'm a giraffe!
parent_id
{{commentId}}


Example Request
Comment Creation
curl --location --request POST 'https://api.imgur.com/3/comment' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'image_id="{{imageHash}}"' \
--form 'comment="I'\''m a giraffe!"'
DEL

Comment Deletion

https://api.imgur.com/3/comment/{{commentId}}

Delete a comment by the given id.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Comment Deletion
curl --location -g --request DELETE 'https://api.imgur.com/3/comment/{{commentId}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Replies

https://api.imgur.com/3/comment/{{commentId}}/replies

Get the comment with all of the replies for the comment.

Response Model: Comment

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Replies
curl --location -g --request GET 'https://api.imgur.com/3/comment/{{commentId}}/replies' \
--header 'Authorization: Client-ID {{clientId}}'
POST

Reply Creation

https://api.imgur.com/3/comment/{{commentId}}

Create a reply for the given comment.

Response Model: Basic

Parameters

Key Required Description
image_id required The ID of the image or album in the gallery that you wish to comment on
comment required The comment text, this is what will be displayed
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
image_id
{{imageHash}}
image_id
{{albumHash}}
comment
I'm a giraffe!


Example Request
Reply Creation
curl --location -g --request POST 'https://api.imgur.com/3/comment/{{commentId}}' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'image_id="{{imageHash}}"' \
--form 'comment="I'\''m a giraffe!"'
POST

Vote

https://api.imgur.com/3/comment/{{commentId}}/vote/{{vote}}

Vote on a comment. The vote parameter can only be set as up, down, or veto.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Vote
curl --location -g --request POST 'https://api.imgur.com/3/comment/{{commentId}}/vote/{{vote}}' \
--header 'Authorization: Bearer {{accessToken}}'
POST

Report

https://api.imgur.com/3/comment/{{commentId}}/report

Report a comment for being inappropriate.

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
reason
{{commentReportReason}}

Optional. An integer representing the reason for the report

Value Description
1 Doesn't belong on Imgur
2 Spam
3 Abusive
4 Mature content not marked as mature
5 Pornography


Example Request
Report
curl --location -g --request POST 'https://api.imgur.com/3/comment/{{commentId}}/report' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'reason="{{commentReportReason}}"'

Album

There are two methods of sending the image ids, one way is by sending an array of images, this is denoted by []'s. Everywhere you see ids[], it's also an option to send a string of ids that is comma delineated. For example: ids=aaaaa,bbbbb,ccccc is the same as sending ids[]=aaaaa&ids[]=bbbbb&ids[]=ccccc.

GET

Album

https://api.imgur.com/3/album/{{albumHash}}

Get additional information about an album.

Response Model: Album

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Album
curl --location -g --request GET 'https://api.imgur.com/3/album/{{albumHash}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Album Images

https://api.imgur.com/3/album/{{albumHash}}/images

Return all of the images in the album.

Response Model: Image

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Album Images
curl --location -g --request GET 'https://api.imgur.com/3/album/{{albumHash}}/images' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Album Image

https://api.imgur.com/3/album/{{albumHash}}/image/{{imageHash}}

Get information about an image in an album, any additional actions found in Image Endpoint will also work.

Response Model: Image

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Album Image
curl --location -g --request GET 'https://api.imgur.com/3/album/{{albumHash}}/image/{{imageHash}}' \
--header 'Authorization: Client-ID {{clientId}}'
POST

Album Creation (Un-Authed / Authed)

https://api.imgur.com/3/album

Create a new album. Optional parameter of ids[] is an array of image ids to add to the album. If uploading anonymous images to an anonymous album please use the optional parameter of deletehashes[] rather than ids[]. Note: including the optional deletehashes[] parameter will also work for authenticated user albums. There is no need to duplicate image ids with their corresponding deletehash.

This method is available without authenticating an account, and may be used merely by sending "Authorization: Client-ID {client_id}" in the request headers. Doing so will create an anonymous album which is not tied to an account.

Response Model: Basic

Parameters

Key Required Description
ids[] optional The image ids that you want to be included in the album.
deletehashes[] optional The deletehashes of the images that you want to be included in the album.
title optional The title of the album
description optional The description of the album
privacy optional (deprecated) Sets the privacy level of the album. Values are : public | hidden | secret. Defaults to user's privacy settings for logged in users.
layout optional (deprecated) Sets the layout to display the album. Values are : blog | grid | horizontal | vertical
cover optional The ID of an image that you want to be the cover of the album
HEADERS
Authorization
Client-ID {{clientId}}

Use this header if performing this action anonymously.

Authorization
Bearer {{accessToken}}

Use this header if performing this action as a logged-in user.

Bodyformdata
ids[]
{{imageHash}}

The image ids that you want to be included in the album.

ids[]
{{imageHash2}}

any additional image ids...

deletehashes[]
{{deleteHash}}

The deletehashes of the images that you want to be included in the album.

deletehashes[]
{{deleteHash2}}

any additional deletehashes...

title
My dank meme album

The title of the album

description
This albums contains a lot of dank memes. Be prepared.

The description of the album

privacy
public

(deprecated) Sets the privacy level of the album. Values are : public | hidden | secret. Defaults to user's privacy settings for logged in users.

cover
{{imageHash}}

The ID of an image that you want to be the cover of the album



Example Request
Album Creation (Un-Authed / Authed)
curl --location --request POST 'https://api.imgur.com/3/album' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'ids[]="{{imageHash}}"' \
--form 'title="My dank meme album"' \
--form 'description="This albums contains a lot of dank memes. Be prepared."' \
--form 'cover="{{imageHash}}"'
PUT

Update Album (Un-Authed / Authed)

https://api.imgur.com/3/album/{{albumHash}}

Update the information of an album. For anonymous albums, albumHash should be the deletehash that is returned at creation.

If uploading anonymous images to an anonymous album please use the optional parameter of deletehashes[] rather than ids[]. Note: including the optional deletehashes[] parameter will also work for authenticated user albums. There is no need to duplicate image ids with their corresponding deletehash.

Response Model: Basic

Parameters

Key Required Description
ids[] optional The image ids that you want to be included in the album.
deletehashes[] optional The deletehashes of the images that you want to be included in the album.
title optional The title of the album
description optional The description of the album
privacy optional (deprecated) Sets the privacy level of the album. Values are : public | hidden | secret. Defaults to user's privacy settings for logged in users.
layout optional (deprecated) Sets the layout to display the album. Values are : blog | grid | horizontal | vertical
cover optional The ID of an image that you want to be the cover of the album
HEADERS
Authorization
Client-ID {{clientId}}

Use this header if performing this action anonymously.

Authorization
Bearer {{accessToken}}

Use this header if performing this action as a logged-in user.

Bodyformdata
ids[]
{{imageHash}}

Optional. The image ids that you want to be included in the album.

ids[]
{{image2Hash}}

any additional image ids...

deletehashes
{{deleteHash}}

Optional. The deletehashes of the images that you want to be included in the album.

title
My dank meme album

Optional. The title of the album

description
This album contains a lot of dank memes. Be prepared.

Optional. The description of the album

privacy
public

(deprecated) Optional. Sets the privacy level of the album. Values are : public | hidden | secret. Defaults to user's privacy settings for logged in users.

cover
{{imageHash}}

Optional. The ID of an image that you want to be the cover of the album



Example Request
Update Album (Un-Authed / Authed)
curl --location -g --request PUT 'https://api.imgur.com/3/album/{{albumHash}}' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'deletehashes="{{deleteHash}}"' \
--form 'title="My dank meme album"' \
--form 'description="This album contains a lot of dank memes. Be prepared."' \
--form 'cover="{{imageHash}}"'
DEL

Album Deletion (Un-Authed)

https://api.imgur.com/3/album/{{albumDeleteHash}}

Delete an album with a given deletehash.

Response Model: Basic

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Album Deletion (Un-Authed)
curl --location -g --request DELETE 'https://api.imgur.com/3/album/{{albumDeleteHash}}' \
--header 'Authorization: Client-ID {{clientId}}'
DEL

Album Deletion (Authed)

https://api.imgur.com/3/album/{{albumHash}}

Delete an album with a given ID. You are required to be logged in as the user to delete the album.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Album Deletion (Authed)
curl --location -g --request DELETE 'https://api.imgur.com/3/album/{{albumHash}}' \
--header 'Authorization: Bearer {{accessToken}}'
POST

Favorite Album

https://api.imgur.com/3/album/{{albumHash}}/favorite

Favorite an album with a given ID. The user is required to be logged in to favorite the album.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Favorite Album
curl --location -g --request POST 'https://api.imgur.com/3/album/{{albumHash}}/favorite' \
--header 'Authorization: Bearer {{accessToken}}'
POST

Set Album Images (Un-Authed)

https://api.imgur.com/3/album/{{albumDeleteHash}}

Sets the images for an album, removes all other images and only uses the images in this request.

Response Model: Basic

Parameters

Key Required Description
deletehashes[] required The image deletehashes that you want to be added to the album.
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata
deletehashes[]
{{imageDeleteHash}}
deletehashes[]
{{imageDeleteHash2}}


Example Request
Set Album Images (Un-Authed)
curl --location -g --request POST 'https://api.imgur.com/3/album/{{albumDeleteHash}}' \
--header 'Authorization: Client-ID {{clientId}}' \
--form 'deletehashes[]="{{imageDeleteHash}}"' \
--form 'deletehashes[]="{{imageDeleteHash2}}"'
POST

Set Album Images (Authed)

https://api.imgur.com/3/album/{{albumHash}}

Sets the images for an album, removes all other images and only uses the images in this request. You must include either ids[] or deletehashes[].

Response Model: Basic

Parameters

Key Required Description
ids[] optional The image ids that you want to be added to the album.
deletehashes[] optional The image deletehashes that you want to be added to the album.
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
ids[]
{{imageHash}}
ids[]
{{imageHash2}}


Example Request
Set Album Images (Authed)
curl --location -g --request POST 'https://api.imgur.com/3/album/{{albumHash}}' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'ids[]="{{imageHash}}"' \
--form 'ids[]="{{imageHash2}}"'
POST

Add Images to an Album (Un-Authed)

https://api.imgur.com/3/album/{{albumDeleteHash}}/add

Takes parameter, deletehashes[], as an array of deletehashes to add to the album. Alternatively, the deletehashes parameter can take a comma delimted string of deletehashes.

Response Model: Basic

Parameters

Key Required Description
deletehashes[] required The image deletehashes that you want to be added to the album. The [] represents the ability to use this variable as an array.
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata
deletehashes[]
{{imageDeleteHash}}
deletehashes[]
{{imageDeleteHash2}}


Example Request
Add Images to an Album (Un-Authed)
curl --location -g --request POST 'https://api.imgur.com/3/album/{{albumDeleteHash}}/add' \
--header 'Authorization: Client-ID {{clientId}}' \
--form 'deletehashes[]="{{imageDeleteHash}}"' \
--form 'deletehashes[]="{{imageDeleteHash2}}"'
POST

Add Images to an Album (Authed)

https://api.imgur.com/3/album/{{albumHash}}/add

Adds the images to an album. You must specify ids[] or deletehashes[] in order to add an image to an album.

Response Model: Basic

Parameters

Key Required Description
ids[] optional The image ids that you want to be added to the album.
deletehashes[] optional The image deletehashes that you want to be added to the album.
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
ids[]
{{imageHash}}
ids[]
{{imageHash2}}


Example Request
Add Images to an Album (Authed)
curl --location -g --request POST 'https://api.imgur.com/3/album/{{albumHash}}/add' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'ids[]="{{imageHash}}"' \
--form 'ids[]="{{imageHash2}}"'
POST

Remove Images from an Album (Un-Authed)

https://api.imgur.com/3/album/{{albumDeleteHash}}/remove_images

Takes parameter, ids[], as an array of ids and removes from the album.

Response Model: Basic

Parameters

Key Required Description
ids[] required The image ids that you want to be removed from the album.
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata
ids[]
{{imageHash}}
ids[]
{{imageHash2}}


Example Request
Remove Images from an Album (Un-Authed)
curl --location -g --request POST 'https://api.imgur.com/3/album/{{albumDeleteHash}}/remove_images' \
--header 'Authorization: Client-ID {{clientId}}' \
--form 'ids[]="{{imageHash}}"' \
--form 'ids[]="{{imageHash2}}"'
POST

Remove Images from an Album (Authed)

https://api.imgur.com/3/album/{{albumHash}}/remove_images

Takes parameter, ids[], as an array of ids and removes from the album.

Response Model: Basic

Parameters

Key Required Description
ids[] required The image ids that you want to be removed from the album.
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
ids[]
{{imageHash}}
ids[]
{{imageHash2}}


Example Request
Remove Images from an Album (Authed)
curl --location -g --request POST 'https://api.imgur.com/3/album/{{albumHash}}/remove_images' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'ids[]="{{imageHash}}"' \
--form 'ids[]="{{imageHash2}}"'

Gallery

Due to caching limitations of Imgur, it's not possible to change the result size of the gallery resources.

GET

Gallery

https://api.imgur.com/3/gallery/{{section}}/{{sort}}/{{window}}/{{page}}?showViral={{showViral}}&mature={{showMature}}&album_previews={{albumPreviews}}
Key Required Value
section optional hot | top | user. Defaults to hot
sort optional viral | top | time | rising (only available with user section). Defaults to viral
page optional integer - the data paging number
window optional Change the date range of the request if the section is top. Accepted values are day | week | month | year | all. Defaults to day
HEADERS
Authorization
Client-ID {{clientId}}
PARAMS
showViral
{{showViral}}

Optional. true | false - Show or hide viral images from the user section. Defaults to true

mature
{{showMature}}

Optional. true | false - Show or hide mature (nsfw) images in the response section. Defaults to false NOTE: This parameter is only required if un-authed. The response for authed users will respect their account setting.

album_previews
{{albumPreviews}}

Optional. true | false - Include image metadata for gallery posts which are albums

Bodyformdata


Example Request
Gallery
curl --location -g --request GET 'https://api.imgur.com/3/gallery/{{section}}/{{sort}}/{{window}}/{{page}}?showViral={{showViral}}&mature={{showMature}}&album_previews={{albumPreviews}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Subreddit Galleries

https://api.imgur.com/3/gallery/r/{{subreddit}}/{{sort}}/{{window}}/{{page}}

View gallery images for a subreddit

Key Required Value
subreddit required pics - A valid subreddit name
sort optional time | top - defaults to time
page optional integer - the data paging number
window optional Change the date range of the request if the sort is "top". Options are day | week | month | year | all. Defaults to week
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Sample Response
curl --location -g --request GET 'https://api.imgur.com/3/gallery/r/{{subreddit}}/{{sort}}/{{window}}/{{page}}' \
--header 'Authorization: Client-ID {{clientId}}'
Example Response
200 OK
Body
Header(22)
View More
{
  "data": [
    {
      "id": "QJa0R6q",
      "title": "Shiprock - New Mexico [OC][1080x644]",
      "description": null,
      "datetime": 1493611803,
      "type": "image/jpeg",
      "animated": false,
      "width": 1080,
      "height": 644,
GET

Subreddit Image

https://api.imgur.com/3/gallery/r/{{subreddit}}/{{subredditImageId}}

View a single image in the subreddit

Key Required Value
subreddit required A valid subreddit name, ie earthporn
image_id required The ID for the image.
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Sample Response
curl --location -g --request GET 'https://api.imgur.com/3/gallery/r/{{subreddit}}/{{subredditImageId}}' \
--header 'Authorization: Client-ID {{clientId}}'
Example Response
200 OK
Body
Header(22)
View More
{
  "data": {
    "id": "QJa0R6q",
    "title": "Shiprock - New Mexico [OC][1080x644]",
    "description": null,
    "datetime": 1493611803,
    "type": "image/jpeg",
    "animated": false,
    "width": 1080,
    "height": 644,
    "size": 86174,
GET

Gallery Tag

https://api.imgur.com/3/gallery/t/{{tagName}}/{{sort}}/{{window}}/{{page}}

Returns tag metadata, and posts tagged with the tagName provided

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Gallery Tag
curl --location -g --request GET 'https://api.imgur.com/3/gallery/t/{{tagName}}/{{sort}}/{{window}}/{{page}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Gallery Tags

https://api.imgur.com/3/tags

Gets a list of default tags

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
default
curl --location --request GET 'https://api.imgur.com/3/tags' \
--header 'Authorization: Client-ID {{clientId}}'
Example Response
200 OK
Body
Header(22)
View More
{
  "data": {
    "tags": [
      {
        "id": "32179",
        "name": "embroidery",
        "display_name": "embroidery",
        "followers": 0,
        "total_items": 270,
        "background_hash": "iPuYto5"
      },
GET

Gallery Tag Info

https://api.imgur.com/3/gallery/tag_info/{{tagName}}

Gets metadata about a tag

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Sample Response
curl --location -g --request GET 'https://api.imgur.com/3/gallery/tag_info/{{tagName}}' \
--header 'Authorization: Client-ID {{clientId}}'
Example Response
200 OK
Body
Header(22)
View More
{
  "data": {
    "name": "the_more_you_know",
    "display_name": "the more you know",
    "followers": 76,
    "total_items": 369594,
    "following": false,
    "background_hash": "EpmW3Oy",
    "is_promoted": false,
    "description": "",
    "logo_hash": null,
GET

Gallery Item Tags

https://api.imgur.com/3/gallery/{{galleryHash}}/tags
Key Required Value
id required ID of the gallery item
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Gallery Item Tags
curl --location -g --request GET 'https://api.imgur.com/3/gallery/{{galleryHash}}/tags' \
--header 'Authorization: Client-ID {{clientId}}'
POST

Update Gallery Item Tags

https://api.imgur.com/3/gallery/tags/{{galleryHash}}

Update the tags for a post in the gallery

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
id
{{galleryHash}}

Required. ID of the gallery item

tags
funny,cats

Required. The name of the tags you wish to associate with a post. Can be passed as tags[]=funny&tags[]=cat or tags=funny,cat



Example Request
Update Gallery Item Tags
curl --location -g --request POST 'https://api.imgur.com/3/gallery/tags/{{galleryHash}}' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'id="{{galleryHash}}"' \
--form 'tags="funny,cats"'
GET

Gallery Search

https://api.imgur.com/3/gallery/search/{{sort}}/{{window}}/{{page}}?q=cats

Search the gallery with a given query string.

Parameters

Key Required Value
sort optional time | viral | top - defaults to time
window optional Change the date range of the request if the sort is 'top', day | week | month | year | all, defaults to all.
page optional integer - the data paging number

Simple Search Query Parameters

Key Value
q Query string (note: if advanced search parameters are set, this query string is ignored). This parameter also supports boolean operators (AND, OR, NOT) and indices (tag: user: title: ext: subreddit: album: meme:). An example compound query would be 'title: cats AND dogs ext: gif'

Advanced Search Query Parameters

Key Value
q_all Search for all of these words (and)
q_any Search for any of these words (or)
q_exactly Search for exactly this word or phrase
q_not Exclude results matching this
q_type Show results for any file type, jpg | png | gif | anigif (animated gif) | album
q_size_px Size ranges, small (500 pixels square or less) | med (500 to 2,000 pixels square) | big (2,000 to 5,000 pixels square) | lrg (5,000 to 10,000 pixels square) | huge (10,000 square pixels and above)
HEADERS
Authorization
Client-ID {{clientId}}
PARAMS
q
cats
Bodyformdata


Example Request
Gallery Search
curl --location -g --request GET 'https://api.imgur.com/3/gallery/search/{{sort}}/{{window}}/{{page}}?q=cats' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Random Gallery Images

No request URL found. It will show up here once added.

DEPRECATED Returns a random set of gallery images.

Bodyformdata


Example Request
Random Gallery Images
curl --location --request GET ''
POST

Share with Community (Image)

https://api.imgur.com/3/gallery/image/{{imageHash}}

Share an Album or Image to the Gallery.

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
title
Get this cat to the front page

Required. The title of the image.

topic
Funny

Optional. Topic name

terms
1

Optional. If the user has not accepted our terms yet, this endpoint will return an error. To by-pass the terms in general simply set this value to 1.

mature
0

Optional. If the post is mature, set this value to 1.

tags
funny,cat

Optional. The name of the tags you wish to associate with a post. Can be passed as tags[]=funny&tags[]=cat or tags=funny,cat



Example Request
Share with Community (Image)
curl --location -g --request POST 'https://api.imgur.com/3/gallery/image/{{imageHash}}' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'title="Get this cat to the front page"' \
--form 'topic="Funny"' \
--form 'terms="1"' \
--form 'tags="funny,cat"'
POST

Share with Community (Album)

https://api.imgur.com/3/gallery/album/{{albumHash}}

Share an Album or Image to the Gallery.

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
title
Get this cat to the front page

Required. The title of the image.

topic
Funny

Optional. Topic name

terms
1

Optional. If the user has not accepted our terms yet, this endpoint will return an error. To by-pass the terms in general simply set this value to 1.

mature
0

Optional. If the post is mature, set this value to 1.

tags
funny,cat

Optional. The name of the tags you wish to associate with a post. Can be passed as tags[]=funny&tags[]=cat or tags=funny,cat



Example Request
Share with Community (Album)
curl --location -g --request POST 'https://api.imgur.com/3/gallery/album/{{albumHash}}' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'title="Get this cat to the front page"' \
--form 'topic="Funny"' \
--form 'terms="1"' \
--form 'mature="0"' \
--form 'tags="funny,cat"'
DEL

Remove from Gallery

https://api.imgur.com/3/gallery/{{galleryHash}}

Remove an image from the public gallery. You must be logged in as the owner of the item to do this action.

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Remove from Gallery
curl --location -g --request DELETE 'https://api.imgur.com/3/gallery/{{galleryHash}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Gallery Album

https://api.imgur.com/3/gallery/album/{{galleryHash}}

Get additional information about an album in the gallery.

Response Model: Gallery Album

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Gallery Album
curl --location -g --request GET 'https://api.imgur.com/3/gallery/album/{{galleryHash}}' \
--header 'Authorization: Client-ID {{clientId}}'
GET

Gallery Image

https://api.imgur.com/3/gallery/image/{{galleryImageHash}}

Get additional information about an image in the gallery.

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Gallery Image
curl --location -g --request GET 'https://api.imgur.com/3/gallery/image/{{galleryImageHash}}' \
--header 'Authorization: Client-ID {{clientId}}'
POST

Album / Image Reporting

https://api.imgur.com/3/gallery/image/{{galleryHash}}/report

Report an Image in the gallery

Response Model: Basic

Parameters

Key Required Description
reason optional An integer representing the reason for the report (see codes below)

Report Reason Codes

Value Description
1 Doesn't belong on Imgur
2 Spam
3 Abusive
4 Mature content not marked as mature
5 Pornography
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
reason
1


Example Request
Album / Image Reporting
curl --location -g --request POST 'https://api.imgur.com/3/gallery/image/{{galleryHash}}/report' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'reason="1"'
GET

Album / Image Votes

https://api.imgur.com/3/gallery/{{galleryHash}}/votes

Get the vote information about an image

Response Model: Vote

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Album / Image Votes
curl --location -g --request GET 'https://api.imgur.com/3/gallery/{{galleryHash}}/votes' \
--header 'Authorization: Client-ID {{clientId}}'
POST

Album / Image Voting

https://api.imgur.com/3/gallery/{{galleryHash}}/vote/{{vote}}

Vote for an image, up or down vote. Send veto to undo a vote.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Album / Image Voting
curl --location -g --request POST 'https://api.imgur.com/3/gallery/{{galleryHash}}/vote/{{vote}}' \
--header 'Authorization: Bearer {{accessToken}}'
GET

Album / Image Comments

https://api.imgur.com/3/gallery/{{galleryHash}}/comments/{{commentSort}}

Get comments on an image or album in the gallery.

galleryHash is the unique identifier of an album or image in the gallery.

commentSort is one of best | top | new - defaults to best.

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata
access_token
eyJhbGciOiJSUzI1NiIsImtpZCI6ImYwMmZkODgwOTNmNTQ2Mjg1MDY2YTNmNGQxNGNiMzBhZTZhY2MyM2YifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhdWQiOiI4NDEzNTkzNTM5ODgtcml0aWhjNDRhdjVwZGwydTBlZWticWI3NzlvaGg2Ym4uYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMDY3OTQ2NzEyMzA5MjA4NTQ0MTUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXpwIjoiODQxMzU5MzUzOTg4LThiMzVsNWFwZTFuYzdyYzR0cm9pYWpqbHRwbWI5cXFkLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJkcGFzdHVzZWtAZ21haWwuY29tIiwiaWF0IjoxNDU1MTQwMDQyLCJleHAiOjE0NTUxNDM2NDIsIm5hbWUiOiJEYW4gUGFzdHVzZWsiLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDQuZ29vZ2xldXNlcmNvbnRlbnQuY29tLy0yMXV3LVVaMmttMC9BQUFBQUFBQUFBSS9BQUFBQUFBQUZsdy9QcjVLdDdVckxaay9zOTYtYy9waG90by5qcGciLCJnaXZlbl9uYW1lIjoiRGFuIiwiZmFtaWx5X25hbWUiOiJQYXN0dXNlayIsImxvY2FsZSI6ImVuIn0.DcCxKOoMHVUBIppiJDBqLMPUoJk_FMv9RAQNl8mh7HNia3iq5jQCNIea0h3B6-akf7vxfp__b4f3N59qnOcmd4zdAYCT7zO5YubHhyeoOXENwueoTbKzexoNmZMPDZUrKqj-4sAqscHuiJmT2Nwwkdu2g8cFxI0-TpQVHAspJJJ5r_oMP45kdeRpwYV2R7Azct-vYs6QxQaQMn6_azm9Va7HckEop4my8wMoCfAbF1gDiB-JNW63QSzBFBK7SMNXOcrkssoGP3zXdfqjIdU1MK3Wx6i8zqEiV1IrI8XglvWnhIO7z0R_8AAG37DruKNg3HtGRgNtt0grE48ELnQ-zA


Example Request
Album / Image Comments
curl --location -g --request GET 'https://api.imgur.com/3/gallery/{{galleryHash}}/comments/{{commentSort}}' \
--header 'Authorization: Client-ID {{clientId}}' \
--form 'access_token="eyJhbGciOiJSUzI1NiIsImtpZCI6ImYwMmZkODgwOTNmNTQ2Mjg1MDY2YTNmNGQxNGNiMzBhZTZhY2MyM2YifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhdWQiOiI4NDEzNTkzNTM5ODgtcml0aWhjNDRhdjVwZGwydTBlZWticWI3NzlvaGg2Ym4uYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMDY3OTQ2NzEyMzA5MjA4NTQ0MTUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXpwIjoiODQxMzU5MzUzOTg4LThiMzVsNWFwZTFuYzdyYzR0cm9pYWpqbHRwbWI5cXFkLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJkcGFzdHVzZWtAZ21haWwuY29tIiwiaWF0IjoxNDU1MTQwMDQyLCJleHAiOjE0NTUxNDM2NDIsIm5hbWUiOiJEYW4gUGFzdHVzZWsiLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDQuZ29vZ2xldXNlcmNvbnRlbnQuY29tLy0yMXV3LVVaMmttMC9BQUFBQUFBQUFBSS9BQUFBQUFBQUZsdy9QcjVLdDdVckxaay9zOTYtYy9waG90by5qcGciLCJnaXZlbl9uYW1lIjoiRGFuIiwiZmFtaWx5X25hbWUiOiJQYXN0dXNlayIsImxvY2FsZSI6ImVuIn0.DcCxKOoMHVUBIppiJDBqLMPUoJk_FMv9RAQNl8mh7HNia3iq5jQCNIea0h3B6-akf7vxfp__b4f3N59qnOcmd4zdAYCT7zO5YubHhyeoOXENwueoTbKzexoNmZMPDZUrKqj-4sAqscHuiJmT2Nwwkdu2g8cFxI0-TpQVHAspJJJ5r_oMP45kdeRpwYV2R7Azct-vYs6QxQaQMn6_azm9Va7HckEop4my8wMoCfAbF1gDiB-JNW63QSzBFBK7SMNXOcrkssoGP3zXdfqjIdU1MK3Wx6i8zqEiV1IrI8XglvWnhIO7z0R_8AAG37DruKNg3HtGRgNtt0grE48ELnQ-zA"'
GET

Album / Image Comment

https://api.imgur.com/3/gallery/{{galleryHash}}/comment/{{commentId}}

Information about a specific comment. This action also allows any of the additional actions provided in the Comment Endpoint.

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Album / Image Comment
curl --location -g --request GET 'https://api.imgur.com/3/gallery/{{galleryHash}}/comment/{{commentId}}' \
--header 'Authorization: Client-ID {{clientId}}'
POST

Album / Image Comment Creation

https://api.imgur.com/3/gallery/{{galleryHash}}/comment

Response Model: Basic

Parameters

Key Required Value
comment required The text of the comment.
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
comment
{{commentText}}


Example Request
Album / Image Comment Creation
curl --location -g --request POST 'https://api.imgur.com/3/gallery/{{galleryHash}}/comment' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'comment="{{commentText}}"'

Image

GET

Image

https://api.imgur.com/3/image/{{imageHash}}

Get information about an image.

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Image
curl --location -g --request GET 'https://api.imgur.com/3/image/{{imageHash}}' \
--header 'Authorization: Client-ID {{clientId}}'
POST

Image Upload

https://api.imgur.com/3/upload

Upload a new image or video.

Accepted Video Formats

MIME Type
video/mp4
video/webm
video/x-matroska
video/quicktime
video/x-flv
video/x-msvideo
video/x-ms-wmv
video/mpeg
AUTHORIZATIONBearer Token
Token
<token>
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata
image

A binary file, base64 data, or a URL for an image. (up to 10MB)

video

A binary file (up to 200MB)

album
{{albumHash}}

The id of the album you want to add the image to. For anonymous albums, album should be the deletehash that is returned at creation

type
url

The type of the file that's being sent; file, base64 or URL

name
pixel.gif

The name of the file, this is automatically detected if uploading a file with a POST and multipart / form-data

title
1x1 Pixel

The title of the image

description
This is an 1x1 pixel image.

The description of the image

disable_audio
1

Will remove the audio track from a video file



Example Request
Sample Anonymous Upload
curl --location --request POST 'https://api.imgur.com/3/image' \
--header 'Authorization: Client-ID {{clientId}}' \
--form 'image="R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"'
Example Response
200 OK
Body
Header(19)
View More
{
  "data": {
    "id": "orunSTu",
    "title": null,
    "description": null,
    "datetime": 1495556889,
    "type": "image/gif",
    "animated": false,
    "width": 1,
    "height": 1,
    "size": 42,
DEL

Image Deletion (Un-Authed)

https://api.imgur.com/3/image/{{imageDeleteHash}}

Deletes an image.

Response Model: Basic

HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata


Example Request
Image Deletion (Un-Authed)
curl --location -g --request DELETE 'https://api.imgur.com/3/image/{{imageDeleteHash}}' \
--header 'Authorization: Client-ID {{clientId}}'
DEL

Image Deletion (Authed)

https://api.imgur.com/3/image/{{imageHash}}

Deletes an image.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Image Deletion (Authed)
curl --location -g --request DELETE 'https://api.imgur.com/3/image/{{imageHash}}' \
--header 'Authorization: Bearer {{accessToken}}'
POST

Update Image Information (Un-Authed)

https://api.imgur.com/3/image/{{imageDeleteHash}}

Updates the title or description of an image.

Response Model: Basic

Parameters

Key Required Description
title optional The title of the image.
description optional The description of the image.
HEADERS
Authorization
Client-ID {{clientId}}
Bodyformdata
title
Heart
description
This is an image of a heart outline.


Example Request
Update Image Information (Un-Authed)
curl --location -g --request POST 'https://api.imgur.com/3/image/{{imageDeleteHash}}' \
--header 'Authorization: Client-ID {{clientId}}' \
--form 'title="Heart"' \
--form 'description="This is an image of a heart outline."'
POST

Update Image Information (Authed)

https://api.imgur.com/3/image/{{imageHash}}

Updates the title or description of an image.

Response Model: Basic

Parameters

Key Required Description
title optional The title of the image.
description optional The description of the image.
HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata
title
Heart
description
This is an image of a heart outline.


Example Request
Update Image Information (Authed)
curl --location -g --request POST 'https://api.imgur.com/3/image/{{imageHash}}' \
--header 'Authorization: Bearer {{accessToken}}' \
--form 'title="Heart"' \
--form 'description="This is an image of a heart outline."'
POST

Favorite an Image

https://api.imgur.com/3/image/{{imageHash}}/favorite

Favorite an image with the given ID. The user is required to be logged in to favorite the image.

Response Model: Basic

HEADERS
Authorization
Bearer {{accessToken}}
Bodyformdata


Example Request
Favorite an Image
curl --location -g --request POST 'https://api.imgur.com/3/image/{{imageHash}}/favorite' \
--header 'Authorization: Bearer {{accessToken}}'