script for pulling data from imgur api


(pasted from 11/19 email to mb; would be great to have this completed by december 3 in time for november reporting)

i'm in the process of compiling a universal sets of stats for dpla pageviews across our different online presences, including places like facebook, tumblr, twitter, and imgur, which is what i wanted to ask you about.

we have posted a number of albums and individual images on imgur. the site provides statistics on any image and album that you post on the site, but you can really only view this on an item-by-item basis, not in bulk (except for albums, though imgur also has separate view tallies for the individual items in an album). this makes for very tedious data collection. imgur, however, does have an api that allows you to programmatically pull the miscellaneous data on your items, including total views for a given item, along with all sorts of other metadata.

so, long story short, would you be able to build a script using imgur's api that would pull data on all of our existing images and albums? you would need to register our "app" with imgur and set up an oauth 2.0 connection to start. the output for running the script could be a simple .csv file; i'm happy to reformat/manipulate the data as needed.

here is an overview ( of how their api works:

> Imgur's API exposes the entire Imgur infrastructure via a standardized programmatic interface. Using Imgur's API, you can do just about anything you can do on, while using your programming language of choice.
> The Imgur API is a RESTful API based on HTTP requests and XML or JSON(P) responses. If you're familiar with the APIs of Twitter, Amazon's S3,, or a host of other web services, you'll feel right at home.
> This version of the API, version 3, uses OAuth 2.0. This means that all requests will need to be encrypted and sent via SSL/TLS to https://. It also means that you need to register your application, even if you aren't allowing users to login.

here are some links regarding the imgur api and the specific data-points in which i'm interested:

imgur data models overview:
imgur data model formatted for albums:
imgur data model formatted for images (this is different from albums):

let me know if you have any questions whatsoever. if you don't have time for this, or if this won't work for some reason or another, simply let me know. if you want to schedule a time to chat about this further, simply let me know, too, and we can find a good time. thanks again!



Audrey Altman


Kenny Whitebloom