appBskyFeedSearchPosts function
Find posts matching search criteria, returning views of those posts. Note that this API endpoint may require authentication (eg, not public) for some service providers and implementations.
Implementation
Future<XRPCResponse<FeedSearchPostsOutput>> appBskyFeedSearchPosts({
required String q,
FeedSearchPostsSort? sort,
String? since,
String? until,
String? mentions,
String? author,
String? lang,
String? domain,
String? url,
List<String>? tag,
int? limit,
String? cursor,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.get(
ns.appBskyFeedSearchPosts,
headers: $headers,
parameters: {
...?$unknown,
'q': q,
if (sort != null) 'sort': sort.toJson(),
if (since != null) 'since': since,
if (until != null) 'until': until,
if (mentions != null) 'mentions': mentions,
if (author != null) 'author': author,
if (lang != null) 'lang': lang,
if (domain != null) 'domain': domain,
if (url != null) 'url': url,
if (tag != null) 'tag': tag,
if (limit != null) 'limit': limit,
if (cursor != null) 'cursor': cursor,
},
to: const FeedSearchPostsOutputConverter().fromJson,
);