> ## 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.

# List Topic Brand Metrics

> Visibility, citation share, position, share of voice and sentiment per topic, for the project's own brand and each direct competitor. Use YYYY-MM-DD for startDate and endDate (full calendar days in UTC).



## OpenAPI

````yaml /v2/openapi.json get /topics/brand-metrics
openapi: 3.0.0
info:
  title: Promptwatch API v2
  description: >-
    API v2 for customer integrations with Promptwatch monitoring platform. This
    version provides improved structure, additional endpoints, and enhanced
    functionality.
  version: 2.0.0
  contact:
    name: Promptwatch Support
    email: support@promptwatch.com
    url: https://promptwatch.com
  license:
    name: Commercial
    url: https://promptwatch.com/terms-and-conditions
servers:
  - url: https://server.promptwatch.com/api/v2
    description: Promptwatch API v2
security: []
tags:
  - name: Authentication
    description: API key validation and authentication
  - name: Content
    description: >-
      AI content generation and content refresh. Create content asynchronously
      and poll for results.
  - name: Content Agent
    description: >-
      Content Agent (automated content) lifecycle: project settings, scheduled
      slots, review (accept/decline), and publish.
  - name: Content Gap
    description: Content gap analysis and recommendations
  - name: Publishing
    description: >-
      Publish content to a connected CMS, or record a live URL, and track the
      published page
  - name: IndexNow
    description: Submit pages to search engines through IndexNow and track each submission
  - name: Models
    description: Available LLM models
  - name: Monitors
    description: Monitor management and CRUD operations
  - name: Page Tracker
    description: Track URLs and inspect citation stats, responses, and prompts
  - name: Prompts
    description: Prompt management and operations
  - name: Query Fanouts
    description: ChatGPT query fanout keywords
  - name: Responses
    description: LLM response data and analytics
  - name: Tags
    description: Tag management for prompts
  - name: Topics
    description: Topic management for prompts
  - name: Actions
    description: Action items (GEO suggestions and tasks)
  - name: Personas
    description: Persona configuration for monitors
  - name: Brands
    description: Brand management for competitive analysis
  - name: Brand Book
    description: Brand name, website, aliases, and the copy used to describe the brand
  - name: Visibility
    description: >-
      Brand visibility time series, competitor heatmaps, and performance
      heatmaps
  - name: Events
    description: >-
      Dated project events such as prompts added and actions completed, for
      annotating time series
  - name: Citations
    description: Citation analytics from AI responses
  - name: Analytics
    description: Visitor analytics, AI crawler logs, sentiment, and brand visibility trends
  - name: Search Insights
    description: >-
      Google Search Console and Bing Webmaster performance for the project
      website
  - name: Projects
    description: Project management (organization-level keys only)
  - name: Usage
    description: Plan usage and limits (organization-level keys only)
  - name: Sitemap
    description: Sitemap feeds, crawler settings, crawl progress, and discovered URLs
  - name: Site Health
    description: Deprecated. Legacy SEO issue pages. Use Site Audit for the current checks.
  - name: Site Audit
    description: >-
      Site audit runs, issue lists, link and content insights, and per-URL
      history
  - name: Socials
    description: >-
      Social media citations (Reddit posts, YouTube videos, LinkedIn posts, and
      Instagram posts) found in LLM responses
  - name: Ads Radar
    description: Sponsored ads captured in AI answers
  - name: Shopping
    description: Product appearances in AI shopping answers and tracked products
paths:
  /topics/brand-metrics:
    get:
      tags:
        - Topics
      summary: List Topic Brand Metrics
      description: >-
        Visibility, citation share, position, share of voice and sentiment per
        topic, for the project's own brand and each direct competitor. Use
        YYYY-MM-DD for startDate and endDate (full calendar days in UTC).
      operationId: listTopicBrandMetrics
      parameters:
        - schema:
            type: integer
            default: 1
            minimum: 1
          in: query
          name: page
          required: false
          description: Page number (1-based)
        - schema:
            type: integer
            default: 25
            minimum: 1
            maximum: 100
          in: query
          name: size
          required: false
          description: Topics per page (max 100)
        - schema:
            type: string
            maxLength: 200
          in: query
          name: query
          required: false
          description: Match topic names containing this text
        - schema:
            type: string
            enum:
              - visibility
              - citationShare
              - position
              - shareOfVoice
              - sentiment
              - promptCount
              - name
            default: visibility
          in: query
          name: sortBy
          required: false
          description: Own-brand metric, promptCount or name to sort by
        - schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
          in: query
          name: sortOrder
          required: false
          description: Sort order
        - schema:
            type: string
            format: date
          in: query
          name: startDate
          required: false
          description: >-
            Start date (YYYY-MM-DD). Max range 92 days; spans over 90 days are
            cut to the 90 days before endDate.
        - schema:
            type: string
            format: date
          in: query
          name: endDate
          required: false
          description: >-
            End date (YYYY-MM-DD). Omit both dates for the last 30 days; omit
            one and it defaults to today.
        - schema:
            anyOf:
              - type: string
              - type: array
                items:
                  type: string
          in: query
          name: models
          required: false
          description: >-
            Filter by model ids from GET /models. Repeat for multiple:
            models=x&models=y
        - schema:
            anyOf:
              - type: string
                format: uuid
              - type: array
                items:
                  type: string
                  format: uuid
          in: query
          name: monitorIds
          required: false
          description: Filter by monitor ids. Repeat for multiple.
        - schema:
            anyOf:
              - type: string
                enum:
                  - ORGANIC
                  - BRAND_SPECIFIC
                  - COMPETITOR_COMPARISON
              - type: array
                items:
                  type: string
                  enum:
                    - ORGANIC
                    - BRAND_SPECIFIC
                    - COMPETITOR_COMPARISON
          in: query
          name: promptTypes
          required: false
          description: Filter by prompt type. Repeat for multiple.
        - schema:
            anyOf:
              - type: string
                enum:
                  - BRANDED
                  - INFORMATIONAL
                  - NAVIGATIONAL
                  - COMMERCIAL
                  - TRANSACTIONAL
              - type: array
                items:
                  type: string
                  enum:
                    - BRANDED
                    - INFORMATIONAL
                    - NAVIGATIONAL
                    - COMMERCIAL
                    - TRANSACTIONAL
          in: query
          name: intentTypes
          required: false
          description: Filter by prompt intent. Repeat for multiple.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  topics:
                    - id: 6ba7b820-9dad-11d1-80b4-00c04fd430c8
                      name: seo tips
                      color: blue
                      promptCount: 7
                      visibility: 42.5
                      citationShare: 12.3
                      position: 2.1
                      shareOfVoice: 30
                      sentiment: 0.6
                      brandMetrics:
                        - brandId: 7c9e6679-7425-40de-944b-e07fc1f90ae7
                          visibility: 42.5
                          citationShare: 12.3
                          position: 2.1
                          shareOfVoice: 30
                          sentiment: 0.6
                  brands:
                    - brandId: 7c9e6679-7425-40de-944b-e07fc1f90ae7
                      name: Acme
                      domain: acme.com
                      relation: SELF
                  total: 1
                  page: 1
                  size: 25
                  totalPages: 1
                properties:
                  topics:
                    type: array
                    description: >-
                      Topics with at least one active prompt that has responses
                      in the window. Metrics are the project's own brand.
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: Topic ID
                        name:
                          type: string
                          description: Topic name
                        color:
                          type: string
                          nullable: true
                          description: Palette color key or custom "#rrggbb"
                        promptCount:
                          type: integer
                          description: Matching prompts in the topic
                        visibility:
                          type: number
                          nullable: true
                          description: >-
                            Average visibility score, 0–100. Null without
                            analyzed responses.
                        citationShare:
                          type: number
                          nullable: true
                          description: >-
                            Share of the topic's citations that point to the
                            brand's domains, 0–100.
                        position:
                          type: number
                          nullable: true
                          description: Average mention rank; 1 is best.
                        shareOfVoice:
                          type: number
                          nullable: true
                          description: Share of the topic's brand mentions, 0–100.
                        sentiment:
                          type: number
                          nullable: true
                          description: Average sentiment score of the brand's mentions.
                        brandMetrics:
                          type: array
                          description: >-
                            Metrics per tracked brand (see brands). Empty
                            without analyzed responses.
                          items:
                            type: object
                            properties:
                              brandId:
                                type: string
                                format: uuid
                                description: Brand ID from brands
                              visibility:
                                type: number
                                nullable: true
                                description: >-
                                  Average visibility score, 0–100. Null without
                                  analyzed responses.
                              citationShare:
                                type: number
                                nullable: true
                                description: >-
                                  Share of the topic's citations that point to
                                  the brand's domains, 0–100.
                              position:
                                type: number
                                nullable: true
                                description: Average mention rank; 1 is best.
                              shareOfVoice:
                                type: number
                                nullable: true
                                description: Share of the topic's brand mentions, 0–100.
                              sentiment:
                                type: number
                                nullable: true
                                description: >-
                                  Average sentiment score of the brand's
                                  mentions.
                            required:
                              - brandId
                              - visibility
                              - citationShare
                              - position
                              - shareOfVoice
                              - sentiment
                            additionalProperties: false
                      required:
                        - id
                        - name
                        - color
                        - promptCount
                        - visibility
                        - citationShare
                        - position
                        - shareOfVoice
                        - sentiment
                        - brandMetrics
                      additionalProperties: false
                  brands:
                    type: array
                    description: The project's own brand first, then direct competitors
                    items:
                      type: object
                      properties:
                        brandId:
                          type: string
                          format: uuid
                          description: Brand ID
                        name:
                          type: string
                          description: Brand name
                        domain:
                          type: string
                          nullable: true
                          description: Brand domain
                        relation:
                          type: string
                          enum:
                            - SELF
                            - DIRECT_COMPETITOR
                            - OTHER
                            - IGNORED
                          description: Relation to the project
                      required:
                        - brandId
                        - name
                        - domain
                        - relation
                      additionalProperties: false
                  total:
                    type: integer
                    description: Total matching topics
                  page:
                    type: integer
                    description: Current page
                  size:
                    type: integer
                    description: Topics per page
                  totalPages:
                    type: integer
                    description: Total pages
                required:
                  - topics
                  - brands
                  - total
                  - page
                  - size
                  - totalPages
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Bad Request
                  code: DATE_RANGE_TOO_LARGE
                  message: Date range cannot exceed 92 days
                properties:
                  error:
                    type: string
                    description: Error label
                  code:
                    type: string
                    description: Optional machine-readable code (e.g. DATE_RANGE_TOO_LARGE)
                  message:
                    type: string
                    description: Reason the request was rejected
                required:
                  - error
                  - message
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Unauthorized
                  message: Missing or invalid X-API-Key header.
                properties:
                  error:
                    type: string
                    description: Error category (often aligned with HTTP semantics)
                  code:
                    type: string
                    description: Optional machine-readable code
                  message:
                    type: string
                    description: Human-readable explanation
                  details:
                    type: object
                    description: Optional structured detail (e.g. validation)
                    additionalProperties: true
                required:
                  - error
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: TOPIC_NOT_FOUND
                  message: Topic not found
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - TOPIC_NOT_FOUND
                      - TOPIC_FORBIDDEN
                      - TOPIC_ALREADY_EXISTS
                      - TOPIC_INVALID_NAME
                      - TOPIC_INVALID_PROMPT
                      - TOPIC_NO_VALID_TOPICS_SUPPLIED
                      - TOPIC_IN_USE
                      - TOPIC_CREATE_FAILED
                      - INTERNAL_ERROR
                    example: TOPIC_NOT_FOUND
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - code
                  - 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.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.