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 posted by an Instagram user, which can be useful for social media monitoring, content aggregation, or analytics workflows.
Typical use cases include:
- Collecting recent photos and videos from a public Instagram account for display or analysis.
- Monitoring competitor or influencer posts automatically.
- Archiving user media content for backup or reporting purposes.
For example, you could input an Instagram username and specify how many recent posts to retrieve, then use the output data in subsequent workflow steps for processing or visualization.
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 Instagram media posts retrieved for the specified user. Each object contains detailed information about a single media item, such as its ID, caption, media type (photo, video), URLs, timestamps, and other metadata provided by Instagram's private API.
No binary data is output by this operation.
Dependencies
- Requires an Instagram API authentication credential configured in n8n that provides access to Instagram's private API.
- The node uses session data if available; otherwise, it authenticates using the provided credentials.
- No additional external services are required beyond Instagram's private API.
Troubleshooting
- Authentication failures: If the node throws an error like
Instagram authentication failed, verify that your Instagram API credentials are correct and have valid session data or login details. - Unsupported operations: Attempting to use an operation not supported for the "media" resource will result in an error indicating the operation is unsupported.
- Rate limits or API changes: Since this uses a private API, Instagram may change endpoints or impose rate limits causing failures. Retrying or updating credentials might help.
- Invalid usernames: Providing a non-existent or private Instagram username may cause empty results or errors.
To resolve common issues:
- Double-check the username input for correctness.
- Ensure the API credentials are up to date and have necessary permissions.
- Use the "Limit" property within allowed bounds (1-100).