RapidMiner

3 weeks ago
instagran.png

Hi all - had a nice phone call today from a new user who wanted to pull information from Instagram. I suggested looking at their API (of course). Turns out that Instagram is transitioning to Facebook Graph API (as they just bought Instagram) so until our good friends at Aptus Data Labs can get Instagram Graph API with OAuth going for us (hint, hint), here's a quick hack:

 

Goal: get hashtag counts on instagram

 

Step 1: get an Instagram API access token (nice easy steps here).

Step 2: create a document with hashtags

Step 3: run this process (see attached for code)

 

Screen Shot 2017-12-28 at 4.51.01 PM.png

 

You should see a series of results that look like this:

 

Screen Shot 2017-12-28 at 5.01.36 PM.png

 

A full list of Instagram REST API endpoints can be found here.

 

Enjoy!

 

Scott

 

Scott Genzer
Senior Community Manager
RapidMiner, Inc.
Comments
RM Certified Expert
RM Certified Expert

I had to get a token in a very arduous round about way instead via the link you shared. It seems that Instagram is making a lot of API changes and a lot of things are being deprecated and breaking. I suspect that this is because they are moving to FB's open graph protocol. 

Community Manager Community Manager
Community Manager

yes I had to go through the same rigmarole and agree it must be due to migration to FB graph. Sigh.