Actions48
- Account Actions
- Authentication Actions
- Blocks Actions
- Bookmarks Actions
- Favourites Actions
- Featured Tags Actions
- Follow Requests Actions
- Media Actions
- Mutes Actions
- Notifications Actions
- Polls Actions
- Status Actions
- Timeline Actions
Overview
This node interacts with the Mastodon API, specifically allowing users to view detailed information about a Mastodon user account. The "View User Profile" operation under the "Account" resource fetches profile data for a specified Mastodon account by its ID from a given Mastodon instance URL.
Common scenarios where this node is beneficial include:
- Retrieving public profile details of a Mastodon user for display or analysis.
- Integrating Mastodon user data into workflows, such as monitoring specific accounts or aggregating social media profiles.
- Enriching datasets with Mastodon user metadata in automation pipelines.
For example, you could use this node to fetch the profile of a user on mastodon.social by providing the instance URL and the user's account ID, optionally including relationship information like whether the authenticated user follows them.
Properties
| Name | Meaning |
|---|---|
| Mastodon URL | The base URL of the Mastodon instance to connect to (e.g., https://mastodon.social). |
| Account ID | The unique identifier of the Mastodon account whose profile you want to view. |
| Additional Fields | Optional fields to customize the request; currently supports: • With Relationships: Include relationship info with the account (boolean). |
Output
The output is a JSON object representing the Mastodon user profile corresponding to the provided Account ID. This includes standard profile fields such as username, display name, avatar URL, bio, follower counts, and other metadata returned by the Mastodon API.
If the "With Relationships" option is enabled, the output will also contain relationship information between the authenticated user and the target account, such as whether the user follows or is followed by the account.
No binary data is output by this operation.
Dependencies
- Requires an API authentication token credential configured in n8n to authenticate requests to the Mastodon API.
- Needs the Mastodon instance URL to direct API calls correctly.
- The node depends on the Mastodon API being accessible and the provided Account ID being valid on that instance.
Troubleshooting
- Invalid Account ID: If the Account ID does not exist or is malformed, the API will return an error. Verify the Account ID is correct and exists on the specified Mastodon instance.
- Incorrect Mastodon URL: Using an incorrect or unreachable Mastodon instance URL will cause connection failures. Ensure the URL is valid and the instance is online.
- Authentication Errors: Missing or invalid API credentials will result in authorization errors. Confirm that the API key/token is properly set up and has necessary permissions.
- API Rate Limits: Frequent requests may hit Mastodon's rate limits, causing temporary failures. Implement retry logic or reduce request frequency if needed.
- Network Issues: Network connectivity problems can prevent successful API calls. Check your network settings and firewall rules.