lookupTimelineByHashtag abstract method

Future<MastodonResponse<List<Status>>> lookupTimelineByHashtag({
  1. required String hashtag,
  2. bool? onlyLocal,
  3. bool? onlyRemote,
  4. bool? onlyMedia,
  5. String? maxStatusId,
  6. String? minStatusId,
  7. String? sinceStatusId,
  8. int? limit,
})

View public statuses containing the given hashtag.

Parameters

  • hashtag: The name of the hashtag (not including the # symbol).

  • onlyLocal: Show only local statuses? Defaults to false.

  • onlyRemote: Show only remote statuses? Defaults to false.

  • onlyMedia: Show only statuses with media attached? Defaults to false.

  • maxStatusId: Return results older than ID.

  • minStatusId: Return results immediately newer than ID.

  • sinceStatusId: Return results newer than ID.

  • limit: Maximum number of results to return. Defaults to 20. Max 40.

Endpoint Url

  • GET /api/v1/timelines/tag/:hashtag HTTP/1.1

Authentication Methods

  • Anonymous
  • OAuth 2.0

Required Scopes

  • read:statuses (if the instance has disabled public preview)

Reference

Implementation

Future<MastodonResponse<List<Status>>> lookupTimelineByHashtag({
  required String hashtag,
  bool? onlyLocal,
  bool? onlyRemote,
  bool? onlyMedia,
  String? maxStatusId,
  String? minStatusId,
  String? sinceStatusId,
  int? limit,
});