searchAccounts abstract method

Future<MastodonResponse<List<Account>>> searchAccounts({
  1. required String query,
  2. int? limit,
  3. bool? resolveWithWebFinger,
  4. bool? onlyFollowings,
})

Search for matching accounts by username or display name.

Parameters

  • query: Search query for accounts.

  • limit: Maximum number of results. Defaults to 40.

  • resolveWithWebFinger: Attempt WebFinger lookup. Defaults to false. Use this when query is an exact address.

  • onlyFollowings: Limit the search to users you are following. Defaults to false.

Endpoint Url

  • GET /api/v1/accounts/search HTTP/1.1

Authentication Methods

  • OAuth 2.0

Required Scopes

  • read:accounts

Reference

Implementation

Future<MastodonResponse<List<Account>>> searchAccounts({
  required String query,
  int? limit,
  bool? resolveWithWebFinger,
  bool? onlyFollowings,
});