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

# Get a query fan-out



## OpenAPI

````yaml https://data.otterly.ai/v1/openapi.json get /v1/audits/query-fan-outs/{fanOutId}
openapi: 3.0.0
info:
  title: Otterly Public API
  version: 1.0.0
servers:
  - url: https://data.otterly.ai
security: []
tags:
  - name: Engines
  - name: Workspaces
  - name: Brand Reports
  - name: Audits
  - name: Accounts
paths:
  /v1/audits/query-fan-outs/{fanOutId}:
    get:
      tags:
        - Audits
      summary: Get a query fan-out
      parameters:
        - schema:
            type: string
            minLength: 1
            example: 01HX7K2YV9D3M8N0G6Q5R4S3T2
            description: Query fan-out run identifier.
          required: true
          description: Query fan-out run identifier.
          name: fanOutId
          in: path
      responses:
        '200':
          description: The query fan-out run and its expanded queries.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiQueryFanOut'
        '400':
          description: Validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiValidationErrorResponse'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorResponse'
        '403':
          description: Forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorResponse'
        '404':
          description: Query fan-out not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    PublicApiQueryFanOut:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          example: 01HX7K2YV9D3M8N0G6Q5R4S3T2
        query:
          type: string
        status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
        createdDate:
          type: string
        engines:
          type: array
          items:
            type: string
        results:
          type: array
          items:
            type: object
            properties:
              engine:
                type: string
              state:
                type: string
                enum:
                  - finished
                  - failed
              reasoningForCount:
                type: string
              expandedQueries:
                type: array
                items:
                  type: object
                  properties:
                    query:
                      type: string
                    type:
                      type: string
                    userIntent:
                      type: string
                    reasoning:
                      type: string
                  required:
                    - query
                    - type
                    - userIntent
                    - reasoning
              failureReason:
                type: string
            required:
              - engine
              - state
              - reasoningForCount
              - expandedQueries
      required:
        - id
        - query
        - status
        - createdDate
        - engines
        - results
      example:
        id: 01HXFANOUT5XY8Z2N3KQ7VAW4P
        query: best running shoes for marathon training
        status: completed
        createdDate: '2026-06-18T08:29:45.000Z'
        engines:
          - chatgpt
          - google_ai_mode
          - google
        results:
          - engine: chatgpt
            state: finished
            reasoningForCount: >-
              The query is broad and commercial, so a wider set of comparison
              and intent queries is warranted.
            expandedQueries:
              - query: most cushioned running shoes for long distance
                type: comparison
                userIntent: Feature discovery
                reasoning: Marathon runners often prioritise cushioning for long mileage.
    PublicApiValidationErrorResponse:
      type: object
      properties:
        message:
          type: string
        target:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
              code:
                type: string
            required:
              - path
              - message
              - code
      required:
        - message
        - target
        - errors
      example:
        message: Validation failed
        target: query
        errors:
          - path: country
            message: Required
            code: invalid_type
    PublicApiErrorResponse:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      example:
        message: Report not found
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Provide your API key as a Bearer token: `Authorization: Bearer
        YOUR_API_KEY`.

````