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

# Get an archived Reddit comment thread

> The post must belong to the queried Reddit username.



## OpenAPI

````yaml /tools-reference/openapi.json post /tools/reddit/thread
openapi: 3.1.0
info:
  title: Osintly Tools API
  version: 1.0.0
  description: >-
    OpenAPI specification for Osintly Epic Games, Vehicle History Finder, Xbox,
    PlayStation Network, Roblox, Steam, Social Club, and Reddit tools and
    catalog endpoints.
  contact:
    name: Osintly
    url: https://docs.osint.ly/tools-reference/introduction
servers:
  - url: https://api.osint.ly
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Tools Catalog
    description: Discover available tools, metadata, and route costs.
  - name: Epic Games
    description: Direct Epic Games account validation and enrichment endpoints.
  - name: Vehicle History Finder
    description: >-
      Vehicle history enrichment endpoints for US VINs and French license
      plates.
  - name: Xbox
    description: Direct Xbox Live account validation and enrichment endpoints.
  - name: PlayStation Network
    description: Direct PlayStation Network account validation and enrichment endpoints.
  - name: Roblox
    description: Direct Roblox account validation and enrichment endpoints.
  - name: Steam
    description: Direct Steam account validation and enrichment endpoints.
  - name: Social Club
    description: Direct Rockstar Social Club account validation and enrichment endpoints.
  - name: Reddit
    description: >-
      Reddit profile and public archived activity validation and enrichment
      endpoints.
paths:
  /tools/reddit/thread:
    post:
      tags:
        - Reddit
      summary: Get an archived Reddit comment thread
      description: The post must belong to the queried Reddit username.
      operationId: runRedditThread
      requestBody:
        $ref: '#/components/requestBodies/RedditThreadRequest'
      responses:
        '200':
          $ref: '#/components/responses/RedditToolResponse'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/PlanFeatureRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '502':
          $ref: '#/components/responses/ProviderError'
        '504':
          $ref: '#/components/responses/ProviderTimeout'
components:
  requestBodies:
    RedditThreadRequest:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RedditThreadRequest'
          example:
            value: spez
            type: username
            postId: t3_abc123
            limit: 100
  responses:
    RedditToolResponse:
      description: Structured Reddit tool response. Enriched data varies by operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RedditToolResponse'
          example:
            tool: reddit
            operation: search
            query:
              value: spez
              type: username
              normalizedType: username
            data:
              valid: true
              status: validated
            meta:
              timestamp: '2026-09-09T00:00:00.000Z'
    ValidationError:
      description: Invalid request body or parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: VALIDATION_ERROR
              message: Invalid request body
              details:
                - path: value
                  message: Invalid value
            meta:
              timestamp: '2026-06-28T12:00:00.000Z'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: UNAUTHORIZED
              message: Unauthorized
              details: A valid API key is required
            meta:
              timestamp: '2026-06-28T12:00:00.000Z'
    PlanFeatureRequired:
      description: >-
        The authenticated account does not have a paid API subscription with
        tools access
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: PLAN_FEATURE_REQUIRED
              message: Plan feature required
              details: >-
                Tools require a paid API subscription with the tools feature
                enabled
            meta:
              timestamp: '2026-06-28T12:00:00.000Z'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: NOT_FOUND
              message: Not found
            meta:
              timestamp: '2026-06-28T12:00:00.000Z'
    ProviderError:
      description: An upstream Reddit provider request failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: PROVIDER_ERROR
              message: Data unavailable
            meta:
              timestamp: '2026-06-28T12:00:00.000Z'
    ProviderTimeout:
      description: An upstream Reddit provider request timed out
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: PROVIDER_TIMEOUT
              message: Request timed out
            meta:
              timestamp: '2026-06-28T12:00:00.000Z'
  schemas:
    RedditThreadRequest:
      type: object
      required:
        - value
        - type
        - postId
      properties:
        value:
          type: string
          minLength: 3
          maxLength: 256
        type:
          type: string
          enum:
            - username
            - pseudonym
            - reddit
            - u
            - user
        postId:
          type: string
          pattern: ^(?:t3_)?[A-Za-z0-9]+$
        parentCommentId:
          type: string
          pattern: ^(?:t1_)?[A-Za-z0-9]+$
        limit:
          type: integer
          minimum: 1
          maximum: 250
          default: 25
      additionalProperties: false
    RedditToolResponse:
      type: object
      required:
        - data
        - meta
        - operation
        - query
        - tool
      properties:
        data:
          type: object
          additionalProperties: true
        meta:
          $ref: '#/components/schemas/ResponseMeta'
        operation:
          type: string
        query:
          type: object
          required:
            - value
            - type
          properties:
            value:
              type: string
            type:
              type: string
            normalizedType:
              type: string
          additionalProperties: true
        tool:
          type: string
          const: reddit
      additionalProperties: false
    ErrorResponse:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          additionalProperties: true
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      additionalProperties: false
    ResponseMeta:
      type: object
      required:
        - timestamp
      properties:
        timestamp:
          type: string
          format: date-time
        savedResult:
          $ref: '#/components/schemas/SavedToolResult'
      additionalProperties: true
    SavedToolResult:
      type: object
      required:
        - id
        - url
      properties:
        id:
          type: string
          format: uuid
        url:
          type: string
          format: uri
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````