app.bsky.feed.searchPostsV2
Find posts matching a search query or filters, returning search hits for matching post records.
Details · query
| Kind | query |
|---|---|
| Authority | feed.bsky.app |
| Indexed |
Query
query · GETParameters
query stringallTime
booleanSearch the full index instead of the recent-post window.
authors
arrayInclude posts by any of these authors. Handles are resolved to DIDs before searching.
cursor
stringOptional pagination cursor.
domains
arrayInclude posts that link to any of these domains.
embeddedAtUris
arrayInclude posts that embed any of these AT URIs.
excludeAuthors
arrayExclude posts by any of these authors. Handles are resolved to DIDs before searching.
excludeDomains
arrayExclude posts that link to any of these domains.
Exclude posts that embed any of these AT URIs.
excludeHashtags
arrayExclude posts tagged with any of these hashtags. Do not include the hash (#) prefix.
maxLength: 640maxGraphemes: 64
excludeLanguages
arrayExclude posts whose language matches any of these language codes.
excludeMentions
arrayExclude posts that mention any of these accounts. Handles are resolved to DIDs before searching.
excludeReplies
booleanExclude replies from results. Mutually exclusive with repliesOnly.
excludeUrls
arrayExclude posts that link to any of these URLs.
following
booleanInclude only posts from accounts followed by the viewer.
hasMedia
booleanInclude only posts with media.
hasVideo
booleanInclude only posts with video.
hashtags
arrayInclude posts tagged with any of these hashtags. Do not include the hash (#) prefix.
maxLength: 640maxGraphemes: 64
languages
arrayInclude posts whose language matches any of these language codes.
limit
integerMaximum number of results to return.
minimum: 1maximum: 100default: 25
mentions
arrayInclude posts that mention any of these accounts. Handles are resolved to DIDs before searching.
query
stringSearch query string. A query or at least one filter is required.
queryLanguage
stringLanguage analyzer hint for the query text. If unset, the server auto-detects when possible.
knownValues: ja | zh | ko | th | ar
repliesOnly
booleanInclude only replies. Mutually exclusive with excludeReplies.
replyParentUri
string · at-uriInclude only direct replies to this parent post URI.
since
stringInclude posts indexed at or after this timestamp. Can be a datetime, or just an ISO date (YYYY-MM-DD).
sort
stringRanking order for results. 'recent' sorts by recency; 'top' uses search ranking.
knownValues: recent | top
threadRootUri
string · at-uriInclude only posts in the thread rooted at this post URI.
until
stringInclude posts indexed before this timestamp. Defaults to the current time. Can be a datetime, or just an ISO date (YYYY-MM-DD).
urls
arrayInclude posts that link to any of these URLs.
Output
application/jsoncursor
stringCursor for the next page of results.
Query languages detected for CJK, Thai, or Arabic text. Empty or omitted for other scripts.
knownValues: ja | zh | ko | th | ar
hitsTotal
integerEstimated total number of matching hits. May be rounded or truncated.
Hydrated views of matching posts.
Errors
BadQueryString
No description in schema.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
Find posts matching a search query or filters, returning search hits for matching post records.
-
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.
-
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.
-
Backend Posts search, returns only skeleton
-
Full-text search over visible posts, across every community or restricted to one. Results honour the same admission, deletion and viewer-block rules as social.coves.feed.getDiscover and social.coves.feed.getCommunity.