Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Account → Search Accounts

AI-generated

Overview

This node operation allows users to search for Mastodon accounts based on a query string. It connects to a specified Mastodon instance and retrieves a list of accounts matching the search criteria. This is useful for finding specific users or exploring accounts related to certain topics or interests on Mastodon.

Use Case Examples

  1. Search for accounts related to a specific keyword or username on a Mastodon instance.
  2. Retrieve a limited number of accounts matching a search query for further processing or analysis.

Properties

Name Meaning
Mastodon URL URL of the Mastodon instance to connect to, used to direct the API requests to the correct server.
Authentication Type Method of authentication to use when connecting to the Mastodon instance, either OAuth2 or Access Token.
Query The search query string used to find matching Mastodon accounts.
Limit Maximum number of accounts to return from the search results.

Output

JSON

  • json - The JSON output contains the search results, which is an array of account objects matching the query.

Dependencies

  • Requires Mastodon API credentials, either OAuth2 or an access token, to authenticate requests.

Troubleshooting

  • Ensure that the correct Mastodon instance URL is provided and accessible.
  • Verify that the selected authentication type matches the provided credentials.
  • If no accounts are returned, check the query string for correctness and try adjusting the limit parameter.
  • Common errors include missing or invalid credentials, which will prompt error messages indicating the need to select or provide valid authentication credentials.

Discussion