lookupAccounts abstract method

Future<MastodonResponse<List<Account>>> lookupAccounts({
  1. int? offset,
  2. int? limit,
  3. InstanceAccountOrder? order,
  4. bool? onlyLocal,
})

List accounts visible in the directory.

Parameters

  • offset: Skip the first n results.

  • limit: How many accounts to load. Defaults to 40 accounts. Max 80 accounts.

  • order: Use active to sort by most recently posted statuses (default) or new to sort by most recently created profiles.

  • onlyLocal: If true, returns only local accounts.

Endpoint Url

  • GET /api/v1/directory HTTP/1.1

Authentication Methods

  • Anonymous

Reference

Implementation

Future<MastodonResponse<List<Account>>> lookupAccounts({
  int? offset,
  int? limit,
  InstanceAccountOrder? order,
  bool? onlyLocal,
});