Skip to main content

app.bsky.feed.searchPostsV2

#main​

Find posts matching a search query or filters, returning search hits for matching post records.

Parameters​

PropertyTypeKnown ValuesRequiredDescription
cursorstring-❌Optional pagination cursor.
limitinteger-❌Maximum number of results to return.
querystring-❌Search query string. A query or at least one filter is required.
sortstringrecent
top
❌Ranking order for results. 'recent' sorts by recency; 'top' uses search ranking.
authorsarray of at-identifier-❌-
mentionsarray of at-identifier-❌-
domainsarray-❌-
urlsarray of uri-❌-
embeddedAtUrisarray of at-uri-❌-
hashtagsarray-❌-
excludeAuthorsarray of at-identifier-❌-
excludeMentionsarray of at-identifier-❌-
excludeDomainsarray-❌-
excludeUrlsarray of uri-❌-
excludeEmbeddedAtUrisarray of at-uri-❌-
excludeHashtagsarray-❌-
sincestring-❌Include posts indexed at or after this timestamp. Can be a datetime, or just an ISO date (YYYY-MM-DD).
untilstring-❌Include posts indexed before this timestamp. Defaults to the current time. Can be a datetime, or just an ISO date (YYYY-MM-DD).
allTimeboolean-❌Search the full index instead of the recent-post window.
languagesarray of language-❌-
excludeLanguagesarray of language-❌-
hasMediaboolean-❌Include only posts with media.
hasVideoboolean-❌Include only posts with video.
replyParentUristring (at-uri)-❌Include only direct replies to this parent post URI.
threadRootUristring (at-uri)-❌Include only posts in the thread rooted at this post URI.
excludeRepliesboolean-❌Exclude replies from results. Mutually exclusive with repliesOnly.
repliesOnlyboolean-❌Include only replies. Mutually exclusive with excludeReplies.
followingboolean-❌Include only posts from accounts followed by the viewer.
queryLanguagestringja
zh
ko
th
ar
❌Language analyzer hint for the query text. If unset, the server auto-detects when possible.

Output​

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
cursorstring-❌Cursor for the next page of results.
hitsTotalinteger-❌Estimated total number of matching hits. May be rounded or truncated.
postsarray of app.bsky.feed.defs#postView-✅Hydrated views of matching posts.
detectedQueryLanguagesarray of string-❌Query languages detected for CJK, Thai, or Arabic text. Empty or omitted for other scripts.