Search Posts API
Overview
API Endpoint
Search posts by query as indicated in the request parameters.
Query parameters
querystringRequired
The search query string.
exactMatchbooleanOptionalDefault:
Whether to use exact match for the query.
truetargetTypestring · enumRequiredPossible values:
The type of target to search in. Must be "community" or "user".
postedUserIdstringRequired
User ID of the user who posted the post.
filterstring · enumOptionalDefault:
Filter for posts.
allPossible values: types[]stringOptional
The types of posts to include (e.g., image, video).
tags[]stringOptional
Tags to filter posts.
targetIds[]stringOptional
Target IDs to search within.
options[limit]integer · max: 100OptionalDefault:
The maximum number of posts to return.
20options[token]stringOptional
Pagination token for fetching the next set of results.
options[sortBy]stringOptionalDefault:
Field to sort by.
createdAtoptions[orderBy]string · enumOptionalDefault:
Order of sorting.
descPossible values: Header parameters
AuthorizationstringRequiredExample:
Authorization header using the Bearer scheme. Example: 'Bearer {access_token}'
Bearer {access_token}Responses
200
A list of posts matching the query.
application/json
400
Invalid request parameters.
application/json
500
Internal server error.
application/json
get
/search/postsLast updated
Was this helpful?