Instagram Profile Scraper avatar
Instagram Profile Scraper
Try for free

Pay $2.30 for 1,000 results

View all Actors
Instagram Profile Scraper

Instagram Profile Scraper

apify/instagram-profile-scraper
Try for free

Pay $2.30 for 1,000 results

Scrape all Instagram profile info. Just add one or more Instagram usernames and extract number of followers&follows, URLs, bio, posts, likes, counts, related profiles, captions, highlight reels. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.

SO

Follower Count/Other Fields Showing Up as Undefined

Closed

sage_ointment opened this issue
2 months ago

Hello,

This is related to the previous issue regarding blank/null profile info. While the username does show up in the run, some of the fields will show up as "undefined" if viewed online or will be blanks when downloaded as Excel.

An example of this would be the username profile "costco". There are a few more which you can see by filtering for undefined follower count. (the other fields are typically undefined as well). There were a few others of these in the Actor run URL. One or two profiles would occasionally return something in the other fields if I ran it again while some were consistently blank/undefined (username does show up, so instead should filter on the other fields or if exporting in Excel filter for blank follower counts).

Let me know if I should provide a screenshot.

Thanks

alexey avatar

Hi! Thanks a lot for additional feedback.

Bug confirmed: some profiles like https://www.instagram.com/BrownForman/ restricted ("You must be 20 years old or over to see this profile") and actor saving them as

1{
2  "inputUrl": "https://www.instagram.com/BrownForman",
3  "error": "Restricted profile",
4  "username": "BrownForman",
5  "url": "https://www.instagram.com/BrownForman"
6}

But https://www.instagram.com/costco/ is visible in incognito browser, however in dataset saved as

1{
2  "inputUrl": "https://www.instagram.com/costco",
3  "error": "Restricted profile",
4  "username": "costco",
5  "url": "https://www.instagram.com/costco"
6}

For right now resolve by re-scraping, will inform about bugfix when its done

SO

sage_ointment

2 months ago

Tried re-scraping but seems like the profiles which had undefined results still show up as undefined. Will wait for your bugfix. Thanks Alexey!

alexey avatar

Hi!

Please run again, issue is fixed by upgrade to getting details for restricted pages, so if page is restricted it will be saved with additional values:

1{
2  "inputUrl": "https://www.instagram.com/BrownForman",
3...
4  "isRestrictedProfile": true,
5  "restrictionReason": "You must be 18 years old or over to see this profile"
6}

Sample run https://console.apify.com/view/runs/R8eyKAn3qZ2tEfPcj

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

alexey avatar

p.s. Some profiles restricted only for certain countries, i.e. https://console.apify.com/view/runs/pWpoHDy9ehPTnPZF8 - "costco" limited by age in USA, so if you want scrape full details instead of partial you need to find country where restriction not applied, for "costco" its at least Thailand https://console.apify.com/view/runs/PnTtYLgwa3lKexTr1 but might work for other non-USA countries as well

Developer
Maintained by Apify
Actor metrics
  • 2.2k monthly users
  • 87 stars
  • 99.4% runs succeeded
  • 1.6 days response time
  • Created in Nov 2021
  • Modified about 11 hours ago