Instagram Hashtag Scraper avatar

Instagram Hashtag Scraper

Try for free

Pay $2.30 for 1,000 results

Go to Store
Instagram Hashtag Scraper

Instagram Hashtag Scraper

apify/instagram-hashtag-scraper
Try for free

Pay $2.30 for 1,000 results

Scrape Instagram hashtags data. Just add one or more hashtags and extract posts, images, URLs, comments, likes, users, locations, timestamps, and more. Export scraped datasets, 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
VO

POST ID is not correct

Closed

volkancaglayan opened this issue
10 days ago

Apify response returns wrong post id. When i check public IG post data, i can find post id but the apify response is not same with the public data. You can check the example below

code: DC7INJBiVoB

url: https://www.instagram.com/p/DC7INJBiVoB

post id (public data): 3511436421880175105

post id (apify data): 3511436421880175000

i added the apify response (.json format) for the example post (DC7INJBiVoB)

VO

volkancaglayan

9 days ago

I realized that the id in your data has a conversion problem. If you use javascript, js converts 3511436421880175105 this number to 3511436421880175000 this number, because of max integer value. Maybe the BigInt type can help to solve this problem.

You can try this to see my explanation above:

console.log(Number(3511436421880175105))

jakubkonecny avatar

Hello, thank you for the feedback and catching the bug. It seems like this bug is present only in the hashtag search, as the basic IG scraper with post details scrapes the number correctly for the supplied post. It also sounds exactly like what you described, a JS integer size limit.

We will get back to you with a fix as soon as possible.

Could you please share the run so we can debug it on your specific case? It would help us to solve it faster. Thanks a lot! :)

alexey avatar

Hi!

Thanks a ton for feedback, fixed in latest build, sample run https://console.apify.com/view/runs/bxyOJ7VjauJwyeNHS

Sample posts https://api.apify.com/v2/datasets/3B8keL8uX1mim8xQd/items?clean=true&format=json&fields=shortCode,id

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

  • 966 monthly users

  • 104 stars

  • >99% runs succeeded

  • 1.7 days response time

  • Created in Nov 2021

  • Modified 15 hours ago