Instagram Scraper icon

Instagram Scraper

Scrapes posts from a public Instagram profile.

Overview

This node scrapes posts from a public Instagram profile based on the provided username. It is useful for extracting Instagram post data for analysis, content aggregation, or social media monitoring. For example, a user can scrape the latest 50 posts from a public profile to analyze engagement or gather content for marketing purposes.

Use Case Examples

  1. Scrape the latest 50 posts from the Instagram profile 'n8n.io' for content analysis.
  2. Limit the scraping to 10 posts with custom delay and retry settings to avoid rate limiting.

Properties

Name Meaning
Username The public Instagram profile username to scrape.
Limit Maximum number of Instagram posts to return from the profile.
Scraper Configuration Settings to control scraping behavior such as delays, retries, rate limits, and timeout.

Output

JSON

  • posts - Array of scraped Instagram posts returned from the profile.

Dependencies

  • @aduptive/instagram-scraper (Instagram scraping library)

Troubleshooting

  • If scraping fails, check if the username is correct and the profile is public.
  • Rate limiting errors may occur if requests exceed the configured rate limit; adjust delay and rate limit settings accordingly.
  • Timeout errors can happen if the network is slow or Instagram is unresponsive; increase the timeout setting if needed.
  • Errors from the scraper library are wrapped and presented with descriptive messages including error codes when available.

Links

Discussion