Skip to main content

How to Search

You can search for users, posts, blogs, and hashtags from the app or the API.

In the app (UI)

  1. Log in and find the search control (e.g. search icon or bar at the top).
  2. Click or tap it and type your query (name, keyword, hashtag, etc.).
  3. Filter by type if the app offers it (e.g. People, Posts, Blogs, Hashtags).
  4. Browse the results; click a result to open that user’s profile, post, blog, or hashtag page.
  5. Your recent searches may appear; you can clear search history in settings if the app allows.

Via the API

Universal search (all types):

GET /api/Search?q=your+query&types=user,post,blog,hashtag&page=1&pageSize=20
Authorization: Bearer {token}

Search by type:

  • Users: GET /api/Search/users?q=...&page=1&pageSize=20
  • Posts: GET /api/Search/posts?q=...
  • Blogs: GET /api/Search/blogs?q=...
  • Hashtags: GET /api/Search/hashtags?q=...

Autocomplete:

GET /api/Search/autocomplete?q=partial&type=user&limit=10
Authorization: Bearer {token}

Blocked users are excluded from search results.

Next steps