searchAccounts abstract method
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 whenquery
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,
});