Instagram Private API icon

Instagram Private API

Interact with Instagram using private API methods

Overview

This node interacts with Instagram's private API to retrieve posts from a user's timeline feed. It is useful for scenarios where you want to programmatically access the latest posts appearing in the authenticated user's Instagram timeline, such as for social media monitoring, content aggregation, or analytics.

For example, you can use this node to fetch the most recent posts that appear on your Instagram home feed, enabling automated workflows that analyze or repost content from followed accounts.

Properties

Name Meaning
Limit Maximum number of items to return. You can specify a number between 1 and 100.

Output

The node outputs an array of JSON objects representing Instagram posts from the timeline feed. Each object contains detailed information about a post, such as its ID, caption, media URLs, user info, timestamps, and other metadata provided by Instagram's private API.

No binary data output is produced by this operation.

Dependencies

  • Requires an Instagram API authentication credential (an API key or session token) configured in n8n.
  • Uses Instagram's private API client library bundled within the node.
  • The node attempts to reuse saved session data if available; otherwise, it authenticates using provided credentials.

Troubleshooting

  • Authentication failures: If the node throws an error like "Instagram authentication failed," verify that your Instagram credentials are correct and that any required session data is valid.
  • Unsupported operation errors: If you see an error indicating the operation is not supported for the resource, ensure you have selected the correct Resource ("Feed") and Operation ("Get Timeline Feed").
  • Rate limits or API changes: Since this uses Instagram's private API, changes on Instagram's side or rate limiting may cause unexpected errors. Retrying after some time or refreshing credentials might help.
  • Empty results: If no posts are returned, check that the authenticated user has a populated timeline feed and that the limit parameter is set appropriately.

Links and References

Discussion