Instagram Post Scraper avatar

Instagram Post Scraper

Try for free

Pay $2.30 for 1,000 results

View all Actors
Instagram Post Scraper

Instagram Post Scraper

apify/instagram-post-scraper
Try for free

Pay $2.30 for 1,000 results

Scrape Instagram posts. Just add one or more Instagram usernames and get your data in seconds including text, hashtags, mentions, comments, images, URLs, likes, locations, and metadata. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.

Do you want to learn more about this Actor?

Get a demo
SS

Not fetching mentions correctly

Closed

sarthak_s opened this issue
3 months ago

It is not able to fetch mentions in the posts correctly. I tried for this brand handle: https://www.instagram.com/mynykaa/, fetching past 10 posts.

This particular post was returned in the JSON: https://www.instagram.com/p/C_aU6TsNKG8/. However the mentions field was empty even though there are mentions in the Instagram post.

alexey avatar

Hi!

It's just different logic - from very first version this actor mapped mentions array from @username fragments in post text. So this rule still followed to not disrupt current users by different format.

For your referenced post https://console.apify.com/view/runs/OBzxCC9w1K0kUi3wA user(s) tagged in photo mapped as taggedUsers - see https://api.apify.com/v2/datasets/egUFKMzUArZjpOcLG/items?clean=true&format=json

Just do mind differences between mentions and taggedUsers

I´m going to close the issue now, but if there would be anything else we could help with, please let us know.

SS

sarthak_s

3 months ago

Hi Alexey

Thank you for your prompt reply. I understand what you explained above- difference in "taggedUsers" and "mentions". However the JSON I recieved from this actor after running the query on the Instagram handle "mynykaa" still does not have the detail in either the "taggedUsers" sections or the "mentions" section. Here is the link to the run: https://console.apify.com/view/runs/vxM1LvgoOrvefR5k2

You will see for that particular shortcode (C_aU6TsNKG8), there is no taggedUsers field. And the mentions part is empty. I have attached the screenshot below. If my understanding is correct- the actor is able to fetch the taggedUsers when the URL of the post is given (in your run above). However when I am giving the brand handle, it is not working correctly.

Looking forward to your reply

alexey avatar

Weird, direct URL works fine: https://console.apify.com/view/runs/PZIxKONsQnyJ28voJ

Should be the same since full post details scraped in the same way. Bug confirmed, will keep you informed about fixes

SS

sarthak_s

2 months ago

Hi Alexey - is there any update on this ?

misa avatar

Hello, thank you for following up. We have other more urgent priorities at the moment, so it might take a couple of sprints to fix this, but we'll inform you as soon as we have this production. Thank you for your patience!

alexey avatar

Hi!

Fixed in latest build, see sample run https://console.apify.com/view/runs/Wvl5tLWxd1pz0Su7A and C_aU6TsNKG8 in https://api.apify.com/v2/datasets/HZipPtGho6dMMrxA8/items?clean=true&fields=shortCode,taggedUsers&format=json

I´m going to close the issue now, but if there would be anything else we could help with, please let us know.

Developer
Maintained by Apify

Actor Metrics

  • 1.9k monthly users

  • 143 stars

  • >99% runs succeeded

  • 2.7 days response time

  • Created in Nov 2021

  • Modified 3 hours ago