Instagram Scraper - All in one avatar
Instagram Scraper - All in one
Try for free

1 day trial then $30.00/month - No credit card required now

View all Actors
Instagram Scraper - All in one

Instagram Scraper - All in one

curious_coder/instagram-scraper
Try for free

1 day trial then $30.00/month - No credit card required now

Scrape instragram profiles, followers, posts, comments and get valuable information like email addresses, websites, post engagement insights, commented users, etc

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "action": "scrapeProfiles",
11    "scrapeProfiles.profileList": [
12        "zuck"
13    ],
14    "scrapeFriendships.profile": "zuck",
15    "scrapeFriendships.friendshipType": "followers",
16    "scrapeCommentsOfPost.url": "https://www.instagram.com/p/CwsgvUlLtEn/",
17    "scrapeLikesOfPost.url": "https://www.instagram.com/p/CwsgvUlLtEn/",
18    "scrapePostsOfUser.profile": "https://www.instagram.com/zuck",
19    "proxy": {
20        "useApifyProxy": true,
21        "apifyProxyGroups": [],
22        "apifyProxyCountry": "US"
23    },
24    "minDelay": 1,
25    "maxDelay": 15
26};
27
28(async () => {
29    // Run the Actor and wait for it to finish
30    const run = await client.actor("curious_coder/instagram-scraper").call(input);
31
32    // Fetch and print Actor results from the run's dataset (if any)
33    console.log('Results from dataset');
34    const { items } = await client.dataset(run.defaultDatasetId).listItems();
35    items.forEach((item) => {
36        console.dir(item);
37    });
38})();
Developer
Community logoMaintained by Community
Actor metrics
  • 210 monthly users
  • 74.7% runs succeeded
  • 1.1 days response time
  • Created in Jun 2023
  • Modified 2 months ago
Categories

You might also like these Actors