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

# Reddit User API

> Karma, account age, and badges for one user.



## OpenAPI

````yaml https://api.scoutlayer.io/openapi.json get /v1/reddit/users/{username}
openapi: 3.0.0
info:
  title: ScoutLayer API
  version: 1.0.0
  description: Structured data from the web. No browser required.
servers:
  - url: https://api.scoutlayer.com
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/reddit/users/{username}:
    get:
      tags:
        - reddit
        - users
      summary: Get a public Reddit user profile
      description: Karma, account age, and badges for one user.
      parameters:
        - schema:
            type: string
            minLength: 1
            example: spez
          required: true
          name: username
          in: path
      responses:
        '200':
          description: Get a public Reddit user profile
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedditUser'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: The orchestrator failed or was unreachable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    RedditUser:
      type: object
      properties:
        username:
          type: string
        userId:
          type: string
          description: Reddit's internal user ID, without the "t2_" prefix
        linkKarma:
          type: integer
          description: Karma earned from link/text posts
        commentKarma:
          type: integer
        totalKarma:
          type: integer
        createdAt:
          type: string
          description: ISO 8601 account-creation timestamp
        isGold:
          type: boolean
          description: Has Reddit Premium
        isMod:
          type: boolean
          description: Moderates at least one subreddit
        iconImg:
          type: string
          nullable: true
          description: Avatar image URL, or null if default
        verified:
          type: boolean
          description: Has a verified email address
      required:
        - username
        - userId
        - linkKarma
        - commentKarma
        - totalKarma
        - createdAt
        - isGold
        - isMod
        - iconImg
        - verified
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: NOT_FOUND
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key passed as the X-API-Key request header. Recommended for
        server-to-server calls.
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (or OAuth token) passed as a Bearer token in the Authorization
        header.

````