Skip to content

Instantly share code, notes, and snippets.

@dvdsgl
Created February 28, 2018 00:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvdsgl/743e8821f1566948068e966e32adc224 to your computer and use it in GitHub Desktop.
Save dvdsgl/743e8821f1566948068e966e32adc224 to your computer and use it in GitHub Desktop.
Imgur API Postman Collection
{
"info": {
"name": "Imgur API",
"_postman_id": "00eac12b-6725-3a66-b1b2-b242834fae2d",
"description": "![image](https://i.imgur.com/n744BL9.png)\n\n## API Status\nStatus for the API can be found at [status.imgur.com](http://status.imgur.com)!\n\n## Getting Started\nImgur'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.\n\nThis 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.\n\nThe easiest way to start using the Imgur API is by clicking the **Run in Postman** button above. [Postman](https://www.getpostman.com/) 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. \n\n## Example code\nThese examples serve as a starting point to help familiarize you with the basics of the Imgur API.\n* [Official Python library](https://github.com/Imgur/imgurpython)\n* [Android Upload Example](https://github.com/AKiniyalocts/imgur-android)\n* [Older Example Android app](https://github.com/talklittle/ImgurAPIv3ExampleAndroid)\n* [Example HTML5/JavaScript app](https://github.com/eirikb/gifie) - [Javascript OAuth](https://gist.github.com/eirikb/7404666)—[Live Demo](http://eirikb.github.io/gifie/) (uses your webcam)\n* [Example Objective C library](https://github.com/geoffmacd/ImgurSession)\n\n## Need help?\nThe Imgur engineers are always around answering questions. The quickest way to get help is by posting your question on StackOverflow with the [Imgur tag](https://stackoverflow.com/questions/tagged/imgur).\n\n## Register an Application (IMPORTANT)\nEach client must register their application and receive the `client_id` and `client_secret`.\n\nFor 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.\n\n Authorization: Client-ID <YOUR_CLIENT_ID>\n\n\n### Registration Quickstart\nIf you are just getting started, an easy way to explore the endpoints is by creating an application using following instructions below.\n\n1. Download [Postman](https://www.getpostman.com/) 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.\n2. [Register your application](https://api.imgur.com/oauth2/addclient) using the postman callback URL: `https://www.getpostman.com/oauth2/callback` ![Image](https://i.imgur.com/Ied42En.png)\n3. 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** ![Image](https://i.imgur.com/iKHSGFD.png)\n4. After logging in and granting access to your application, you should receive a refresh token. ![Image](https://i.imgur.com/0dN8cyJ.png) 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 ![Image](https://i.imgur.com/DaFV5ux.png)\n5. 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. ![Image](https://i.imgur.com/5Ed4RhP.png)\n6. 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! \n\n## Commercial Usage\nYour 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.\n\nTo use Imgur's API commercially, you must first [register your application](https://api.imgur.com/oauth2/addclient). Once that's done, you must [register with Mashape](https://market.mashape.com/imgur/imgur-9). Mashape allows you to choose a pricing plan that fits your needs. From then on, the API endpoint is `https://imgur-apiv3.p.mashape.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 Mashape.\n\n## Free Usage\nThe 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.\n\n## Endpoints\nThe 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.\n\nEverything (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.\n\nThe stable HTTP endpoint for the latest version is:\n`https://api.imgur.com/3/`\n\n## Responses\nEach 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](https://api.imgur.com/models) page.\n\nResponses 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:\n\n https://api.imgur.com/3/gallery.json\n \nJSONP responses are made by adding the callback parameter via either GET or POST to the request. For example:\n\n https://api.imgur.com/3/gallery.json?callback=function_name\n \nand to specify an XML response, the URL is:\n\n https://api.imgur.com/3/gallery.xml\n \n## Paging Results\nFor the most part, if the API action is plural, you can page it via a query string parameter.\n\nNOTE: /gallery endpoints do not support the perPage query string, and /album/{id}/images is not paged.\n\n| Query String Parameter | Required | Description |\n|------------------------|----------|---------------------------------------------------------------|\n| page | optional | Page number of the result set (default: 0) |\n| perPage | optional | Limit the number of results per page. (default: 50, max: 100) |\n\nExample:\n\n https://api.imgur.com/3/account/imgur/images/0.json?perPage=42&page=6\n \n## Authentication\nThe API requires each client to use OAuth 2 authentication. This means you'll have to [register your application](https://api.imgur.com/oauth2/addclient), and generate an access_code if you'd like to log in as a user.\nFor 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.\n\n Authorization: Client-ID <YOUR_CLIENT_ID>\n\nFor accessing a user's account, please visit the OAuth2 section of the docs.\nOAuth Endpoints\nTo access OAuth, the following endpoints must be used:\n\n https://api.imgur.com/oauth2/addclient\n https://api.imgur.com/oauth2/authorize\n https://api.imgur.com/oauth2/token\n \nYou can also verify your OAuth 2.0 tokens by setting your header and visiting the page \n\n https://api.imgur.com/oauth2/secret\n \n## Rate Limits\nThe 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.\n\nWe 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.\n\nEach request contains rate limit information in the HTTP response headers.\n\n| HTTP Header | Description |\n|-----------------------------|-------------------------------------------------------------------|\n| X-RateLimit-UserLimit | Total credits that can be allocated. |\n| X-RateLimit-UserRemaining | Total credits available. |\n| X-RateLimit-UserReset | Timestamp (unix epoch) for when the credits will be reset. |\n| X-RateLimit-ClientLimit | Total credits that can be allocated for the application in a day. |\n| X-RateLimit-ClientRemaining | Total credits remaining for the application in a day. |\n\nUnless 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.\nYou can also check the current rate limit status on your application by sending a GET request to \n\n https://api.imgur.com/3/credits\n\nYour 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](http://api.imgur.com/#commercial) is not impacted by this limit. Each POST request will contain the following headers.\n\n| HTTP Header | Description |\n|-----------------------------|----------------------------------------------------|\n| X-Post-Rate-Limit-Limit | Total POST credits that are allocated. |\n| X-Post-Rate-Limit-Remaining | Total POST credits available. |\n| X-Post-Rate-Limit-Reset | Time in seconds until your POST ratelimit is reset |\n\n# Authorization and OAuth\n\n## OAuth 2.0 Overview\nThe 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.\n\n* [Registration](https://api.imgur.com/oauth2/addclient) gives you your `client_id` and `client_secret`, which is then used to authorize the user to your app.\n* 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.\n * `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.\n * `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.\n * `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.\n * Finally, after obtaining your access_token, you make your API requests by sending the Authorization header as such: \n ```Authorization: Bearer YOUR_ACCESS_TOKEN```\n \n* Registration\n\nEach client must register their application and receive the client_id and client_secret.\n\nFor 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.\n\n Authorization: Client-ID YOUR_CLIENT_ID\n\n## Authorization\n\n> _NOTE:_ If your app is not only requesting public read-only information, then you may skip this step.\n\nTo 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.\n\n https://api.imgur.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&response_type=REQUESTED_RESPONSE_TYPE&state=APPLICATION_STATE\n \nThe 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.\n\n#### Forming the authorization URL\n\nAuthorization Endpoint: `https://api.imgur.com/oauth2/authorize`\n\n| Parameter | Values | Description |\n|---------------|----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 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. |\n| client_id | the Client ID you recieved from registration | Indicates the client that is making the request. |\n| 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. |\n\n#### The `response_type` Parameter\n\n`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`\n\nThe `code` and `pin` response types have been deprecated and will soon no longer be supported.\n\n### Handling the Authorization Response\n\nThe 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.\nYou're able to change your applications redirect URL at any time by accessing the ['apps' section of your account settings](http://imgur.com/account/settings/apps).\n\n#### JavaScript responses for the response_type: `token`\n\nImgur 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.\nOther 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.\nAn example User Agent flow response is shown below:\n\n https://example.com/oauthcallback#access_token=ACCESS_TOKEN&token_type=Bearer&expires_in=3600\n \nBelow is a JavaScript snippet that parses the response and returns the parameters to the server.\n\n```js\n// First, parse the query string\nvar params = {}, queryString = location.hash.substring(1),\n regex = /([^&=]+)=([^&]*)/g, m;\nwhile (m = regex.exec(queryString)) {\n params[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);\n}\n\n// And send the token over to the server\nvar req = new XMLHttpRequest();\n// consider using POST so query isn't logged\nreq.open('GET', 'https://' + window.location.host + '/catchtoken?' + queryString, true);\n\nreq.onreadystatechange = function (e) {\n if (req.readyState == 4) {\n if(req.status == 200){\n window.location = params['state']\n }\n else if(req.status == 400) {\n alert('There was an error processing the token.')\n }\n else {\n alert('something else other than 200 was returned')\n }\n }\n};\nreq.send(null);\n```\n\nThis 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.\n\n#### Error Response\n\nThe 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.\n\nAn example error response for the web server flow is shown below:\n\n https://example.com/oauthcallback?error=access_denied\n \n### Making your requests\nCongrats! 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:\n\n Authorization: Bearer YOUR_ACCESS_TOKEN\n \n### Refresh Tokens\n\nIf 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.\n\nWhen 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.\n\nTo 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:\n\n| Field | Description |\n|---------------|-------------------------------------------------------------------------------------------|\n| refresh_token | The refresh token returned from the authorization code exchange |\n| client_id | The client_id obtained during application registration |\n| client_secret | The client secret obtained during application registration |\n| grant_type | As defined in the OAuth2 specification, this field must contain a value of: `refresh_token` |\n\nAs 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:\n\n```json\n{\n \"access_token\":\"5c3118ebb73fbb275945ab340be60b610a3216d6\",\n \"refresh_token\":\"d36b474c95bb9ee54b992c7c34fffc2cc343d0a7\",\n \"expires_in\":3600,\n \"token_type\":\"Bearer\",\n \"account_username\":\"saponifi3d\"\n}\n```\n\n### More OAuth 2 help and documentation\nFor 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\n\n\n\n# Performance Tips\nBelow are a few ways you can speed up your application's use of the Imgur API. \n\nIf you have any additional feature requests, please reach out on Twitter [@imgurAPI](https://twitter.com/imgurAPI)!\n\n### ETag Support\nThe Imgur API supports [ETags](http://en.wikipedia.org/wiki/HTTP_ETag), which allows the API to signal to developers whether or not data from previous queries have changed. \n\nUsage:\n1. 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. \n\n An example ETag response header: \n \n `ETag: \"a695f4e9672bf7fc7a779ac12ead684d72292506\"`\n1. 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) \n\n An example ETag request header: \n \n `If-None-Match: \"a695f4e9672bf7fc7a779ac12ead684d72292506\"`\n1. If the data hasn't changed, the response status code will be *304* (Not Modified) and no data will be returned.\n1. 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.\n\n *Note:* Although ETags help speed up your application, requests with the *If-None-Match* header will still count towards rate limits.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Account",
"description": "",
"item": [
{
"name": "Generate Access Token",
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"let tokenStore = postman.getEnvironmentVariable(\"refreshTokenStore\");",
"",
"// Bail early if we have no token store. ",
"// This is only used for imgur testing because monitors run hourly",
"// and we would hit a ratelimit if we didn't randomize the user",
"if (!tokenStore) {",
" return;",
"}",
"",
"function getRandomIntInclusive(min, max) {",
" min = Math.ceil(min);",
" max = Math.floor(max);",
" return Math.floor(Math.random() * (max - min + 1)) + min;",
"}",
"",
"tokenStore = JSON.parse(tokenStore);",
"",
"const user = tokenStore[getRandomIntInclusive(0,9)];",
"",
"console.log(`using username ${user.username} with refresh token ${user.refreshToken} for testing`)",
"",
"postman.setEnvironmentVariable(\"username\", user.username)",
"postman.setEnvironmentVariable(\"refreshToken\", user.refreshToken)",
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"var accessToken = res.access_token;",
"var refreshToken = res.refresh_token;",
"tests['Returns 40 char hex access token'] = /^[a-f0-9]{40}$/i.test(accessToken);",
"tests['Returns 40 char hex refresh token'] = /^[a-f0-9]{40}$/i.test(refreshToken);",
"",
"postman.setEnvironmentVariable(\"accessToken\", accessToken);",
"",
"postman.setNextRequest(\"Account Base\"); // Account -> Account Base"
]
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "refresh_token",
"value": "{{refreshToken}}",
"description": "The refresh token returned from the authorization code exchange\n",
"type": "text"
},
{
"key": "client_id",
"value": "{{clientId}}",
"description": "The client_id obtained during application registration\n",
"type": "text"
},
{
"key": "client_secret",
"value": "{{clientSecret}}",
"description": "The client secret obtained during application registration\n",
"type": "text"
},
{
"key": "grant_type",
"value": "refresh_token",
"description": "As defined in the OAuth2 specification, this field must contain a value of: `refresh_token`",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/oauth2/token",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"oauth2",
"token"
]
},
"description": "Given a user's refresh token, this endpoint generates an access token."
},
"response": []
},
{
"name": "Account Base",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"",
"postman.setNextRequest(\"Image Upload\"); // Image -> Image Upload"
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}"
]
},
"description": "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](/account/current_account). Note: This endpoint also supports the ability to lookup account base info by account ID. To do so, pass the query parameter `account_id`.\n\n#### Response Model: [Account](https://api.imgur.com/models/account)"
},
"response": [
{
"id": "265c41cd-d9b1-4919-af37-134db6d47b55",
"name": "Sample Response",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Age",
"value": "0",
"name": "Age",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Wed, 31 May 2017 14:56:02 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"42f114046cd3f43be6995f2566c8ebb31f9dd21a\"",
"name": "ETag",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Backstage",
"value": "110",
"name": "X-Backstage",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-RateLimit-ClientLimit",
"value": "12500",
"name": "X-RateLimit-ClientLimit",
"description": ""
},
{
"key": "X-RateLimit-ClientRemaining",
"value": "12500",
"name": "X-RateLimit-ClientRemaining",
"description": ""
},
{
"key": "X-RateLimit-UserLimit",
"value": "500",
"name": "X-RateLimit-UserLimit",
"description": ""
},
{
"key": "X-RateLimit-UserRemaining",
"value": "499",
"name": "X-RateLimit-UserRemaining",
"description": ""
},
{
"key": "X-RateLimit-UserReset",
"value": "1496246162",
"name": "X-RateLimit-UserReset",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-iad2621-IAD",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1496242562.109182,VS0,VE30",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "a8af9726c6c741c5694e2164c15d1bdc",
"key": "IMGURSESSION"
},
{
"expires": "Invalid Date",
"httpOnly": true,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "1",
"key": "_nc"
},
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "110",
"key": "backstage"
},
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "api.imgur.com",
"path": "/",
"secure": false,
"value": "898d560972119ade98fdae2cc4313b0b%7EqnBR5g7CRpOGxrTXiaBYk1zqRz2O9165",
"key": "authautologin"
},
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "api.imgur.com",
"path": "/",
"secure": false,
"value": "upload.i-086fcbff9142dde07.production",
"key": "UPSERVERID"
}
],
"responseTime": "133",
"body": "{\"data\":{\"id\":48437714,\"url\":\"ghostinspector\",\"bio\":null,\"avatar\":null,\"reputation\":0,\"reputation_name\":\"Neutral\",\"created\":1481839668,\"pro_expiration\":false,\"user_follow\":{\"status\":false}},\"success\":true,\"status\":200}"
}
]
},
{
"name": "Account Images",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var images = JSON.parse(responseBody).data.map(function(image){",
" return image.id",
"});",
"",
"// grab the hash of the image that was just uploaded",
"var justUploadedImageHash = postman.getEnvironmentVariable(\"imageHash\");",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Response includes the previously uploaded image'] = images.indexOf(justUploadedImageHash) > -1;",
"",
"postman.setNextRequest('Album Creation (Un-Authed / Authed)'); // Album -> Album Creation (Un-Authed / Authed)"
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/images",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"images"
]
},
"description": "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."
},
"response": []
},
{
"name": "Account Gallery Favorites",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/gallery_favorites/{{page}}/{{favoritesSort}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"gallery_favorites",
"{{page}}",
"{{favoritesSort}}"
]
},
"description": "Return the images the user has favorited in the gallery.\n\n#### Response Model: [Gallery Image](https://api.imgur.com/models/gallery_image) OR [Gallery Album](https://api.imgur.com/models/gallery_album)\n\n\n#### Parameters\n\n| Key | Required | Description |\n|------|----------|-------------------------------------------------------------------------------------------------|\n| page | optional | integer - allows you to set the page number so you don't have to retrieve all the data at once. |\n| favoriteSort | optional | `oldest`, or `newest`. Defaults to `newest`. |"
},
"response": []
},
{
"name": "Account Favorites",
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// postman.setEnvironmentVariable(\"username\", \"postmanTestUser1\");"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"",
"if (jsonData.status === 403) {",
" postman.setNextRequest(\"request_name\");",
"} else {",
" // tests[\"Your test name\"] = jsonData.value === 100;",
"}"
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/favorites/{{page}}/{{favoritesSort}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"favorites",
"{{page}}",
"{{favoritesSort}}"
]
},
"description": "Returns the users favorited images, only accessible if you're logged in as the user.\n\n#### Response Model: [Gallery Image](https://api.imgur.com/models/gallery_image) OR [Gallery Album](https://api.imgur.com/models/gallery_album)\n\n*Note:* vote data ('ups', 'downs', and 'score') may be null if the favorited item hasn't been submitted to gallery\n\n\n#### Parameters\n\n| Key | Required | Description |\n|------|----------|-------------------------------------------------------------------------------------------------|\n| page | optional | integer - allows you to set the page number so you don't have to retrieve all the data at once. |\n| sort | optional | 'oldest', or 'newest'. Defaults to 'newest'. |"
},
"response": []
},
{
"name": "Account Submissions",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/submissions/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"submissions",
"{{page}}"
]
},
"description": "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. \n\n#### Response Model: [Gallery Image](https://api.imgur.com/models/gallery_image) OR [Gallery Album](https://api.imgur.com/models/gallery_album)"
},
"response": [
{
"id": "7b1404e9-b996-4b90-b326-5be38081df77",
"name": "Account Submissions",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/submissions/{{page}}/{{sort}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"submissions",
"{{page}}",
"{{sort}}"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"_postman_previewtype": "html",
"header": [],
"cookie": [],
"responseTime": "0",
"body": ""
}
]
},
{
"name": "Account Available Avatars (Un-authed / Authed)",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}",
"description": "If unauthenticated, send the Client-ID",
"disabled": true
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}",
"description": "If authenticated send the bearer token"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/available_avatars",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"available_avatars"
]
},
"description": "If unauthentiated, get list of default trophies a user can select from. The username need not exist to get the listing.\n\nIf authenticated, get the list of available avatars for the given user."
},
"response": []
},
{
"name": "Account Avatar (Authed)",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/avatar",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"avatar"
]
},
"description": "Get the current account's avatar URL and avatar name."
},
"response": []
},
{
"name": "Account Settings",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/settings",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"settings"
]
},
"description": "Returns the account settings, only accessible if you're logged in as the user.\n\n"
},
"response": []
},
{
"name": "Change Account Settings",
"request": {
"method": "PUT",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "bio",
"value": "Long time lurker...",
"type": "text",
"disabled": true
},
{
"key": "public_images",
"value": "false",
"type": "text",
"disabled": true
},
{
"key": "messaging_enabled",
"value": "true",
"type": "text",
"disabled": true
},
{
"key": "album_privacy",
"value": "public",
"type": "text",
"disabled": true
},
{
"key": "accepted_gallery_terms",
"value": "true",
"type": "text",
"disabled": true
},
{
"key": "username",
"value": "ImgurUser",
"type": "text",
"disabled": true
},
{
"key": "show_mature",
"value": "true",
"type": "text",
"disabled": true
},
{
"key": "newsletter_subscribed",
"value": "true",
"type": "text",
"disabled": true
},
{
"key": "avatar",
"value": "flavor/taco",
"description": "See Account Available Avatars for possible values",
"type": "text",
"disabled": true
}
]
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/settings",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"settings"
]
},
"description": "Updates the account settings for a given user, the user must be logged in.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|------------------------|----------|---------------------------------------------------------------------------------------|\n| bio | optional | The biography of the user, is displayed in the gallery profile page. |\n| public_images | optional | Set the users images to private or public by default |\n| messaging_enabled | optional | true &#124; false - Allows the user to enable / disable private messages |\n| album_privacy | optional | public &#124; hidden &#124; secret - Sets the default privacy level of albums the users creates |\n| accepted_gallery_terms | optional | true &#124; false - The user agreement to the Imgur Gallery terms. |\n| username | optional | A valid Imgur username (between 4 and 63 alphanumeric characters) |\n| show_mature | optional | true &#124; false - Toggle display of mature images in gallery list endpoints. |\n| newsletter_subscribed | optional | true &#124; false - Toggle subscription to email newsletter. |"
},
"response": []
},
{
"name": "Account Gallery Profile",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/settings",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"settings"
]
},
"description": "Returns the totals for the gallery profile.\n\n#### Response Model: [Gallery Profile](https://api.imgur.com/models/gallery_profile)"
},
"response": []
},
{
"name": "Verify User's E-mail",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/verifyemail",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"verifyemail"
]
},
"description": "Checks to see if user has verified their email address.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Send Verification E-mail",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/verifyemail",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"verifyemail"
]
},
"description": "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.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Albums (Un-Authed / Authed)",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/albums/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"albums",
"{{page}}"
]
},
"description": "Get all the albums associated with the account. Must be logged in as the user to see secret and hidden albums.\n\n#### Response Model: [Album](https://api.imgur.com/models/album)\n\n#### Parameters\n| Key | Required | Description |\n|------|----------|-------------------------------------------------------------------------------------------------|\n| page | optional | integer - allows you to set the page number so you don't have to retrieve all the data at once. |"
},
"response": []
},
{
"name": "Album",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/album/{{albumHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"album",
"{{albumHash}}"
]
},
"description": "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.\n\n#### Response Model: [Album](https://api.imgur.com/models/album)"
},
"response": []
},
{
"name": "Album IDs (Un-Authed / Authed)",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/albums/ids/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"albums",
"ids",
"{{page}}"
]
},
"description": "Return an array of all of the album IDs (hashes).\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Album Count (Un-Authed / Authed)",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/albums/count",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"albums",
"count"
]
},
"description": "Return the total number of albums associated with the account.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Album Deletion",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/album/{{albumHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"album",
"{{albumHash}}"
]
},
"description": "Delete an Album with a given id.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Comments",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/comments/{{commentSort}}/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"comments",
"{{commentSort}}",
"{{page}}"
]
},
"description": "Return the comments the user has created.\n\n#### Response Model: [Comment](https://api.imgur.com/models/comment)\n\n#### Parameters\n\n| Key | Required | Value |\n|------|----------|---------------------------------------------------------------|\n| commentSort | optional | `best`, `worst`, `oldest`, or `newest`. Defaults to `newest`. |\n| page | optional | Page number (50 items per page). Defaults to `0`. |"
},
"response": []
},
{
"name": "Comment",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/comment/{{commentId}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"comment",
"{{commentId}}"
]
},
"description": "Return information about a specific comment. This endpoint works the same as the [Comment Endpoint](https://api.imgur.com/endpoint/comment/). You can use any of the additional actions that the comment endpoint allows on this end point."
},
"response": []
},
{
"name": "Comment IDs",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/comments/ids/{{sort}}/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"comments",
"ids",
"{{sort}}",
"{{page}}"
]
},
"description": "Return an array of all of the comment IDs.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Value |\n|------|----------|---------------------------------------------------------------|\n| commentSort | optional | `best`, `worst`, `oldest`, or `newest`. Defaults to `newest`. |\n| page | optional | Page number (50 items per page). Defaults to `0`. |"
},
"response": []
},
{
"name": "Comment Count",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/comments/count",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"comments",
"count"
]
},
"description": "Return a count of all of the comments associated with the account.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Comment Deletion",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/comment/{{commentId}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"comment",
"{{commentId}}"
]
},
"description": "Delete a comment. You are required to be logged in as the user whom created the comment.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Images",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/images/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"images",
"{{page}}"
]
},
"description": "Return all of the images associated with the account. You can page through the images by setting the page, this defaults to 0.\n\n#### Response Model: [Image](https://api.imgur.com/models/image)"
},
"response": []
},
{
"name": "Image",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/image/{{imageId}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"image",
"{{imageId}}"
]
},
"description": "Return information about a specific image. This endpoint works the same as the [Image Endpoint](https://api.imgur.com/endpoints/image/). You can use any of the additional actions that the image endpoint with this endpoint.\n\n#### Response Model: [Image](https://api.imgur.com/models/image)"
},
"response": []
},
{
"name": "Image IDs",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/images/ids/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"images",
"ids",
"{{page}}"
]
},
"description": "Returns an array of Image IDs that are associated with the account.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n"
},
"response": []
},
{
"name": "Image Count",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/images/count",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"images",
"count"
]
},
"description": "Returns the total number of images associated with the account.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Image Deletion",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/image/{{deleteHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"image",
"{{deleteHash}}"
]
},
"description": "Deletes an Image. This requires a delete hash rather than an ID.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Replies",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/{{username}}/notifications/replies",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"{{username}}",
"notifications",
"replies"
]
},
"description": "Returns all of the reply notifications for the user. Required to be logged in as that user.\n\n#### Response Model: [Notification](https://api.imgur.com/models/notification)\n\n#### Parameters\n\n| Key | Required | Value |\n|-----|----------|------------------------------------------------------------------------------------------------|\n| new | optional | boolean - `false` for all notifications, `true` for only non-viewed notification. Default is `true`. |"
},
"response": []
},
{
"name": "Follow Tag",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/{{tagName}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"{{tagName}}"
]
},
"description": "Follows the {{tagName}} specified for the currently logged in user."
},
"response": [
{
"id": "a8ddef4a-a5c1-4a8c-8ad4-a8722d6a3d64",
"name": "Follow Tag: Success",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{bearerToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/funny",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"funny"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Fri, 02 Jun 2017 23:30:47 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"4a931e85c4c3e49f1fb921656d64b65510e32928\"",
"name": "ETag",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Limit",
"value": "1250",
"name": "X-Post-Rate-Limit-Limit",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Remaining",
"value": "1216",
"name": "X-Post-Rate-Limit-Remaining",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Reset",
"value": "1327",
"name": "X-Post-Rate-Limit-Reset",
"description": ""
},
{
"key": "X-RateLimit-ClientLimit",
"value": "12500",
"name": "X-RateLimit-ClientLimit",
"description": ""
},
{
"key": "X-RateLimit-ClientRemaining",
"value": "12500",
"name": "X-RateLimit-ClientRemaining",
"description": ""
},
{
"key": "X-RateLimit-UserLimit",
"value": "2000",
"name": "X-RateLimit-UserLimit",
"description": ""
},
{
"key": "X-RateLimit-UserRemaining",
"value": "1999",
"name": "X-RateLimit-UserRemaining",
"description": ""
},
{
"key": "X-RateLimit-UserReset",
"value": "1496449847",
"name": "X-RateLimit-UserReset",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-sea1029-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1496446248.628701,VS0,VE146",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [],
"responseTime": "170",
"body": "{\"data\":true,\"success\":true,\"status\":200}"
},
{
"id": "5da8e53a-bd64-4b5d-bf98-25ce7c2b8df3",
"name": "Follow Tag: Tag Does Not Exist",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{bearerToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/{{tagName}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"{{tagName}}"
]
},
"description": ""
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Fri, 02 Jun 2017 23:38:20 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"01b15643ab5929bc68c8536a37aad4b33335b3b7\"",
"name": "ETag",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Limit",
"value": "1250",
"name": "X-Post-Rate-Limit-Limit",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Remaining",
"value": "1208",
"name": "X-Post-Rate-Limit-Remaining",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Reset",
"value": "875",
"name": "X-Post-Rate-Limit-Reset",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-sea1029-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1496446700.380993,VS0,VE92",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [],
"responseTime": "130",
"body": "{\"data\":{\"error\":\"Tag does not exist\",\"request\":\"\\/3\\/account\\/me\\/follow\\/tag\\/{{tagName}}\",\"method\":\"POST\"},\"success\":false,\"status\":404}"
}
]
},
{
"name": "Follow User",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/{{tagName}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"{{tagName}}"
]
},
"description": "Follows the {{follow_user_id}} specified for the currently logged in user."
},
"response": [
{
"id": "1703ff14-4802-4528-b538-eedf9310867d",
"name": "Follow Tag: Success",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{bearerToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/funny",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"funny"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Fri, 02 Jun 2017 23:30:47 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"4a931e85c4c3e49f1fb921656d64b65510e32928\"",
"name": "ETag",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Limit",
"value": "1250",
"name": "X-Post-Rate-Limit-Limit",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Remaining",
"value": "1216",
"name": "X-Post-Rate-Limit-Remaining",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Reset",
"value": "1327",
"name": "X-Post-Rate-Limit-Reset",
"description": ""
},
{
"key": "X-RateLimit-ClientLimit",
"value": "12500",
"name": "X-RateLimit-ClientLimit",
"description": ""
},
{
"key": "X-RateLimit-ClientRemaining",
"value": "12500",
"name": "X-RateLimit-ClientRemaining",
"description": ""
},
{
"key": "X-RateLimit-UserLimit",
"value": "2000",
"name": "X-RateLimit-UserLimit",
"description": ""
},
{
"key": "X-RateLimit-UserRemaining",
"value": "1999",
"name": "X-RateLimit-UserRemaining",
"description": ""
},
{
"key": "X-RateLimit-UserReset",
"value": "1496449847",
"name": "X-RateLimit-UserReset",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-sea1029-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1496446248.628701,VS0,VE146",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [],
"responseTime": "170",
"body": "{\"data\":true,\"success\":true,\"status\":200}"
},
{
"id": "9579b66c-8246-4dd8-87cb-93710713e7e9",
"name": "Follow Tag: Tag Does Not Exist",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{bearerToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/{{tagName}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"{{tagName}}"
]
},
"description": ""
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Fri, 02 Jun 2017 23:38:20 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"01b15643ab5929bc68c8536a37aad4b33335b3b7\"",
"name": "ETag",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Limit",
"value": "1250",
"name": "X-Post-Rate-Limit-Limit",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Remaining",
"value": "1208",
"name": "X-Post-Rate-Limit-Remaining",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Reset",
"value": "875",
"name": "X-Post-Rate-Limit-Reset",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-sea1029-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1496446700.380993,VS0,VE92",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [],
"responseTime": "130",
"body": "{\"data\":{\"error\":\"Tag does not exist\",\"request\":\"\\/3\\/account\\/me\\/follow\\/tag\\/{{tagName}}\",\"method\":\"POST\"},\"success\":false,\"status\":404}"
}
]
},
{
"name": "Unfollow tag",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/{{tagName}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"{{tagName}}"
]
},
"description": "Unfollows the {{tagName}} specified for the currently logged in user.\r\n"
},
"response": [
{
"id": "0ae44336-d88c-4bfa-a0df-8b46a645dbc7",
"name": "Unfollow Tag: Not Following",
"originalRequest": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{bearerToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/funny",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"funny"
]
},
"description": ""
},
"status": "Conflict",
"code": 409,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Fri, 02 Jun 2017 23:34:41 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "\"e227211b0191945f4be2ec72f81c138f52baae21\"",
"name": "ETag",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-sea1029-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1496446482.679292,VS0,VE94",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [],
"responseTime": "119",
"body": "{\"data\":{\"error\":\"Not following tag\",\"request\":\"\\/3\\/account\\/me\\/follow\\/tag\\/funny\",\"method\":\"DELETE\"},\"success\":false,\"status\":409}"
},
{
"id": "523208ce-7c00-4eea-87ea-5451ceead42f",
"name": "Unfollow Tag: Success",
"originalRequest": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{bearerToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/funny",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"funny"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Fri, 02 Jun 2017 23:32:31 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"4a931e85c4c3e49f1fb921656d64b65510e32928\"",
"name": "ETag",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-RateLimit-ClientLimit",
"value": "12500",
"name": "X-RateLimit-ClientLimit",
"description": ""
},
{
"key": "X-RateLimit-ClientRemaining",
"value": "12499",
"name": "X-RateLimit-ClientRemaining",
"description": ""
},
{
"key": "X-RateLimit-UserLimit",
"value": "2000",
"name": "X-RateLimit-UserLimit",
"description": ""
},
{
"key": "X-RateLimit-UserRemaining",
"value": "1998",
"name": "X-RateLimit-UserRemaining",
"description": ""
},
{
"key": "X-RateLimit-UserReset",
"value": "1496449847",
"name": "X-RateLimit-UserReset",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-sea1029-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1496446351.410382,VS0,VE147",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [],
"responseTime": "185",
"body": "{\"data\":true,\"success\":true,\"status\":200}"
},
{
"id": "ebed66b8-5384-4eb0-8ea1-a89980b8f138",
"name": "Unfollow Tag: Tag Does Not Exist",
"originalRequest": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{bearerToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/account/me/follow/tag/{{tagName}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"account",
"me",
"follow",
"tag",
"{{tagName}}"
]
},
"description": ""
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Fri, 02 Jun 2017 23:37:06 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"6c7c0e7d55aaf4aa3f3001f04ebddad4c9daab9a\"",
"name": "ETag",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-sea1029-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1496446626.259756,VS0,VE96",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [],
"responseTime": "134",
"body": "{\"data\":{\"error\":\"Tag does not exist\",\"request\":\"\\/3\\/account\\/me\\/follow\\/tag\\/{{tagName}}\",\"method\":\"DELETE\"},\"success\":false,\"status\":404}"
}
]
}
]
},
{
"name": "Comment",
"description": "![image](https://i.imgur.com/pyWbOmo.png)",
"item": [
{
"name": "Comment",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/comment/{{commentId}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"comment",
"{{commentId}}"
]
},
"description": "Get information about a specific comment.\n\n#### Response Model: [Comment](https://api.imgur.com/models/comment)"
},
"response": []
},
{
"name": "Comment Creation",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "image_id",
"value": "{{imageHash}}",
"type": "text"
},
{
"key": "image_id",
"value": "{{albumHash}}",
"type": "text",
"disabled": true
},
{
"key": "comment",
"value": "I'm a giraffe!",
"type": "text"
},
{
"key": "parent_id",
"value": "{{commentId}}",
"type": "text",
"disabled": true
}
]
},
"url": {
"raw": "https://api.imgur.com/3/comment",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"comment"
]
},
"description": "Creates a new comment, returns the ID of the comment.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|-----------|----------|--------------------------------------------------------------------------------|\n| image_id | required | The ID of the image or album in the gallery that you wish to comment on |\n| comment | required | The comment text, this is what will be displayed |\n| parent_id | optional | The ID of the parent comment, this is an alternative method to create a reply. |"
},
"response": []
},
{
"name": "Comment Deletion",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/comment/{{commentId}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"comment",
"{{commentId}}"
]
},
"description": "Delete a comment by the given id.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Replies",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/comment/{{commentId}}/replies",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"comment",
"{{commentId}}",
"replies"
]
},
"description": "Get the comment with all of the replies for the comment.\n\n#### Response Model: [Comment](https://api.imgur.com/models/comment)"
},
"response": []
},
{
"name": "Reply Creation",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "image_id",
"value": "{{imageHash}}",
"type": "text"
},
{
"key": "image_id",
"value": "{{albumHash}}",
"type": "text",
"disabled": true
},
{
"key": "comment",
"value": "I'm a giraffe!",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/comment/{{commentId}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"comment",
"{{commentId}}"
]
},
"description": "Create a reply for the given comment.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|----------|----------|----------------------------------------------------------------|\n| image_id | required | The ID of the image or album in the gallery that you wish to comment on |\n| comment | required | The comment text, this is what will be displayed |"
},
"response": []
},
{
"name": "Vote",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/comment/{{commentId}}/vote/{{vote}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"comment",
"{{commentId}}",
"vote",
"{{vote}}"
]
},
"description": "Vote on a comment. The `vote` parameter can only be set as `up`, `down`, or `veto`.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Report",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "reason",
"value": "{{commentReportReason}}",
"description": "Optional. An integer representing the reason for the report\n\n| Value | Description |\n|-------|-------------------------------------|\n| 1 | Doesn't belong on Imgur |\n| 2 | Spam |\n| 3 | Abusive |\n| 4 | Mature content not marked as mature |\n| 5 | Pornography |",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/comment/{{commentId}}/report",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"comment",
"{{commentId}}",
"report"
]
},
"description": "Report a comment for being inappropriate."
},
"response": []
}
]
},
{
"name": "Album",
"description": "![image](https://i.imgur.com/U6GEQR5.png)\n\nThere 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`.",
"item": [
{
"name": "Album",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumHash}}"
]
},
"description": "Get additional information about an album.\n\n#### Response Model: [Album](https://api.imgur.com/models/album)"
},
"response": []
},
{
"name": "Album Images",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumHash}}/images",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumHash}}",
"images"
]
},
"description": "Return all of the images in the album.\n\n#### Response Model: [Image](https://api.imgur.com/models/image)"
},
"response": []
},
{
"name": "Album Image",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumHash}}/image/{{imageHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumHash}}",
"image",
"{{imageHash}}"
]
},
"description": "Get information about an image in an album, any additional actions found in [Image Endpoint](https://api.imgur.com/endpoints/image/) will also work.\n\n#### Response Model: [Image](https://api.imgur.com/models/image)"
},
"response": []
},
{
"name": "Album Creation (Un-Authed / Authed)",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"var albumHash = res.data.id;",
"var albumDeleteHash = res.data.deletehash;",
"",
"tests['Returns 7 char alphanumeric album id'] = /^[a-z0-9]{5}$/i.test(albumHash);",
"tests['Returns 15 char alhpanumeric album deletehash'] = /^[a-z0-9]{15}$/i.test(albumDeleteHash);",
"",
"postman.setEnvironmentVariable('albumHash', albumHash);",
"postman.setEnvironmentVariable('galleryHash', albumHash);",
"postman.setEnvironmentVariable('albumDeleteHash', albumDeleteHash);",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"",
"postman.setNextRequest('Share with Community (Album)'); // Gallery -> Share with Community (Album)"
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}",
"description": "Use this header if performing this action anonymously.",
"disabled": true
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}",
"description": "Use this header if performing this action as a logged-in user."
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "ids[]",
"value": "{{imageHash}}",
"type": "text",
"description": "The image ids that you want to be included in the album."
},
{
"key": "ids[]",
"value": "{{imageHash2}}",
"type": "text",
"description": "any additional image ids...",
"disabled": true
},
{
"key": "deletehashes[]",
"value": "{{deleteHash}}",
"type": "text",
"description": "The deletehashes of the images that you want to be included in the album.",
"disabled": true
},
{
"key": "deletehashes[]",
"value": "{{deleteHash2}}",
"type": "text",
"description": "any additional deletehashes...",
"disabled": true
},
{
"key": "title",
"value": "My dank meme album",
"type": "text",
"description": "The title of the album"
},
{
"key": "description",
"value": "This albums contains a lot of dank memes. Be prepared.",
"type": "text",
"description": "The description of the album"
},
{
"key": "privacy",
"value": "public",
"type": "text",
"description": "Sets the privacy level of the album. Values are : public | hidden | secret. Defaults to user's privacy settings for logged in users.",
"disabled": true
},
{
"key": "cover",
"value": "{{imageHash}}",
"type": "text",
"description": "The ID of an image that you want to be the cover of the album"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/album",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album"
]
},
"description": "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.\n\nThis 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.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|----------------|----------|--------------------------------------------------------------------------------------------------------------------------------------|\n| ids[] | optional | The image ids that you want to be included in the album. |\n| deletehashes[] | optional | The deletehashes of the images that you want to be included in the album. |\n| title | optional | The title of the album |\n| description | optional | The description of the album |\n| privacy | optional | Sets the privacy level of the album. Values are : `public` &#124; `hidden` &#124; secret. Defaults to user's privacy settings for logged in users. |\n| layout | optional | (_deprecated_) Sets the layout to display the album. Values are : `blog` &#124; `grid` &#124; `horizontal` &#124; `vertical` |\n| cover | optional | The ID of an image that you want to be the cover of the album |"
},
"response": []
},
{
"name": "Update Album (Un-Authed / Authed)",
"request": {
"method": "PUT",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}",
"description": "Use this header if performing this action anonymously.",
"disabled": true
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}",
"description": "Use this header if performing this action as a logged-in user."
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "ids[]",
"value": "{{imageHash}}",
"type": "text",
"description": "Optional. The image ids that you want to be included in the album.",
"disabled": true
},
{
"key": "ids[]",
"value": "{{image2Hash}}",
"type": "text",
"description": "any additional image ids...",
"disabled": true
},
{
"key": "deletehashes",
"value": "{{deleteHash}}",
"type": "text",
"description": "Optional. The deletehashes of the images that you want to be included in the album."
},
{
"key": "title",
"value": "My dank meme album",
"type": "text",
"description": "Optional. The title of the album"
},
{
"key": "description",
"value": "This album contains a lot of dank memes. Be prepared.",
"type": "text",
"description": "Optional. The description of the album"
},
{
"key": "privacy",
"value": "public",
"type": "text",
"description": "Optional. Sets the privacy level of the album. Values are : `public` | `hidden` | `secret`. Defaults to user's privacy settings for logged in users.",
"disabled": true
},
{
"key": "cover",
"value": "{{imageHash}}",
"type": "text",
"description": "Optional. The ID of an image that you want to be the cover of the album"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumHash}}"
]
},
"description": "Update the information of an album. For anonymous albums, `albumHash` should be the deletehash that is returned at creation.\n\nIf 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.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|----------------|----------|--------------------------------------------------------------------------------------------------------------------------------------|\n| ids[] | optional | The image ids that you want to be included in the album. |\n| deletehashes[] | optional | The deletehashes of the images that you want to be included in the album. |\n| title | optional | The title of the album |\n| description | optional | The description of the album |\n| privacy | optional | Sets the privacy level of the album. Values are : `public` &#124; `hidden` &#124; secret. Defaults to user's privacy settings for logged in users. |\n| layout | optional | (_deprecated_) Sets the layout to display the album. Values are : `blog` &#124; `grid` &#124; `horizontal` &#124; `vertical` |\n| cover | optional | The ID of an image that you want to be the cover of the album |"
},
"response": []
},
{
"name": "Album Deletion (Un-Authed)",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumDeleteHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumDeleteHash}}"
]
},
"description": "Delete an album with a given deletehash.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Album Deletion (Authed)",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Album deletion was successful'] = res.success === true && res.data === true;",
"",
"postman.setNextRequest('Image Deletion (Authed)'); // Image -> Image Deletion (Authed)"
]
}
}
],
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumHash}}"
]
},
"description": "Delete an album with a given ID. You are required to be logged in as the user to delete the album.\n\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Favorite Album",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumHash}}/favorite",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumHash}}",
"favorite"
]
},
"description": "Favorite an album with a given ID. The user is required to be logged in to favorite the album.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Set Album Images (Un-Authed)",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "deletehashes[]",
"value": "{{imageDeleteHash}}",
"type": "text"
},
{
"key": "deletehashes[]",
"value": "{{imageDeleteHash2}}",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumDeleteHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumDeleteHash}}"
]
},
"description": "Sets the images for an album, removes all other images and only uses the images in this request.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|-------|----------|-------------------------------------------------------|\n| deletehashes[] | required | The image deletehashes that you want to be added to the album. |"
},
"response": []
},
{
"name": "Set Album Images (Authed)",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "ids[]",
"value": "{{imageHash}}",
"type": "text"
},
{
"key": "ids[]",
"value": "{{imageHash2}}",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumHash}}"
]
},
"description": "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[].\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|----------------|----------|---------------------------------------------------------|\n| ids[] | optional | The image ids that you want to be added to the album. |\n| deletehashes[] | optional | The image deletehashes that you want to be added to the album. |"
},
"response": []
},
{
"name": "Add Images to an Album (Un-Authed)",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "deletehashes[]",
"value": "{{imageDeleteHash}}",
"type": "text"
},
{
"key": "deletehashes[]",
"value": "{{imageDeleteHash2}}",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumDeleteHash}}/add",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumDeleteHash}}",
"add"
]
},
"description": "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.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|-------|----------|-------------------------------------------------------|\n| 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. |"
},
"response": []
},
{
"name": "Add Images to an Album (Authed)",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "ids[]",
"value": "{{imageHash}}",
"type": "text"
},
{
"key": "ids[]",
"value": "{{imageHash2}}",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumHash}}/add",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumHash}}",
"add"
]
},
"description": "Adds the images to an album. You must specify ids[] or deletehashes[] in order to add an image to an album.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|----------------|----------|---------------------------------------------------------|\n| ids[] | optional | The image ids that you want to be added to the album. |\n| deletehashes[] | optional | The image deletehashes that you want to be added to the album. |"
},
"response": []
},
{
"name": "Remove Images from an Album (Un-Authed)",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "ids[]",
"value": "{{imageHash}}",
"type": "text"
},
{
"key": "ids[]",
"value": "{{imageHash2}}",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumDeleteHash}}/remove_images",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumDeleteHash}}",
"remove_images"
]
},
"description": "Takes parameter, `ids[]`, as an array of ids and removes from the album.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|-------|----------|-------------------------------------------------------|\n| ids[] | required | The image ids that you want to be removed from the album. |"
},
"response": []
},
{
"name": "Remove Images from an Album (Authed)",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "ids[]",
"value": "{{imageHash}}",
"type": "text"
},
{
"key": "ids[]",
"value": "{{imageHash2}}",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/album/{{albumHash}}/remove_images",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"album",
"{{albumHash}}",
"remove_images"
]
},
"description": "Takes parameter, `ids[]`, as an array of ids and removes from the album.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n\n#### Parameters\n\n| Key | Required | Description |\n|-------|----------|-------------------------------------------------------|\n| ids[] | required | The image ids that you want to be removed from the album. |"
},
"response": []
}
]
},
{
"name": "Gallery",
"description": "Due to caching limitations of Imgur, it's not possible to change the result size of the gallery resources.",
"item": [
{
"name": "Gallery",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/{{section}}/{{sort}}/{{window}}/{{page}}?showViral={{showViral}}&mature={{showMature}}&album_previews={{albumPreviews}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"{{section}}",
"{{sort}}",
"{{window}}",
"{{page}}"
],
"query": [
{
"key": "showViral",
"value": "{{showViral}}",
"equals": true,
"description": "Optional. `true` | `false` - Show or hide viral images from the `user` section. Defaults to `true`"
},
{
"key": "mature",
"value": "{{showMature}}",
"equals": true,
"description": "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."
},
{
"key": "album_previews",
"value": "{{albumPreviews}}",
"equals": true,
"description": "Optional. `true` | `false` - Include image metadata for gallery posts which are albums "
}
]
},
"description": "| Key | Required | Value |\n|-----------|----------|---------------------------------------------------------------------------------------------------|\n| section | optional | `hot` &#124; `top` &#124; `user`. Defaults to `hot`\n| sort | optional | `viral` &#124; `top` &#124; `time` &#124; `rising` (only available with `user` section). Defaults to `viral` |\n| page | optional | integer - the data paging number |\n| window | optional | Change the date range of the request if the section is `top`. Accepted values are `day` &#124; `week` &#124; `month` &#124; `year` &#124; `all`. Defaults to `day` |"
},
"response": []
},
{
"name": "Subreddit Galleries",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/r/{{subreddit}}/{{sort}}/{{window}}/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"r",
"{{subreddit}}",
"{{sort}}",
"{{window}}",
"{{page}}"
]
},
"description": "View gallery images for a subreddit\n\n| Key | Required | Value |\n|-----------|----------|--------------------------------------------------------------------------------------------------------------|\n| subreddit | required | pics - A valid subreddit name |\n| sort | optional | `time` &#124; `top` - defaults to time |\n| page | optional | integer - the data paging number |\n| window | optional | Change the date range of the request if the sort is \"top\". Options are `day` &#124; `week` &#124; `month` &#124; `year` &#124; `all`. Defaults to week |"
},
"response": [
{
"id": "f13f303f-ae3a-4d05-9556-097d3ff0e2f7",
"name": "Sample Response",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/r/{{subreddit}}/{{sort}}/{{window}}/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"r",
"{{subreddit}}",
"{{sort}}",
"{{window}}",
"{{page}}"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Age",
"value": "0",
"name": "Age",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Length",
"value": "3070",
"name": "Content-Length",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Mon, 01 May 2017 22:57:37 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"b2159d6299d2c0bb52ef626c3f8d3d30828ebc23\"",
"name": "ETag",
"description": ""
},
{
"key": "Fastly-Debug-Digest",
"value": "aceda32f97e72aaad63276f9f2425a77a38eb4627569b691716ae9d6b7fef829",
"name": "Fastly-Debug-Digest",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS, MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0, 0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-iad2145-IAD, cache-sea1025-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1493679458.561282,VS0,VE119",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "0ac920e771a1be71e700fdefdb22232a",
"key": "IMGURSESSION"
},
{
"expires": "Invalid Date",
"httpOnly": true,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "1",
"key": "_nc"
},
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "api.imgur.com",
"path": "/",
"secure": false,
"value": "496bdd0d6f02f181ae3fe2eaf473380f%7E2yespXiWCe7Ur6k3qf5jgS7iksNTeBC6",
"key": "authautologin"
}
],
"responseTime": "334",
"body": "{\"data\":[{\"id\":\"QJa0R6q\",\"title\":\"Shiprock - New Mexico [OC][1080x644]\",\"description\":null,\"datetime\":1493611803,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":1080,\"height\":644,\"size\":86174,\"views\":149622,\"bandwidth\":12893526228,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/QJa0R6q.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":148994,\"is_album\":false},{\"id\":\"RodyQ0k\",\"title\":\"Painters Bluff, overlooking a flood stage white river. North Central Ark. [10864x3728] [OC]\",\"description\":null,\"datetime\":1493641803,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":10864,\"height\":3728,\"size\":4884667,\"views\":20336,\"bandwidth\":99334588112,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/RodyQ0k.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":20291,\"is_album\":false},{\"id\":\"weKftEq\",\"title\":\"Cape Flattery, WA is quite flattering indeed. [oc] [2048x1367]\",\"description\":null,\"datetime\":1493611803,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":1367,\"height\":2048,\"size\":460562,\"views\":12854,\"bandwidth\":5920063948,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/weKftEq.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":12794,\"is_album\":false},{\"id\":\"EgF9TQh\",\"title\":\"Hyalite Canyon, Montana [OC] [4032x2268]\",\"description\":null,\"datetime\":1493610603,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":4032,\"height\":2268,\"size\":4082007,\"views\":10724,\"bandwidth\":43775443068,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/EgF9TQh.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":10689,\"is_album\":false},{\"id\":\"EEo6VgY\",\"title\":\"Russian Wilderness, Klamath National Forest [OC] [15045 x 5613]\",\"description\":null,\"datetime\":1493622003,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":15045,\"height\":5613,\"size\":2901059,\"views\":8271,\"bandwidth\":23994658989,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/EEo6VgY.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":8246,\"is_album\":false},{\"id\":\"lY1lDJO\",\"title\":\"Fiordland National Park, New Zealand [OC] [4032\\u00d72268]\",\"description\":null,\"datetime\":1493626279,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":3226,\"height\":1814,\"size\":875971,\"views\":8067,\"bandwidth\":7066458057,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/lY1lDJO.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":7936,\"is_album\":false},{\"id\":\"oG6w6F8\",\"title\":\"Posted this in r\\/pics first, but maybe you guys appreciate it too! [3821x2147]\",\"description\":null,\"datetime\":1493638203,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":3821,\"height\":2147,\"size\":2520309,\"views\":6374,\"bandwidth\":16064449566,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/oG6w6F8.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":6365,\"is_album\":false},{\"id\":\"O1IBlpc\",\"title\":\"Milky Way rise over the Atlantic in Avon NC [5679x3791]\",\"description\":null,\"datetime\":1493640003,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":5679,\"height\":3791,\"size\":2675943,\"views\":5105,\"bandwidth\":13660689015,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/O1IBlpc.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":4918,\"is_album\":false},{\"id\":\"pVQZLnk\",\"title\":\"Up high in the Willamette National Forest facing Cougar Creek, OR [OC] [2160x769]\",\"description\":null,\"datetime\":1493626203,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":2048,\"height\":729,\"size\":72458,\"views\":4522,\"bandwidth\":327655076,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/pVQZLnk.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":4494,\"is_album\":false},{\"id\":\"WNB9Cbm\",\"title\":\"Poisoned Glen, Donegal, Ireland [OC][1600x1200]\",\"description\":null,\"datetime\":1493629802,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":1600,\"height\":1200,\"size\":1030403,\"views\":4027,\"bandwidth\":4149432881,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/WNB9Cbm.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":3985,\"is_album\":false},{\"id\":\"DNZH3Z6\",\"title\":\"Sheyenne National Grasslands, North Dakota [OC] [6016x4000]\",\"description\":null,\"datetime\":1493654403,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":6016,\"height\":4000,\"size\":3124634,\"views\":3544,\"bandwidth\":11073702896,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/DNZH3Z6.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":3395,\"is_album\":false},{\"id\":\"Op1Mm35\",\"title\":\"A long day of driving and grey skies along Michigan's west coast and Upper Peninsula landed us in front a crimson sunset over Lake Superior, Silver City, MI [OC]\",\"description\":null,\"datetime\":1493640624,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":4032,\"height\":3024,\"size\":1850072,\"views\":3186,\"bandwidth\":5894329392,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/Op1Mm35.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":3178,\"is_album\":false},{\"id\":\"UvZxdQc\",\"title\":\"Blausee Kandersteg, Switzerland [3840x2160]\",\"description\":null,\"datetime\":1493629203,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":3840,\"height\":2160,\"size\":2729072,\"views\":3173,\"bandwidth\":8659345456,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/UvZxdQc.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":3132,\"is_album\":false},{\"id\":\"tQBGTi2\",\"title\":\"Bosco di Ficuzza @ Sicilia, Italia [OC] [5312x2988]\",\"description\":null,\"datetime\":1493646604,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":5312,\"height\":2988,\"size\":2101308,\"views\":2658,\"bandwidth\":5585276664,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/tQBGTi2.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":2610,\"is_album\":false},{\"id\":\"H1Gtlsd\",\"title\":\"Mount Fitz Roy, Argentina. [1920x1200]\",\"description\":null,\"datetime\":1493640003,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":1920,\"height\":1200,\"size\":574354,\"views\":2443,\"bandwidth\":1403146822,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/H1Gtlsd.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":2443,\"is_album\":false},{\"id\":\"mn0Mgjn\",\"title\":\"Who Knew Bangladesh Was Beautiful? [2500x1875][OC]\",\"description\":null,\"datetime\":1493608803,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":2500,\"height\":1874,\"size\":2152428,\"views\":2139,\"bandwidth\":4604043492,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/mn0Mgjn.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":2135,\"is_album\":false},{\"id\":\"fjRgUXU\",\"title\":\"Wyoming's Beautiful Red Hillsides Covered in Snow[1600x1064] [OC]\",\"description\":\"View from Wyoming 28 NNW towards Lander, WY and the Wind River Reservation\",\"datetime\":1493599803,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":1600,\"height\":1064,\"size\":413390,\"views\":1841,\"bandwidth\":761050990,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/fjRgUXU.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":1830,\"is_album\":false},{\"id\":\"AtGAnlL\",\"title\":\"Nauyaca waterfalls, Dominical, Puntarenas, Costa Rica [OC] [4032x3024]\",\"description\":null,\"datetime\":1493662202,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":1512,\"height\":2016,\"size\":807179,\"views\":2013,\"bandwidth\":1624851327,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/AtGAnlL.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":1801,\"is_album\":false},{\"id\":\"G0nc9Cw\",\"title\":\"Swiss forest [5312x2988]\",\"description\":null,\"datetime\":1493628603,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":2125,\"height\":1195,\"size\":822524,\"views\":1640,\"bandwidth\":1348939360,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/G0nc9Cw.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":1640,\"is_album\":false},{\"id\":\"rWSUNa4\",\"title\":\"Such a hard walk to get here at 4600m, but worth it! Lagoon 69, Peru [OC] [3264x1836]\",\"description\":\"4600m altitude, killer hike. #Earthporn\",\"datetime\":1493671803,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":3264,\"height\":1836,\"size\":1000847,\"views\":1864,\"bandwidth\":1865578808,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/rWSUNa4.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":1534,\"is_album\":false},{\"id\":\"nRb0mHU\",\"title\":\"Paro Valley, Bhutan [2500x650][OC]\",\"description\":null,\"datetime\":1493609402,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":2500,\"height\":650,\"size\":813010,\"views\":1506,\"bandwidth\":1224393060,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/nRb0mHU.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":1505,\"is_album\":false},{\"id\":\"KhEVbFu\",\"title\":\"Went to \\u00c5re, Sweden, for some After Ski and took this whilst drunk (4032x2046 )\",\"description\":null,\"datetime\":1493670002,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":4032,\"height\":2046,\"size\":647324,\"views\":1100,\"bandwidth\":712056400,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/KhEVbFu.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":873,\"is_album\":false},{\"id\":\"Yo82Voc\",\"title\":\"Zhangjiajie National Park, China [1920x1200]\",\"description\":null,\"datetime\":1493593203,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":1920,\"height\":1200,\"size\":995801,\"views\":406939,\"bandwidth\":405230263139,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/Yo82Voc.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":174,\"is_album\":false},{\"id\":\"XnIjxzp\",\"title\":\"Pic from this weekends storms in south eastern Illinois\",\"description\":null,\"datetime\":1493647826,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":3264,\"height\":1836,\"size\":844596,\"views\":13,\"bandwidth\":10979748,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/XnIjxzp.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":13,\"is_album\":false},{\"id\":\"uMA4I7J\",\"title\":\"Grand Canyon from Nankoweap Granary [OC] [12216 \\u00d7 3896]\",\"description\":null,\"datetime\":1493594403,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":9773,\"height\":3117,\"size\":4425163,\"views\":2013,\"bandwidth\":8907853119,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/uMA4I7J.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":0,\"is_album\":false},{\"id\":\"ZpmWhX1\",\"title\":\"Got seat-belted into a trusty helicopter as the pilot carefully flew me over the N\\u0101 Pali Coast of Kauai, Hawaii to take this shot [OC][2048x1365]\",\"description\":null,\"datetime\":1493676686,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":2048,\"height\":1366,\"size\":1992394,\"views\":1891,\"bandwidth\":3767617054,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/ZpmWhX1.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":0,\"is_album\":false},{\"id\":\"wI7hn2J\",\"title\":\"West Virginia may have it's issues, but it sure is beautiful. Cabins, WV [5344x3066]\",\"description\":null,\"datetime\":1493594403,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":2138,\"height\":1202,\"size\":756545,\"views\":1759,\"bandwidth\":1330762655,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/wI7hn2J.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":0,\"is_album\":false},{\"id\":\"lCutGyD\",\"title\":\"Crab Beach at the end of Cannibal Island Road, Humboldt County, CA [2000x1125] [OC]\",\"description\":null,\"datetime\":1493595603,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":2000,\"height\":1125,\"size\":474211,\"views\":3106,\"bandwidth\":1472899366,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/lCutGyD.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":0,\"is_album\":false}],\"success\":true,\"status\":200}"
}
]
},
{
"name": "Subreddit Image",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/r/{{subreddit}}/{{subredditImageId}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"r",
"{{subreddit}}",
"{{subredditImageId}}"
]
},
"description": "View a single image in the subreddit\n\n| Key | Required | Value |\n|-----------|----------|-------------------------------|\n| subreddit | required | A valid subreddit name, ie `earthporn` |\n| image_id | required | The ID for the image. |"
},
"response": [
{
"id": "51f2efdc-f2bc-4ad5-8433-c6a59ca13473",
"name": "Sample Response",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/r/{{subreddit}}/{{subredditImageId}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"r",
"{{subreddit}}",
"{{subredditImageId}}"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Age",
"value": "0",
"name": "Age",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Length",
"value": "360",
"name": "Content-Length",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Mon, 01 May 2017 23:03:20 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"f0c272ef6b4c973d8ad7948ae86b5cc63ef3173a\"",
"name": "ETag",
"description": ""
},
{
"key": "Fastly-Debug-Digest",
"value": "b0310a12f20ad36bd053b94f84c6f38437ec622543e9b8152375ed0568859998",
"name": "Fastly-Debug-Digest",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS, MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0, 0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-iad2146-IAD, cache-sea1025-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1493679800.815975,VS0,VE834",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "0ac920e771a1be71e700fdefdb22232a",
"key": "IMGURSESSION"
},
{
"expires": "Invalid Date",
"httpOnly": true,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "1",
"key": "_nc"
},
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "api.imgur.com",
"path": "/",
"secure": false,
"value": "496bdd0d6f02f181ae3fe2eaf473380f%7E2yespXiWCe7Ur6k3qf5jgS7iksNTeBC6",
"key": "authautologin"
}
],
"responseTime": "993",
"body": "{\"data\":{\"id\":\"QJa0R6q\",\"title\":\"Shiprock - New Mexico [OC][1080x644]\",\"description\":null,\"datetime\":1493611803,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":1080,\"height\":644,\"size\":86174,\"views\":149667,\"bandwidth\":12897404058,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"EarthPorn\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":false,\"in_gallery\":false,\"link\":\"http:\\/\\/i.imgur.com\\/QJa0R6q.jpg\",\"comment_count\":null,\"ups\":null,\"downs\":null,\"points\":null,\"score\":149665,\"is_album\":false},\"success\":true,\"status\":200}"
}
]
},
{
"name": "Gallery Tag",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/t/{{tagName}}/{{sort}}/{{window}}/{{page}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"t",
"{{tagName}}",
"{{sort}}",
"{{window}}",
"{{page}}"
]
},
"description": "Returns tag metadata, and posts tagged with the `tagName` provided"
},
"response": []
},
{
"name": "Gallery Tags",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"postman.setNextRequest('Image/Image Upload');",
"",
"tests[\"test test\"] = true;"
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/tags",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"tags"
]
},
"description": "Gets a list of default tags"
},
"response": [
{
"id": "27374b34-869d-42b0-9b80-9f6c5e5229c6",
"name": "default",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/tags",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"tags"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Age",
"value": "0",
"name": "Age",
"description": ""
},
{
"key": "Cache-Control",
"value": "max-age=600, stale-while-revalidate=600, stale-if-error=86400, public",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Fri, 07 Apr 2017 19:54:27 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"654638dca6af713e4a605743db1b1e44e57e64e8\"",
"name": "ETag",
"description": ""
},
{
"key": "Fastly-Debug-Digest",
"value": "1fdea3c3defc52d7ceb7d4b907f719afb783012504318a46a435dc407e043b58",
"name": "Fastly-Debug-Digest",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Backstage",
"value": "102",
"name": "X-Backstage",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS, MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0, 0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-iad2134-IAD, cache-sea1045-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [],
"responseTime": "179",
"body": "{\"data\":{\"tags\":[{\"id\":\"32179\",\"name\":\"embroidery\",\"display_name\":\"embroidery\",\"followers\":0,\"total_items\":270,\"background_hash\":\"iPuYto5\"},{\"id\":\"7003\",\"name\":\"rick_and_morty\",\"display_name\":\"rick and morty\",\"followers\":61,\"total_items\":2040,\"background_hash\":\"gmFssAG\"},{\"id\":\"112\",\"name\":\"gaming\",\"display_name\":\"gaming\",\"followers\":1924,\"total_items\":116988,\"background_hash\":\"IHP8OaT\"},{\"id\":\"745\",\"name\":\"aww\",\"display_name\":\"aww\",\"followers\":163,\"total_items\":81401,\"background_hash\":\"CEN9s8K\"},{\"id\":\"1836014\",\"name\":\"science_and_tech\",\"display_name\":\"science and tech\",\"followers\":9,\"total_items\":834,\"background_hash\":\"CLrdVV6\"},{\"id\":\"1571089\",\"name\":\"air_swimming\",\"display_name\":\"air swimming\",\"followers\":0,\"total_items\":2,\"background_hash\":\"1vLtpXB\"},{\"id\":\"50086\",\"name\":\"current_events\",\"display_name\":\"current events\",\"followers\":27,\"total_items\":3813,\"background_hash\":\"Iyz9AJZ\"},{\"id\":\"1012\",\"name\":\"photography\",\"display_name\":\"photography\",\"followers\":95,\"total_items\":13811,\"background_hash\":\"JjJ7UBc\"},{\"id\":\"427\",\"name\":\"anime\",\"display_name\":\"anime\",\"followers\":1046,\"total_items\":15267,\"background_hash\":\"1O08gF2\"},{\"id\":\"1\",\"name\":\"funny\",\"display_name\":\"funny\",\"followers\":2608,\"total_items\":358356,\"background_hash\":\"5T5koLx\"},{\"id\":\"301\",\"name\":\"puppy\",\"display_name\":\"puppy\",\"followers\":84,\"total_items\":9018,\"background_hash\":\"1dQGsS9\"},{\"id\":\"181\",\"name\":\"cosplay\",\"display_name\":\"cosplay\",\"followers\":355,\"total_items\":15412,\"background_hash\":\"cZWZSmA\"},{\"id\":\"151\",\"name\":\"cats\",\"display_name\":\"cats\",\"followers\":289,\"total_items\":12751,\"background_hash\":\"qFtpv4k\"},{\"id\":\"133\",\"name\":\"memes\",\"display_name\":\"memes\",\"followers\":581,\"total_items\":230846,\"background_hash\":\"IkZeAAy\"},{\"id\":\"24034\",\"name\":\"golden_retriever\",\"display_name\":\"golden retriever\",\"followers\":9,\"total_items\":657,\"background_hash\":\"rKAbi90\"},{\"id\":\"10337\",\"name\":\"perfect_loop\",\"display_name\":\"perfect loop\",\"followers\":22,\"total_items\":1351,\"background_hash\":\"R1dEESs\"},{\"id\":\"1828820\",\"name\":\"eat_what_you_want\",\"display_name\":\"eat what you want\",\"followers\":3,\"total_items\":800,\"background_hash\":\"tvBBQUq\"},{\"id\":\"1042\",\"name\":\"minecraft\",\"display_name\":\"minecraft\",\"followers\":102,\"total_items\":14170,\"background_hash\":\"Ikykl3U\"},{\"id\":\"10723\",\"name\":\"fitness\",\"display_name\":\"fitness\",\"followers\":161,\"total_items\":2442,\"background_hash\":\"f8B0kEw\"},{\"id\":\"12427\",\"name\":\"creativity\",\"display_name\":\"creativity\",\"followers\":15,\"total_items\":2313,\"background_hash\":\"NanxezK\"},{\"id\":\"4717\",\"name\":\"nostalgia\",\"display_name\":\"nostalgia\",\"followers\":19,\"total_items\":1550,\"background_hash\":\"uEdCS9t\"},{\"id\":\"2124623\",\"name\":\"wholesome\",\"display_name\":\"wholesome\",\"followers\":5,\"total_items\":0,\"background_hash\":\"6xwDMxF\"},{\"id\":\"34\",\"name\":\"tattoo\",\"display_name\":\"tattoo\",\"followers\":121,\"total_items\":5347,\"background_hash\":\"S8izsI3\"},{\"id\":\"85\",\"name\":\"pokemon\",\"display_name\":\"pokemon\",\"followers\":329,\"total_items\":12228,\"background_hash\":\"0hNEBcR\"},{\"id\":\"2398\",\"name\":\"lego\",\"display_name\":\"lego\",\"followers\":34,\"total_items\":3182,\"background_hash\":\"oB1KOoT\"},{\"id\":\"49\",\"name\":\"diy\",\"display_name\":\"diy\",\"followers\":223,\"total_items\":6904,\"background_hash\":\"QL9pTeJ\"},{\"id\":\"25\",\"name\":\"wallpaper\",\"display_name\":\"wallpaper\",\"followers\":499,\"total_items\":8540,\"background_hash\":\"R1dEESs\"},{\"id\":\"2743\",\"name\":\"banana_for_scale\",\"display_name\":\"banana for scale\",\"followers\":7,\"total_items\":2061,\"background_hash\":\"OFLek0A\"},{\"id\":\"40\",\"name\":\"art\",\"display_name\":\"art\",\"followers\":303,\"total_items\":140374,\"background_hash\":\"f8B0kEw\"},{\"id\":\"640668\",\"name\":\"the_great_outdoors\",\"display_name\":\"the great outdoors\",\"followers\":6,\"total_items\":918,\"background_hash\":\"zU89CUx\"},{\"id\":\"103\",\"name\":\"star_wars\",\"display_name\":\"star wars\",\"followers\":285,\"total_items\":17778,\"background_hash\":\"UCUaMEu\"},{\"id\":\"814\",\"name\":\"gifs\",\"display_name\":\"gifs\",\"followers\":164,\"total_items\":3673,\"background_hash\":\"qaYq4fG\"},{\"id\":\"1024\",\"name\":\"awesome\",\"display_name\":\"awesome\",\"followers\":129,\"total_items\":29118,\"background_hash\":\"x0HXbK1\"},{\"id\":\"55060\",\"name\":\"movies_and_tv\",\"display_name\":\"movies and tv\",\"followers\":1,\"total_items\":2043,\"background_hash\":\"C0pGMbY\"},{\"id\":\"18838\",\"name\":\"storytime\",\"display_name\":\"storytime\",\"followers\":9,\"total_items\":604,\"background_hash\":\"jhE5UKO\"},{\"id\":\"50866\",\"name\":\"inspiring\",\"display_name\":\"inspiring\",\"followers\":39,\"total_items\":84811,\"background_hash\":\"mr4OtIu\"},{\"id\":\"3211\",\"name\":\"the_more_you_know\",\"display_name\":\"the more you know\",\"followers\":73,\"total_items\":3857,\"background_hash\":\"EpmW3Oy\"},{\"id\":\"55870\",\"name\":\"old_school_cool\",\"display_name\":\"old school cool\",\"followers\":0,\"total_items\":62,\"background_hash\":\"fzXe2ol\"},{\"id\":\"9907\",\"name\":\"transformation\",\"display_name\":\"transformation\",\"followers\":10,\"total_items\":204,\"background_hash\":\"hWiiySS\"}],\"featured\":\"nostalgia\",\"galleries\":[{\"id\":0,\"name\":\"Most Viral\",\"description\":\"Today's most popular posts\",\"topPost\":{\"id\":\"FimF0\",\"title\":\"sexting 101\",\"description\":null,\"datetime\":1491566570,\"cover\":\"zvqtvfh\",\"cover_width\":338,\"cover_height\":600,\"account_url\":\"svgn\",\"account_id\":24813003,\"privacy\":\"hidden\",\"layout\":\"blog\",\"views\":87615,\"link\":\"http:\\/\\/imgur.com\\/a\\/FimF0\",\"ups\":9410,\"downs\":130,\"points\":9280,\"score\":9280,\"is_album\":true,\"vote\":null,\"favorite\":null,\"nsfw\":false,\"section\":\"TrollXChromosomes\",\"comment_count\":397,\"topic\":\"No Topic\",\"topic_id\":29,\"images_count\":8,\"in_gallery\":true,\"is_ad\":false,\"tags\":[],\"in_most_viral\":true}},{\"id\":1,\"name\":\"User Submitted\",\"description\":\"Brand new posts shared in real time\",\"topPost\":{\"id\":\"q6TxQKy\",\"title\":\"Advancements in night vision technology\",\"description\":\"A Las Vegas-based company called SPI has a colour night vision sensor called the X27. The ultra-sensitive sensor is able to shoot both ordinary images during the day, as well as its colour night vision images at night. Point it up at the sky, and you\\u2019ll be able to clearly see stars and constellations.\\n\\nSource: https:\\/\\/www.youtube.com\\/watch?v=8bTgG2Ft4xQ\",\"datetime\":1491581287,\"type\":\"image\\/gif\",\"animated\":true,\"width\":720,\"height\":404,\"size\":27214090,\"views\":7927,\"bandwidth\":215726091430,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"gifs\",\"account_url\":\"TotallyNotABrownBear\",\"account_id\":38754689,\"is_ad\":false,\"tags\":[{\"name\":\"photography\",\"display_name\":\"photography\",\"followers\":95,\"total_items\":13811},{\"name\":\"science_and_tech\",\"display_name\":\"science and tech\",\"followers\":9,\"total_items\":834}],\"in_most_viral\":false,\"in_gallery\":true,\"topic\":\"No Topic\",\"topic_id\":29,\"mp4\":\"http:\\/\\/i.imgur.com\\/q6TxQKy.mp4\",\"gifv\":\"http:\\/\\/i.imgur.com\\/q6TxQKy.gifv\",\"mp4_size\":2013900,\"link\":\"http:\\/\\/i.imgur.com\\/q6TxQKyh.gif\",\"looping\":true,\"comment_count\":65,\"ups\":1349,\"downs\":4,\"points\":1345,\"score\":1348,\"is_album\":false}},{\"id\":2,\"name\":\"Random\",\"description\":\"A mix from the Imgur archives\",\"topPost\":{\"id\":\"GDaIC\",\"title\":\"Anyone know what this thing is? \",\"description\":null,\"datetime\":1302675303,\"type\":\"image\\/jpeg\",\"animated\":false,\"width\":1680,\"height\":1050,\"size\":317749,\"views\":123240,\"bandwidth\":39159386760,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"pics\",\"account_url\":null,\"account_id\":null,\"is_ad\":false,\"tags\":[],\"in_most_viral\":true,\"in_gallery\":true,\"topic\":null,\"topic_id\":0,\"link\":\"http:\\/\\/i.imgur.com\\/GDaIC.jpg\",\"comment_count\":72,\"ups\":399,\"downs\":4,\"points\":395,\"score\":456,\"is_album\":false}},{\"id\":3,\"name\":\"Staff Picks\",\"description\":\"Great posts picked by Imgur staff\",\"topPost\":{\"id\":\"PyumGeD\",\"title\":\"This made me laugh and smile.\",\"description\":null,\"datetime\":1491576109,\"type\":\"image\\/gif\",\"animated\":true,\"width\":720,\"height\":720,\"size\":34276628,\"views\":32415,\"bandwidth\":1111076896620,\"vote\":null,\"favorite\":false,\"nsfw\":false,\"section\":\"gifs\",\"account_url\":\"TheOneThatGotBanned\",\"account_id\":11170171,\"is_ad\":false,\"tags\":[{\"name\":\"funny\",\"display_name\":\"funny\",\"followers\":2608,\"total_items\":358356},{\"name\":\"aww\",\"display_name\":\"aww\",\"followers\":163,\"total_items\":81401},{\"name\":\"funny_animal\",\"display_name\":\"funny animal\",\"followers\":11,\"total_items\":717},{\"name\":\"staff_picks\",\"display_name\":\"staff picks\",\"followers\":6,\"total_items\":0}],\"in_most_viral\":true,\"in_gallery\":true,\"topic\":\"No Topic\",\"topic_id\":29,\"mp4\":\"http:\\/\\/i.imgur.com\\/PyumGeD.mp4\",\"gifv\":\"http:\\/\\/i.imgur.com\\/PyumGeD.gifv\",\"mp4_size\":1953844,\"link\":\"http:\\/\\/i.imgur.com\\/PyumGeDh.gif\",\"looping\":true,\"comment_count\":82,\"ups\":2008,\"downs\":56,\"points\":1952,\"score\":1968,\"is_album\":false}}]},\"success\":true,\"status\":200}"
}
]
},
{
"name": "Gallery Tag Info",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"postman.setNextRequest('Image/Image Upload');",
"",
"tests[\"test test\"] = true;"
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/tag_info/{{tagName}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"tag_info",
"{{tagName}}"
]
},
"description": "Gets metadata about a tag"
},
"response": [
{
"id": "9492cae8-3215-4455-892d-45f6029c4263",
"name": "Sample Response",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/tag_info/{{tagName}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"tag_info",
"{{tagName}}"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Accept-Ranges",
"value": "bytes",
"name": "Accept-Ranges",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Age",
"value": "0",
"name": "Age",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "keep-alive",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Length",
"value": "209",
"name": "Content-Length",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Mon, 01 May 2017 23:07:51 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"5a56ce1a98501a15bf140a5153123fd2872d2660\"",
"name": "ETag",
"description": ""
},
{
"key": "Fastly-Debug-Digest",
"value": "d8d41765403e061c7588a1fe905f6349874d7cdb25d44e22d90bf2334f005d3a",
"name": "Fastly-Debug-Digest",
"description": ""
},
{
"key": "Server",
"value": "cat factory 1.0",
"name": "Server",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Cache",
"value": "MISS, MISS",
"name": "X-Cache",
"description": ""
},
{
"key": "X-Cache-Hits",
"value": "0, 0",
"name": "X-Cache-Hits",
"description": ""
},
{
"key": "X-Frame-Options",
"value": "DENY",
"name": "X-Frame-Options",
"description": ""
},
{
"key": "X-Redux",
"value": "1",
"name": "X-Redux",
"description": ""
},
{
"key": "X-Served-By",
"value": "cache-iad2126-IAD, cache-sea1031-SEA",
"name": "X-Served-By",
"description": ""
},
{
"key": "X-Timer",
"value": "S1493680071.956339,VS0,VE91",
"name": "X-Timer",
"description": ""
},
{
"key": "access-control-allow-headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "access-control-allow-headers",
"description": ""
},
{
"key": "access-control-allow-methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "access-control-allow-methods",
"description": ""
},
{
"key": "access-control-allow-origin",
"value": "*",
"name": "access-control-allow-origin",
"description": ""
}
],
"cookie": [
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "0ac920e771a1be71e700fdefdb22232a",
"key": "IMGURSESSION"
},
{
"expires": "Invalid Date",
"httpOnly": true,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "1",
"key": "_nc"
},
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "api.imgur.com",
"path": "/",
"secure": false,
"value": "496bdd0d6f02f181ae3fe2eaf473380f%7E2yespXiWCe7Ur6k3qf5jgS7iksNTeBC6",
"key": "authautologin"
}
],
"responseTime": "297",
"body": "{\"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,\"logo_destination_url\":null,\"description_annotations\":{}},\"success\":true,\"status\":200}"
}
]
},
{
"name": "Gallery Item Tags",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/{{galleryHash}}/tags",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"{{galleryHash}}",
"tags"
]
},
"description": "| Key | Required | Value |\n|-----|----------|------------------------|\n| id | required | ID of the gallery item |"
},
"response": []
},
{
"name": "Update Gallery Item Tags",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "id",
"value": "{{galleryHash}}",
"type": "text",
"description": "Required. ID of the gallery item"
},
{
"key": "tags",
"value": "funny,cats",
"type": "text",
"description": "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"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/gallery/tags/{{galleryHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"tags",
"{{galleryHash}}"
]
},
"description": "Update the tags for a post in the gallery"
},
"response": []
},
{
"name": "Gallery Search",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/search/{{sort}}/{{window}}/{{page}}?q=cats",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"search",
"{{sort}}",
"{{window}}",
"{{page}}"
],
"query": [
{
"key": "q",
"value": "cats"
}
]
},
"description": "Search the gallery with a given query string.\n\n\n#### Parameters\n| Key | Required | Value |\n|--------|----------|--------------------------------------------------------------------------------------------------------------|\n| sort | optional | time &#124; viral &#124; top - defaults to time |\n| window | optional | Change the date range of the request if the sort is 'top', day &#124; week &#124; month &#124; year &#124; all, defaults to all. |\n| page | optional | integer - the data paging number |\n\n\n#### Simple Search Query Parameters\n\n| Key | Value |\n|-----|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 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' |\n\n\n\n#### Advanced Search Query Parameters\n\n| Key | Value |\n|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| q_all | Search for all of these words (and) |\n| q_any | Search for any of these words (or) |\n| q_exactly | Search for exactly this word or phrase |\n| q_not | Exclude results matching this |\n| q_type | Show results for any file type, jpg &#124; png &#124; gif &#124; anigif (animated gif) &#124; album |\n| q_size_px | Size ranges, small (500 pixels square or less) &#124; med (500 to 2,000 pixels square) &#124; big (2,000 to 5,000 pixels square) &#124; lrg (5,000 to 10,000 pixels square) &#124; huge (10,000 square pixels and above) |"
},
"response": []
},
{
"name": "Random Gallery Images",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": ""
},
"description": "*DEPRECATED* Returns a random set of gallery images."
},
"response": []
},
{
"name": "Share with Community (Image)",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "title",
"value": "Get this cat to the front page",
"type": "text",
"description": "Required. The title of the image."
},
{
"key": "topic",
"value": "Funny",
"type": "text",
"description": "Optional. Topic name"
},
{
"key": "terms",
"value": "1",
"type": "text",
"description": "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`."
},
{
"key": "mature",
"value": "0",
"type": "text",
"description": "Optional. If the post is [mature](http://imgur.com/rules), set this value to `1`.",
"disabled": true
},
{
"key": "tags",
"value": "funny,cat",
"type": "text",
"description": "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`"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/gallery/image/{{imageHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"image",
"{{imageHash}}"
]
},
"description": "Share an Album or Image to the Gallery."
},
"response": []
},
{
"name": "Share with Community (Album)",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Share was successful'] = res.data === true;",
"",
"postman.setNextRequest('Album / Image Voting'); // Gallery -> Album / Image Voting"
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "title",
"value": "Get this cat to the front page",
"description": "Required. The title of the image."
},
{
"key": "topic",
"value": "Funny",
"description": "Optional. Topic name"
},
{
"key": "terms",
"value": "1",
"description": "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`."
},
{
"key": "mature",
"value": "0",
"description": "Optional. If the post is [mature](http://imgur.com/rules), set this value to `1`."
},
{
"key": "tags",
"value": "funny,cat",
"description": "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`"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/gallery/album/{{albumHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"album",
"{{albumHash}}"
]
},
"description": "Share an Album or Image to the Gallery."
},
"response": []
},
{
"name": "Remove from Gallery",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Removal was successful'] = res.data === true && res.success === true;",
"",
"postman.setNextRequest('Album Deletion (Authed)'); // Album -> Album Deletion (Authed)"
]
}
}
],
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/{{galleryHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"{{galleryHash}}"
]
},
"description": "Remove an image from the public gallery. You must be logged in as the owner of the item to do this action."
},
"response": []
},
{
"name": "Gallery Album",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/album/{{galleryHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"album",
"{{galleryHash}}"
]
},
"description": "Get additional information about an album in the gallery.\n\n#### Response Model: [Gallery Album](https://api.imgur.com/models/gallery_album)"
},
"response": []
},
{
"name": "Gallery Image",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/image/{{galleryImageHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"image",
"{{galleryImageHash}}"
]
},
"description": "Get additional information about an image in the gallery."
},
"response": []
},
{
"name": "Album / Image Reporting",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "reason",
"value": "1",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/gallery/image/{{galleryHash}}/report",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"image",
"{{galleryHash}}",
"report"
]
},
"description": "Report an Image in the gallery\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|--------|----------|---------------------------------------------------|\n| reason | optional | An integer representing the reason for the report (see codes below) |\n\n\n#### Report Reason Codes\n\n| Value | Description |\n|-------|-------------------------------------|\n| 1 | Doesn't belong on Imgur |\n| 2 | Spam |\n| 3 | Abusive |\n| 4 | Mature content not marked as mature |\n| 5 | Pornography |"
},
"response": []
},
{
"name": "Album / Image Votes",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Number of upvotes is 1'] = res.data.ups === 1; // should be 1 if running in monitor, since this is a newly created post and we just upvoted it",
"tests['Number of downvotes is 0'] = res.data.downs === 0;",
"",
"postman.setNextRequest('Album / Image Comment Creation'); // Gallery -> Album / Image Comment Creation"
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/{{galleryHash}}/votes",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"{{galleryHash}}",
"votes"
]
},
"description": "Get the vote information about an image\n\n#### Response Model: [Vote](https://api.imgur.com/models/vote)"
},
"response": []
},
{
"name": "Album / Image Voting",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Vote was successful'] = res.data === true && res.success === true;",
"",
"postman.setNextRequest('Album / Image Votes'); // Gallery -> Album / Image Votes"
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/{{galleryHash}}/vote/{{vote}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"{{galleryHash}}",
"vote",
"{{vote}}"
]
},
"description": "Vote for an image, `up` or `down` vote. Send `veto` to undo a vote.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Album / Image Comments",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Comment retrieval was successful'] = res.success === true;",
"",
"tests['Returns Correct Comment ID'] = res.data[0] && res.data[0].id == postman.getEnvironmentVariable('commentId');",
"tests['Returns Correct Image ID'] = res.data[0] && res.data[0].image_id == postman.getEnvironmentVariable('galleryHash'); // Technically this can also be album id. We should probably specify in the response",
"tests['Returns Correct Comment Data'] = res.data[0] && res.data[0].comment == postman.getEnvironmentVariable('commentText');",
"tests['Returns Correct Author Username'] = res.data[0] && res.data[0].author == postman.getEnvironmentVariable('username');",
"// tests['Returns A Valid Platform'] = [\"iphone\", \"android\", \"desktop\", \"mweb\"].indexOf(res.data[0].platform) > -1;",
"",
"postman.setNextRequest('Remove from Gallery'); // Gallery -> Remove from Gallery"
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "access_token",
"value": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImYwMmZkODgwOTNmNTQ2Mjg1MDY2YTNmNGQxNGNiMzBhZTZhY2MyM2YifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhdWQiOiI4NDEzNTkzNTM5ODgtcml0aWhjNDRhdjVwZGwydTBlZWticWI3NzlvaGg2Ym4uYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMDY3OTQ2NzEyMzA5MjA4NTQ0MTUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXpwIjoiODQxMzU5MzUzOTg4LThiMzVsNWFwZTFuYzdyYzR0cm9pYWpqbHRwbWI5cXFkLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJkcGFzdHVzZWtAZ21haWwuY29tIiwiaWF0IjoxNDU1MTQwMDQyLCJleHAiOjE0NTUxNDM2NDIsIm5hbWUiOiJEYW4gUGFzdHVzZWsiLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDQuZ29vZ2xldXNlcmNvbnRlbnQuY29tLy0yMXV3LVVaMmttMC9BQUFBQUFBQUFBSS9BQUFBQUFBQUZsdy9QcjVLdDdVckxaay9zOTYtYy9waG90by5qcGciLCJnaXZlbl9uYW1lIjoiRGFuIiwiZmFtaWx5X25hbWUiOiJQYXN0dXNlayIsImxvY2FsZSI6ImVuIn0.DcCxKOoMHVUBIppiJDBqLMPUoJk_FMv9RAQNl8mh7HNia3iq5jQCNIea0h3B6-akf7vxfp__b4f3N59qnOcmd4zdAYCT7zO5YubHhyeoOXENwueoTbKzexoNmZMPDZUrKqj-4sAqscHuiJmT2Nwwkdu2g8cFxI0-TpQVHAspJJJ5r_oMP45kdeRpwYV2R7Azct-vYs6QxQaQMn6_azm9Va7HckEop4my8wMoCfAbF1gDiB-JNW63QSzBFBK7SMNXOcrkssoGP3zXdfqjIdU1MK3Wx6i8zqEiV1IrI8XglvWnhIO7z0R_8AAG37DruKNg3HtGRgNtt0grE48ELnQ-zA",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/gallery/{{galleryHash}}/comments/{{commentSort}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"{{galleryHash}}",
"comments",
"{{commentSort}}"
]
},
"description": "Get comments on an image or album in the gallery.\n\n`galleryHash` is the unique identifier of an album or image in the gallery.\n\n`commentSort` is one of `best` | `top` | `new` - defaults to `best`."
},
"response": []
},
{
"name": "Album / Image Comment",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"var commentId = res.data.id;",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Comment retrieval was successful'] = res.success === true;",
"",
"tests['Returns Correct Comment ID'] = res.data.id == postman.getEnvironmentVariable('commentId');",
"tests['Returns Correct Image ID'] = res.data.image_id == postman.getEnvironmentVariable('galleryHash'); // Technically this can also be album id. We should probably specify in the response",
"tests['Returns Correct Comment Data'] = res.data.comment == postman.getEnvironmentVariable('commentText');",
"tests['Returns Correct Author Username'] = res.data.author == postman.getEnvironmentVariable('username');",
"// tests['Returns A Valid Platform'] = [\"iphone\", \"android\", \"desktop\", \"mweb\"].indexOf(res.data.platform) > -1;",
"",
"postman.setNextRequest('Album / Image Comments'); // Gallery -> Album / Image Comment"
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/gallery/{{galleryHash}}/comment/{{commentId}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"{{galleryHash}}",
"comment",
"{{commentId}}"
]
},
"description": "Information about a specific comment. This action also allows any of the additional actions provided in the [Comment Endpoint](https://api.imgur.com/endpoints/comment)."
},
"response": []
},
{
"name": "Album / Image Comment Creation",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"var commentId = res.data.id;",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Comment creation was successful'] = res.success === true;",
"",
"postman.setEnvironmentVariable('commentId', commentId);",
"",
"postman.setNextRequest('Album / Image Comment'); // Gallery -> Album / Image Comment"
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "comment",
"value": "{{commentText}}",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/gallery/{{galleryHash}}/comment",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"gallery",
"{{galleryHash}}",
"comment"
]
},
"description": "#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Value |\n|---------|----------|--------------------------|\n| comment | required | The text of the comment. |"
},
"response": []
}
]
},
{
"name": "Image",
"description": "",
"item": [
{
"name": "Image",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/image/{{imageHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"image",
"{{imageHash}}"
]
},
"description": "Get information about an image."
},
"response": []
},
{
"name": "Image Upload",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"var imageHash = res.data.id;",
"var imageDeleteHash = res.data.deletehash;",
"tests['Returns 7 char alphanumeric id'] = /^[a-z0-9]{7}$/i.test(imageHash);",
"tests['Returns 15 char alhpanumeric deletehash'] = /^[a-z0-9]{15}$/i.test(imageDeleteHash);",
"",
"postman.setEnvironmentVariable('imageHash', imageHash);",
"postman.setEnvironmentVariable('imageDeleteHash', imageDeleteHash);",
"",
"postman.setNextRequest('Account Images'); // Account -> Account Images"
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}",
"disabled": true
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "image",
"value": "R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
"type": "text",
"description": "*required* A binary file, base64 data, or a URL for an image. (up to 10MB)"
},
{
"key": "album",
"value": "{{albumHash}}",
"description": "[optional] The album",
"type": "text",
"disabled": true
},
{
"key": "title",
"value": "1x1 Pixel",
"type": "text",
"disabled": true
},
{
"key": "description",
"value": "This is an 1x1 pixel image.",
"type": "text",
"disabled": true
},
{
"key": "name",
"value": "pixel.gif",
"type": "text",
"disabled": true
},
{
"key": "type",
"value": "gif",
"type": "text",
"disabled": true
}
]
},
"url": {
"raw": "https://api.imgur.com/3/image",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"image"
]
},
"description": "Upload a new image.\n\n#### Parameters\n\n| Key | Required | Description |\n|-------------|----------|----------------------------------------------------------------------------------------------------------------------------------------|\n| image | required | A binary file, base64 data, or a URL for an image. (up to 10MB) |\n| album | optional | 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. |\n| type | optional | The type of the file that's being sent; `file`, `base64` or `URL` |\n| name | optional | The name of the file, this is automatically detected if uploading a file with a POST and multipart / form-data |\n| title | optional | The title of the image. |\n| description | optional | The description of the image. |"
},
"response": [
{
"id": "3ce8e0ca-7e6e-4723-8220-1e4fb1db3b56",
"name": "Sample Anonymous Upload",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}",
"disabled": true
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "image",
"value": "R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
"type": "text",
"description": ""
},
{
"key": "album",
"value": "{{albumHash}}",
"description": "",
"type": "text",
"disabled": true
},
{
"key": "title",
"value": "1x1 Pixel",
"type": "text",
"disabled": true
},
{
"key": "description",
"value": "This is an 1x1 pixel image.",
"type": "text",
"disabled": true
},
{
"key": "name",
"value": "pixel.gif",
"type": "text",
"disabled": true
},
{
"key": "type",
"value": "gif",
"description": "",
"type": "text",
"disabled": true
}
]
},
"url": {
"raw": "https://api.imgur.com/3/image",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"image"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewtype": "html",
"header": [
{
"key": "Access-Control-Allow-Headers",
"value": "Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, SESSIONCOUNT, IMGURMWBETA, IMGURMWBETAOPTIN",
"name": "Access-Control-Allow-Headers",
"description": ""
},
{
"key": "Access-Control-Allow-Methods",
"value": "GET, PUT, POST, DELETE, OPTIONS",
"name": "Access-Control-Allow-Methods",
"description": ""
},
{
"key": "Access-Control-Allow-Origin",
"value": "*",
"name": "Access-Control-Allow-Origin",
"description": ""
},
{
"key": "Access-Control-Expose-Headers",
"value": "X-RateLimit-ClientLimit, X-RateLimit-ClientRemaining, X-RateLimit-UserLimit, X-RateLimit-UserRemaining, X-RateLimit-UserReset",
"name": "Access-Control-Expose-Headers",
"description": ""
},
{
"key": "Cache-Control",
"value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"name": "Cache-Control",
"description": ""
},
{
"key": "Connection",
"value": "close",
"name": "Connection",
"description": ""
},
{
"key": "Content-Encoding",
"value": "gzip",
"name": "Content-Encoding",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": ""
},
{
"key": "Date",
"value": "Tue, 23 May 2017 16:28:10 GMT",
"name": "Date",
"description": ""
},
{
"key": "ETag",
"value": "W/\"f8e9f040e2b6ba2ebf5c836309b5cb50cf4b7368\"",
"name": "ETag",
"description": ""
},
{
"key": "Expires",
"value": "Thu, 19 Nov 1981 08:52:00 GMT",
"name": "Expires",
"description": ""
},
{
"key": "Pragma",
"value": "no-cache",
"name": "Pragma",
"description": ""
},
{
"key": "Server",
"value": "nginx",
"name": "Server",
"description": ""
},
{
"key": "Transfer-Encoding",
"value": "chunked",
"name": "Transfer-Encoding",
"description": ""
},
{
"key": "Vary",
"value": "Accept-Encoding",
"name": "Vary",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Limit",
"value": "1250",
"name": "X-Post-Rate-Limit-Limit",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Remaining",
"value": "1250",
"name": "X-Post-Rate-Limit-Remaining",
"description": ""
},
{
"key": "X-Post-Rate-Limit-Reset",
"value": "-2",
"name": "X-Post-Rate-Limit-Reset",
"description": ""
},
{
"key": "X-origin-ip",
"value": "172.16.2.228",
"name": "X-origin-ip",
"description": ""
}
],
"cookie": [
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "259f1853850b21cb4df8bc5bd15b7884",
"key": "IMGURSESSION"
},
{
"expires": "Invalid Date",
"httpOnly": true,
"domain": "imgur.com",
"path": "/",
"secure": false,
"value": "1",
"key": "_nc"
},
{
"expires": "Invalid Date",
"httpOnly": false,
"domain": "api.imgur.com",
"path": "/",
"secure": false,
"value": "upload.i-054973f4f04ffec62.production",
"key": "UPSERVERID"
}
],
"responseTime": "1620",
"body": "{\n \"data\": {\n \"id\": \"orunSTu\",\n \"title\": null,\n \"description\": null,\n \"datetime\": 1495556889,\n \"type\": \"image/gif\",\n \"animated\": false,\n \"width\": 1,\n \"height\": 1,\n \"size\": 42,\n \"views\": 0,\n \"bandwidth\": 0,\n \"vote\": null,\n \"favorite\": false,\n \"nsfw\": null,\n \"section\": null,\n \"account_url\": null,\n \"account_id\": 0,\n \"is_ad\": false,\n \"in_most_viral\": false,\n \"tags\": [],\n \"ad_type\": 0,\n \"ad_url\": \"\",\n \"in_gallery\": false,\n \"deletehash\": \"x70po4w7BVvSUzZ\",\n \"name\": \"\",\n \"link\": \"http://i.imgur.com/orunSTu.gif\"\n },\n \"success\": true,\n \"status\": 200\n}"
}
]
},
{
"name": "Image Deletion (Un-Authed)",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"var res = JSON.parse(responseBody);",
"",
"tests[\"Successful delete\"] = res.success === true;"
]
}
}
],
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/image/{{imageDeleteHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"image",
"{{imageDeleteHash}}"
]
},
"description": "Deletes an image.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Image Deletion (Authed)",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// This endpoint is critical to the test flow, ",
"// so this stops the request cycle if any of these tests error.",
"postman.setNextRequest('end');",
"",
"var res = JSON.parse(responseBody);",
"",
"tests['Status code is 200'] = (responseCode.code === 200);",
"tests['Image deletion was successful'] = res.success === true && res.data === true;",
"",
"postman.setNextRequest('end'); // stop running tests by setting next request to an invalid name / id"
]
}
}
],
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/image/{{imageHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"image",
"{{imageHash}}"
]
},
"description": "Deletes an image.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
},
{
"name": "Update Image Information (Un-Authed)",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Client-ID {{clientId}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "title",
"value": "Heart",
"type": "text"
},
{
"key": "description",
"value": "This is an image of a heart outline.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/image/{{imageDeleteHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"image",
"{{imageDeleteHash}}"
]
},
"description": "Updates the title or description of an image.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|-------------|----------|-------------------------------|\n| title | optional | The title of the image. |\n| description | optional | The description of the image. |"
},
"response": []
},
{
"name": "Update Image Information (Authed)",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "title",
"value": "Heart",
"type": "text"
},
{
"key": "description",
"value": "This is an image of a heart outline.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.imgur.com/3/image/{{imageHash}}",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"image",
"{{imageHash}}"
]
},
"description": "Updates the title or description of an image.\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)\n\n#### Parameters\n\n| Key | Required | Description |\n|-------------|----------|-------------------------------|\n| title | optional | The title of the image. |\n| description | optional | The description of the image. |"
},
"response": []
},
{
"name": "Favorite an Image",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://api.imgur.com/3/image/{{imageHash}}/favorite",
"protocol": "https",
"host": [
"api",
"imgur",
"com"
],
"path": [
"3",
"image",
"{{imageHash}}",
"favorite"
]
},
"description": "Favorite an image with the given ID. The user is required to be logged in to favorite the image.\n\n\n#### Response Model: [Basic](https://api.imgur.com/models/basic)"
},
"response": []
}
]
}
]
}
@FutureFireplace
Copy link

Why is imgur so horribly hard to understand ... from "https://apidocs.imgur.com/?version=latest" ... it says 'In Postman, under the main request builder panel, click the Authorization tab. Click the Get New Access Token button.' which impossible to find in Postman-sw ?????????

@LifeIsStrange
Copy link

@FutureFireplace Once you are on the Authorization tab, you need to select Oauth2, then Get New Acess Token will be visible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment