A Javascript client for the Imgur API.
You must register your client with the Imgur API, and provide the Client-ID to make any request to the API (see the Authentication note). If you want to perform actions on accounts, the user will have to authorize your application through OAuth2.
Our developer documentation can be found here.
The best way to reach out to Imgur for API support would be our Google Group, Twitter, or via [email protected].
npm install
npm install -g gulp
npm run test
to run testsnpm run build
for built library files imgur.min.js and imgur.js
var Imgur = require('imgur');
var imgurInstance = Imgur(<API CLIENT ID>, <OPTIONAL BEARER ID>);
All functions return a Promise
imgurInstance.image.get(imageHash)
imgurInstance.oauth2.get(tokenType)
imgurInstance.oauth2.refresh(tokenType, clientSecret)
imgurInstance.topics.get(topicId, topicSort, page)
imgurInstance.gallery.get(section, sort, page, showViral)
imgurInstance.gallery.post.get(postId)
imgurInstance.gallery.post.comments.get(postId, sort)