> ## Documentation Index
> Fetch the complete documentation index at: https://daun-docs.syahmi.fyi/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Users / UserIds By Tags

> Retrieve user IDs based on a list of tags.

<Warning>This API filters the users that has tags overlapping the passed tags.</Warning>
<Tip>This API is useful for fetching the userIds for feed of tagged accounts.</Tip>
<Note>Pass `userId` to filter users that the current user has not followed.</Note>
An example of tag is `["berita"]` to get the news-specific tagged accounts.

Pass the found userIds into the Posts API:

<Card title="Posts API" icon="tag" href="/post/posts/get">
  Get list of posts for feed
</Card>


## OpenAPI

````yaml GET /users/search/tags
openapi: 3.0.1
info:
  title: Users API
  version: 1.0.0
  description: API for searching users and retrieving user IDs by tags.
servers:
  - url: https://our-secret-api-url.com
security: []
paths:
  /users/search/tags:
    get:
      summary: Search for user IDs by tags
      description: Retrieve user IDs based on a list of tags.
      parameters:
        - name: tags
          in: query
          required: true
          schema:
            type: string
            description: JSON-encoded array of tags
        - name: userId
          in: query
          required: false
          schema:
            type: string
            description: userId of the current user
      responses:
        '200':
          description: Successful response with user IDs
          content:
            application/json:
              schema:
                type: array
                items:
                  type: integer
                  format: int64
                  description: User ID
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message

````