Skip to main content

Finally! A discovery engine for Instagram that lets you search by date and location

propublica sinatra
Image used with permission by copyright holder

Instagram isn’t just an app for sharing candid photos anymore, and it’s realized its power as a source for breaking news. Professional reporters and citizen journalists alike have used Instagram to cover events like the Boston Marathon bombings and the Sandy Hurricane, as well as the Super Bowl and the presidential election. While we’ve been increasingly using it for these purposes, Instagram has yet to introduced a feature for specific search beyond its mobile-only hashtag and user discovery tab. There are third party Web tools to help find photos by hashtag or user as well, but nothing that complements its use as a news source. 

Fortunately, ProPublica’s news app developer Al Shaw did the hard work for us. He realized Instagram’s API has something called “Media Search” that supports searches for the time and distance of where an Instagram photo was taken. He ended up hacking together an open source app called Sinatra, which uses addresses and end-to-end time to search through Instagram photos.

Shaw makes note of the app’s inadequacies, saying there are limitations to what you can do with the Instagram API. “There’s no way to search for text or hashtags (tags have their own endpoint which doesn’t allow geolocation), there’s no pagination of results, and results only go back a few months,” he explains.

The tool is mainly targeting journalists, so ProPublica has been using the app internally for now. Shaw points out several instances where Sinatra has been used to discover “breaking” news: Using Sinatra, ProPublica writer Justin Elliot discovered the questionable “recreational activities” of House Financial Services Committee chairman Rep. Jeb Hensarling fraternizing with bankers at a ski getaway in Park City, Utah. 

Other noteworthy discoveries include photos of the Boston Marathon finish line eight minutes before the bomb exploded, and Newt Gingrich who was attending the White House Correspondent’s Dinner posing in Washington D.C.

Thanks to the over-sharing and expressive nature of our social, digital society, apps like Sinatra are a goldmine of information for journalists.

If you want to check out what Shaw built and use it for yourself, you’ll need to know some Ruby code. Unfortunately a public GUI (graphical user interface) of the app isn’t available, but it’s open source so you can fork it from GitHub.

Editors' Recommendations

Francis Bea
Former Digital Trends Contributor
Francis got his first taste of the tech industry in a failed attempt at a startup during his time as a student at the…
Instagram now lets you buy products right through chat
Instagram app on the Google Play Store on an Android smartphone.

Instagram's latest chat feature has nothing to do with chat themes and everything to do with being able to pay for products via direct message.

On Monday, Instagram's parent company, Meta, announced the new payment-by-chat feature via a tweet.

Read more
Instagram test lets you pin particular posts to your profile
3D Instagram icon.

Instagram is testing a new feature that would let you pin particular posts above the grid on your profile page.

Testing is currently limited to a select group of users on the platform. To see if you’re one of them, simply go to one of your posts, tap the three dots at the top right, and look for the message “pin to your profile” in the list of options.

Read more
Instagram link previews have finally returned to Twitter
An Instagram preview showing on Twitter.

Almost a decade after they disappeared, Instagram previews have returned to Twitter.

Since 2012, tweets that included a link to an Instagram post have been showing just that -- a link. Now, however, the link will produce a small preview of the Instagram post so that you can make a more informed decision about whether you want to click through to the Instagram app to view it in full.

Read more