Skip to content

About

Instagram workflows and input migration tools for Apify, n8n, and MCP

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Instagram workflows

Build creator shortlists, monitor public comments, or migrate an existing Instagram scraper input. This kit includes n8n imports, local Python and Node.js converters, and MCP setup for DeepMine Actors on Apify.

Choose an Actor

Input fields below are JSON keys. Open the linked Input tab for the full schema and defaults.

Actor Use it for Input to start with
Instagram Profile Scraper Read known profiles and their stats usernames, includeLatestPosts
Instagram Related Profiles Find accounts suggested for a seed profile usernames, mode: "related", maxResultsPerProfile
Instagram Scraper Read posts, reels, details, or comments directUrls, resultsType, resultsLimit
Instagram Comments Scraper Track comments on specific posts or reels directUrls, resultsLimit, onlyCommentsNewerThan
Instagram Hashtag Scraper Find public posts or reels by hashtag hashtags, resultsType, resultsLimit
Instagram Stories Scraper Read currently available stories or highlights usernames, content: "stories"
Instagram Email Scraper Find contact details published by known profiles usernames, includeContactDetails, includeStats
Instagram Video Downloader Get media from post or reel links postUrls, dataDetailLevel
Instagram Reels Scraper Read reels from profiles profiles, maxReelsPerProfile
Instagram Trending Reels Discover reels by topic keywords, maxResultsPerKeyword
Instagram Influencer Finder Find creators from search terms or seeds searchQueries, minFollowers, maxResults
Instagram User Search Find accounts by keyword keywords, maxResults
Instagram Reel Transcript Scraper Read available reel transcripts profiles, includeTranscript, maxReelsPerProfile

Stats and contacts can be absent. Keep a missing metric distinct from zero, review any outreach list before use, and use only media you have permission to download.

Connect an MCP client

Merge the server entry from mcp/server.json into a client that supports remote MCP servers, such as Cursor. For clients with a remote connector UI, copy the URL from that entry. Sign in to Apify when prompted. The URL selects the Instagram tools in the table above. The server runs remotely, and calling an Actor can incur charges.

Try: “Prepare an Instagram Profile Scraper input for nasa and natgeo with recent posts disabled. Show the payload and price before running.”

The Claude skill in this repository helps choose an Actor and assemble inputs. Open the repo as a Claude Code project to use it.

Run an example

Set APIFY_TOKEN in your shell through your usual secret manager. The examples read one public profile and set a maximum Actor charge of $0.05. They use Python 3.9+ or Node.js 20+ with no packages to install.

python3 examples/instagram_profile.py
node examples/instagram-profile.mjs

Both scripts use Apify's synchronous dataset endpoint. Use the asynchronous run endpoint and fetch the dataset separately for jobs that can take more than five minutes.

Validate locally

These checks use fixtures and make no network calls:

python3 -m unittest discover -s tests
node --test tests/workflows.test.mjs

The Python suite checks both converters against the included schema subset. To check against Actor source checkouts, set INSTAGRAM_INPUT_SCHEMAS to a folder with one subfolder per Actor slug (without the publisher), each containing its .actor/input_schema.json. If your checkout folders share a suffix, set INSTAGRAM_SCHEMA_DIR_SUFFIX too. The tests then verify the checked-in constraints against those files.

About

Instagram workflows and input migration tools for Apify, n8n, and MCP

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages