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

# Share of Voice Comparison

> Get share of voice comparison between current and previous periods, showing brand mentions and percentage changes



## OpenAPI

````yaml /v1/openapi.json get /share-of-voice/comparison
openapi: 3.0.0
info:
  title: Promptwatch API
  description: API for customer integrations with Promptwatch monitoring platform
  version: 1.0.1
  contact:
    name: Promptwatch Support
    email: team@promptwatch.com
    url: https://promptwatch.com
  license:
    name: Commercial
    url: https://promptwatch.com/terms-and-conditions
servers:
  - url: https://server.promptwatch.com/api/v1
    description: Promptwatch API
security: []
tags:
  - name: Authentication
    description: API key validation and authentication
  - name: Models
    description: Available LLM models
  - name: Monitors
    description: Monitor management and data
  - name: Visibility
    description: Visibility data and insights
  - name: Citations
    description: Citation analytics and source tracking
  - name: Prompts
    description: Prompt management and operations
  - name: Analytics
    description: Analytics data and insights
  - name: Share of Voice
    description: Share of voice analytics showing brand mentions vs total responses
  - name: Responses
    description: Response analytics including mentions, competitors, and sentiment
paths:
  /share-of-voice/comparison:
    get:
      tags:
        - Share of Voice
      summary: Share of Voice Comparison
      description: >-
        Get share of voice comparison between current and previous periods,
        showing brand mentions and percentage changes
      operationId: getShareOfVoiceComparisonV1
      parameters:
        - schema:
            type: string
            format: date
          in: query
          name: startDate
          required: false
          description: Start date for share of voice data (YYYY-MM-DD)
        - schema:
            type: string
            format: date
          in: query
          name: endDate
          required: false
          description: End date for share of voice data (YYYY-MM-DD)
        - schema:
            type: string
          in: query
          name: model
          required: false
          description: Filter by specific LLM model
        - schema:
            type: string
          in: query
          name: promptId
          required: false
          description: Filter by specific prompt ID
        - schema:
            type: string
          in: query
          name: llmMonitorId
          required: false
          description: Filter by specific LLM monitor ID
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  current:
                    type: object
                    properties:
                      totalResponses:
                        type: number
                        description: Total responses in current period
                      brandMentions:
                        type: number
                        description: Brand mentions in current period
                      shareOfVoice:
                        type: number
                        description: Share of voice percentage in current period
                    required:
                      - totalResponses
                      - brandMentions
                      - shareOfVoice
                  previous:
                    type: object
                    properties:
                      totalResponses:
                        type: number
                        description: Total responses in previous period
                      brandMentions:
                        type: number
                        description: Brand mentions in previous period
                      shareOfVoice:
                        type: number
                        description: Share of voice percentage in previous period
                    required:
                      - totalResponses
                      - brandMentions
                      - shareOfVoice
                  change:
                    type: number
                    description: Percentage point change between periods
                  changePercent:
                    type: number
                    description: Relative percentage change between periods
                required:
                  - current
                  - previous
                  - change
                  - changePercent
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error type
                  message:
                    type: string
                    description: Error message
                  details:
                    type: object
                    description: Additional error details
                    additionalProperties: true
                required:
                  - error
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error type
                  message:
                    type: string
                    description: Error message
                  details:
                    type: object
                    description: Additional error details
                    additionalProperties: true
                required:
                  - error
                  - message
                additionalProperties: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get yours from the Promptwatch dashboard
        under Settings > API Keys.

````