Authentication With Imgur API
<p>So I'm writing a simple-ish script that can automatically download images from Imgur. I've come across the Imgur API but am struggling to get it to work. I registered an app but am not sure how to use it to be able to get information about images or albums. I do not want to be able to log in as a user or anything like that - just provide a URL of an album or a single image and be able to download it. </p>

<p>I've read that if I want to do this then I don't need to use the oauth stuff, I should just be able to use a client ID.</p>

<p><a href="https://www.reddit.com/r/learnprogramming/comments/2uzxfv/how_do_i_get_fully_authenticated_to_use_imgurs_api/" rel="nofollow">https://www.reddit.com/r/learnprogramming/comments/2uzxfv/how_do_i_get_fully_authenticated_to_use_imgurs_api/</a></p>

<p>The script I am writing is using Python, but just to test out the API I am typing the URL into the browser. If I go to the following URL:</p>

<p><a href="https://api.imgur.com/3/album/qTt8G?client_id=MY_CLIENT_ID" rel="nofollow">https://api.imgur.com/3/album/qTt8G?client_id=MY_CLIENT_ID</a></p>

<p>Then I receive the following response:</p>

<blockquote>
  <p>{"data":{"error":"Authentication
  required","request":"/3/album/qTt8G","method":"GET"},"success":false,"status":401}</p>
</blockquote>

<p>The full album URL is <a href="https://imgur.com/a/qTt8G" rel="nofollow">https://imgur.com/a/qTt8G</a>
I've tried reading through the API docs, but am stuck with this.</p>

<p>Useful info:</p>

<p><a href="https://api.imgur.com/oauth2" rel="nofollow">https://api.imgur.com/oauth2</a></p>

<p><a href="https://api.imgur.com/endpoints/album" rel="nofollow">https://api.imgur.com/endpoints/album</a></p>

<p>In the end I just used the Imgur API helper that is available on Github to do all the work. Just needed to provide the client ID and secret.</p>

<p><a href="https://github.com/Imgur/imgurpython" rel="nofollow">https://github.com/Imgur/imgurpython</a></p>

python api imgur