Skip to main content

app.bsky.feed.searchPosts

#main

Find posts matching search criteria, returning views of those posts.

Parameters

PropertyTypeKnown ValuesRequiredDescription
qstring-Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
sortstringtop
latest
Specifies the ranking order of results.
sincestring-Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).
untilstring-Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).
mentionsstring (at-identifier)-Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.
authorstring (at-identifier)-Filter to posts by the given account. Handles are resolved to DID before query-time.
langstring (language)-Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.
domainstring-Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.
urlstring (uri)-Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.
tagarray--
limitinteger--
cursorstring-Optional pagination mechanism; may not necessarily allow scrolling through entire result set.

Output

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
cursorstring--
hitsTotalinteger-Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
postsarray of app.bsky.feed.defs#postView--