Instagram-private-api: Hashtag

Created on 2 Jul 2016  路  6Comments  路  Source: dilame/instagram-private-api

Hi, great job!

I'm trying to get media from a specific hashtag with TagMedia, like this Client.Feed.TagMedia(session, 'example'); but without success, any idea what wrong?

question

Most helpful comment

var tag = new Client.Feed.TagMedia(session, 'hashtag');
tag.get().then(function (res) {
// your code
});

All 6 comments

var tag = new Client.Feed.TagMedia(session, 'hashtag');
tag.get().then(function (res) {
// your code
});

Thanks!

How can I get the data to be correct output? When i run:

var tag = new Client.Feed.TagMedia(session, 'hashtag'); tag.get().then(function (res) { console.log(res) });

res wil return the cookies and params when console the resonse within tag-media.js returns correct json:

{ taken_at: 1467453439, pk: [Object], id: '1285415071329164533_2211969111', device_timestamp: 1467453106, media_type: 1, code: 'BHWtjJrghz1', client_cache_key: 'MTI4NTQxNTA3MTMyOTE2NDUzMw==.2', filter_type: 0, image_versions2: [Object], original_width: 1080, original_height: 1349, location: [Object], lat: 34.4972, lng: -117.269, user: [Object], organic_tracking_token: 'eyJ2ZXJzaW9uIjo1LCJwYXlsb2FkIjp7ImlzX2FuYWx5dGljc190cmFja2VkIjpmYWxzZSwidXVpZCI6IjY1YWY4OWEzYTFkMTRhMDliMDQ4NmI0MjY2ZTY4M2UzMTI4NTQxNTA3MTMyOTE2NDUzMyIsInNlcnZlcl90b2tlbiI6IjE0Njc0NTQxNzgwOTV8MTI4NTQxNTA3MTMyOTE2NDUzM3wzMjU3ODYxMDU1fGE3OTkxYWVjM2MyY2U3YTQzOTY5OWRkNDIyNjJjZmUxMjdjYzE3YjM1OGE3N2FhNWY3M2EyNGE3YWZlZDAwMDcifSwic2lnbmF0dXJlIjoiIn0=', like_count: 6, likers: [Object], has_liked: false, has_more_comments: false, max_num_visible_preview_comments: 2, comments: [], comment_count: 1, caption: [Object], caption_is_edited: false, photo_of_you: false },

@pontusab

https://github.com/huttarichard/instagram-private-api/blob/master/client/v1/feeds/tag-media.js#L32

var tag = new Client.Feed.TagMedia(session, 'hashtag');
tag.get().then(function (res) { 
   console.log(res) //should return [Media, ...];
   console.log(res[0].params) // should return media params...
}); 

@huttarichard OMG, thanks, how could I not notice that. Thanks!

How can i search Hashtags ?

I mean i need like this : if i search for "tv"

Needs all hashtag realted "tv" in json.

Is there anyone have done this before ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LouenLeoncoeur picture LouenLeoncoeur  路  12Comments

delmotte picture delmotte  路  61Comments

haliliceylan picture haliliceylan  路  29Comments

ozican picture ozican  路  143Comments

endquote picture endquote  路  12Comments