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

# Search Reddit users



## OpenAPI

````yaml /openapi.json post /reddit/search/users
openapi: 3.1.0
info:
  title: Bridgly API
  description: >-
    Web scraping API for LinkedIn, X (Twitter) and Reddit. Authenticated
    endpoints accept a Bridgly API key (`bgly_…`) via `Authorization: Bearer
    <token>`.
  version: 1.0.0
servers:
  - url: https://api.bridgly.app
    description: Production
  - url: http://localhost:4000
    description: Local
security: []
tags:
  - name: LinkedIn
    description: Scrape LinkedIn profiles, companies, posts, and search.
  - name: Reddit
    description: Scrape Reddit posts, subreddits, users, and search.
  - name: X (Twitter)
    description: Scrape tweets and search X.
paths:
  /reddit/search/users:
    post:
      tags:
        - Reddit
      summary: Search Reddit users
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: >-
                    The text to search Reddit for, e.g. "openai", "best
                    keyboard".
                subreddit:
                  description: >-
                    Restrict the search to a single subreddit (name without the
                    "r/" prefix). Only applies to post search.
                  type: string
                sort:
                  type: string
                  enum:
                    - relevance
                    - hot
                    - top
                    - new
                    - comments
                  description: Result ordering. Defaults to "relevance".
                time:
                  type: string
                  enum:
                    - hour
                    - day
                    - week
                    - month
                    - year
                    - all
                  description: Restrict results to a recent window. Defaults to "all".
                after:
                  description: >-
                    Pagination cursor (a Reddit fullname returned as `after`
                    from a previous page).
                  type: string
                limit:
                  description: Number of results to return (1–100). Defaults to 25.
                  type: integer
                  minimum: 1
                  maximum: 100
              required:
                - query
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  timeMs:
                    type: number
                    description: >-
                      Wall-clock time the request took to complete, in
                      milliseconds.
                  creditsCost:
                    type: number
                    description: Number of account credits this request consumed.
                  data:
                    type: object
                    properties:
                      users:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: >-
                                Base-36 account id without the `t2_` prefix,
                                e.g. "10knboj9s0".
                            username:
                              type: string
                              description: Reddit username, e.g. "OpenAI".
                            profileUrl:
                              type: string
                              description: >-
                                Absolute profile URL
                                (https://www.reddit.com/user/<username>/).
                            commentKarma:
                              anyOf:
                                - type: number
                                - type: 'null'
                              description: Comment karma.
                            linkKarma:
                              anyOf:
                                - type: number
                                - type: 'null'
                              description: Post (link) karma.
                            createdUtc:
                              anyOf:
                                - type: number
                                - type: 'null'
                              description: >-
                                Account creation time as a Unix epoch in
                                seconds.
                            iconUrl:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: Profile/snoovatar avatar URL, if any.
                            isGold:
                              type: boolean
                              description: Whether the account has Reddit Premium.
                            isMod:
                              type: boolean
                              description: Whether the account moderates any subreddit.
                            isEmployee:
                              type: boolean
                              description: Whether the account is a Reddit employee.
                            verified:
                              type: boolean
                              description: Whether the account is verified.
                            hasVerifiedEmail:
                              type: boolean
                              description: Whether the account has a verified email.
                            acceptFollowers:
                              type: boolean
                              description: Whether the account accepts followers.
                          required:
                            - id
                            - username
                            - profileUrl
                            - commentKarma
                            - linkKarma
                            - createdUtc
                            - iconUrl
                            - isGold
                            - isMod
                            - isEmployee
                            - verified
                            - hasVerifiedEmail
                            - acceptFollowers
                          additionalProperties: false
                        description: Matching users.
                      query:
                        type: string
                        description: The query string that was searched on Reddit.
                      after:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: >-
                          Pagination cursor for the next page (Reddit `after`
                          fullname), or null when there are no more results.
                    required:
                      - users
                      - query
                      - after
                    additionalProperties: false
                required:
                  - timeMs
                  - creditsCost
                  - data
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '402':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Bridgly API key (`bgly_…`). Metered endpoints deduct credits from the
        resolved account.

````