Skip to content
This repository

A java wrapper for the instagram api


Build Status

A Java wrapper for the Instagram API.

Note : jInstagram uses code from the scribe-java library developed by Pablo Fernandez.


  • Create the InstagramService object
InstagramService service =  new InstagramAuthService()

[With Scope]

Note : Multiple scopes can be provided with a space in between. For ex. .scope("likes comments") Please see Instagram API for more details regarding the supported scopes.

Commenting access - You need to register your clientId and Application Name on, to get access to commenting.

InstagramService service = new InstagramAuthService()

Note : An empty token can be define as follows -

private static final Token EMPTY_TOKEN = null;
  • Validate your user against Instagram
String authorizationUrl = service.getAuthorizationUrl(EMPTY_TOKEN);
  • Getting the Access Token
Verifier verifier = new Verifier("verifier you get from the user");
Token accessToken = service.getAccessToken(EMPTY_TOKEN, verifier);
  • Creating the Instagram Object
Instagram instagram = new Instagram(accessToken);

Instagram API Endpoints

Please see the API Usage for more details.

Instagram Embedding Endpoints

InstagramOembed oembed = new InstagramOembed();
OembedInformation info = oembed.getOembedInformation("");




About me

Something went wrong with that request. Please try again.