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

# Get Prompt Stats

> Aggregated visibility stats for a prompt across every citation.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/public/prompts/{prompt_id}/stats
openapi: 3.1.0
info:
  title: Hikoo REST API
  description: >-
    Programmatic access to your Hikoo data: citations, prompts, competitors,
    audits, health and more. Authenticate with a personal API key
    (`Authorization: Bearer <key>`) created from the dashboard settings.
  version: 1.0.0
servers:
  - url: https://api.tryhikoo.com
security:
  - apiKey: []
paths:
  /api/v1/public/prompts/{prompt_id}/stats:
    get:
      tags:
        - Prompts
      summary: Get Prompt Stats
      description: Aggregated visibility stats for a prompt across every citation.
      operationId: get_prompt_stats_api_v1_public_prompts__prompt_id__stats_get
      parameters:
        - name: prompt_id
          in: path
          required: true
          schema:
            type: integer
            title: Prompt Id
        - name: website_id
          in: query
          required: true
          schema:
            type: integer
            description: Target website id
            title: Website Id
          description: Target website id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Bearer <api_key>
            title: Authorization
          description: Bearer <api_key>
        - name: X-MCP-Secret
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Mcp-Secret
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptStatsSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PromptStatsSchema:
      properties:
        total_citations:
          type: integer
          title: Total Citations
        mentions_count:
          type: integer
          title: Mentions Count
        mention_percentage:
          type: number
          title: Mention Percentage
        platforms:
          items:
            $ref: '#/components/schemas/PlatformStatSchema'
          type: array
          title: Platforms
        competitors:
          items:
            $ref: '#/components/schemas/CompetitorStatSchema'
          type: array
          title: Competitors
      type: object
      required:
        - total_citations
        - mentions_count
        - mention_percentage
        - platforms
        - competitors
      title: PromptStatsSchema
      description: Aggregated stats for a prompt (computed from ALL citations)
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PlatformStatSchema:
      properties:
        platform:
          type: string
          title: Platform
        count:
          type: integer
          title: Count
        percentage:
          type: number
          title: Percentage
      type: object
      required:
        - platform
        - count
        - percentage
      title: PlatformStatSchema
      description: Platform stat for prompt stats
    CompetitorStatSchema:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        count:
          type: integer
          title: Count
      type: object
      required:
        - id
        - name
        - count
      title: CompetitorStatSchema
      description: Competitor stat for prompt stats
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Personal API key created in the dashboard (Settings > API keys).

````