
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
n8n-nodes-instagram-private-api-wrapped
Advanced tools
A comprehensive n8n node package that provides seamless Instagram integration using the instagram-private-api
library. Automate your Instagram workflows with powerful operations like posting images, managing followers, and interacting with content.
This library uses the unofficial Instagram Private API which may violate Instagram's Terms of Service. Use at your own risk.
npm install n8n-nodes-instagram-private-api-wrapped
yarn add n8n-nodes-instagram-private-api-wrapped
# In your n8n custom nodes directory
npm install n8n-nodes-instagram-private-api-wrapped
If you're running n8n locally, install the package in your n8n installation:
cd ~/.n8n
npm install n8n-nodes-instagram-private-api-wrapped
Restart your n8n instance to load the new nodes:
n8n start
{
"nodes": [
{
"parameters": {
"operation": "postImage",
"imageBuffer": "={{$binary.data}}",
"caption": "Check out this amazing photo! #n8n #automation"
},
"type": "n8n-nodes-instagram-private-api-wrapped",
"typeVersion": 1,
"position": [
460,
240
],
"id": "12345678-1234-1234-1234-123456789012",
"name": "Instagram Post",
"credentials": {
"instagramApi": "my-instagram-account"
}
}
]
}
{
"nodes": [
{
"parameters": {
"operation": "getFollowers",
"userId": "123456789",
"limit": 50
},
"type": "n8n-nodes-instagram-private-api-wrapped",
"typeVersion": 1,
"position": [
460,
240
],
"id": "87654321-4321-4321-4321-210987654321",
"name": "Get Instagram Followers"
}
]
}
{
"nodes": [
{
"parameters": {
"operation": "getPostsByHashtag",
"hashtag": "photography",
"limit": 20
},
"type": "n8n-nodes-instagram-private-api-wrapped",
"typeVersion": 1,
"position": [
460,
240
],
"id": "11111111-2222-3333-4444-555555555555",
"name": "Search Instagram Posts"
}
]
}
Upload an image to Instagram with an optional caption.
Parameters:
imageBuffer
(required): Image data as Buffer or base64 stringcaption
(optional): Text caption for the postReturns:
{
media_id: string;
code: string;
caption: string;
like_count: number;
comment_count: number;
}
Retrieve the list of followers for a user.
Parameters:
userId
(optional): Target user ID (defaults to authenticated user)Returns:
{
followers: Array<{
pk: string;
username: string;
full_name: string;
is_private: boolean;
profile_pic_url: string;
is_verified: boolean;
}>;
count: number;
}
Get detailed information about a specific user.
Parameters:
username
(required): Instagram username to lookupReturns:
{
pk: string;
username: string;
full_name: string;
is_private: boolean;
profile_pic_url: string;
follower_count: number;
following_count: number;
media_count: number;
biography: string;
is_verified: boolean;
}
Like an Instagram post.
Parameters:
mediaId
(required): The ID of the media to likeAdd a comment to an Instagram post.
Parameters:
mediaId
(required): The ID of the media to comment oncomment
(required): The comment textSearch for posts using a specific hashtag.
Parameters:
hashtag
(required): Hashtag to search (without #)limit
(optional): Number of posts to return (1-50, default: 10)The library includes comprehensive error handling:
// All operations return a consistent response format
{
success: boolean;
data?: any; // Present when success is true
error?: string; // Present when success is false
}
To avoid Instagram's rate limits, the library implements:
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm test
# Run linting
npm run lint
# Watch mode for development
npm run dev
The project includes comprehensive tests with 90%+ coverage:
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Generate coverage report
npm run test:coverage
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)To enable debug logging, set the DEBUG environment variable:
DEBUG=n8n-nodes-instagram-private-api-wrapped n8n start
For production use, consider these official alternatives:
This project is licensed under the MIT License - see the LICENSE file for details.
This software is provided "as is" without warranty of any kind. The authors are not responsible for any damages or account restrictions that may result from using this library. Use of Instagram's private API may violate their Terms of Service.
Made with ❤️ for the n8n community
FAQs
n8n community node for Instagram automation using private API capabilities
The npm package n8n-nodes-instagram-private-api-wrapped receives a total of 45 weekly downloads. As such, n8n-nodes-instagram-private-api-wrapped popularity was classified as not popular.
We found that n8n-nodes-instagram-private-api-wrapped demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.