Actions9
- User Actions
- Media Actions
- Feed Actions
Overview
This node interacts with Instagram's private API to retrieve media posts from a specified user. The "Get User Media" operation fetches recent media items (such as photos and videos) posted by an Instagram user identified by their username. This is useful for social media managers, marketers, or developers who want to automate the collection of Instagram content for analysis, reposting, or archiving.
Practical examples:
- Automatically gather the latest posts from a brand's Instagram account to display on a website.
- Monitor competitor media posts for market research.
- Aggregate user-generated content tagged with a specific username.
Properties
| Name | Meaning |
|---|---|
| Username | Instagram username (without the '@' symbol) whose media posts you want to retrieve. |
| Limit | Maximum number of media items to return. Accepts values from 1 to 100. Defaults to 20. |
Output
The node outputs an array of JSON objects representing the media posts retrieved from the specified user. Each object contains detailed information about a single media item, such as its ID, caption, media type, URLs, 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 a private Instagram client library internally to communicate with Instagram's private API.
- 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 indicating Instagram authentication failed, verify that your Instagram API credentials are correct and have valid session data or login details.
- Rate limits or access restrictions: Instagram may limit requests or block access if too many requests are made in a short time or if the account has restrictions.
- Invalid username: Ensure the username is entered correctly without the '@' symbol. An incorrect username will result in no media being found or errors.
- Limit parameter issues: The limit must be between 1 and 100. Values outside this range may cause errors or unexpected behavior.
Links and References
- Instagram Private API Documentation (third-party)
- Instagram Official API (Note: This node uses a private API, not the official one.)