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

# Get prompt analytics

> One prompt's rates and trends, per-platform results and competitor mentions. Requires `visibility:read`.



## OpenAPI

````yaml /openapi.yaml get /visibility/prompts/{prompt}
openapi: 3.1.0
info:
  title: AeoNut API
  version: '1.0'
  description: >
    Read your workspace's AI visibility, content map and content data. Every
    response is wrapped in

    `{code, messages, data}`. Rates are fractions between 0 and 1 unless a field
    says otherwise.
servers:
  - url: https://services.deepsmith.ai/core/api/external/v1
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: Me
  - name: Workspace
  - name: AI visibility
  - name: Content map
  - name: Content
  - name: IQ
paths:
  /visibility/prompts/{prompt}:
    get:
      tags:
        - AI visibility
      summary: Get prompt analytics
      description: >-
        One prompt's rates and trends, per-platform results and competitor
        mentions. Requires `visibility:read`.
      parameters:
        - $ref: '#/components/parameters/PromptId'
        - $ref: '#/components/parameters/Range'
      responses:
        '200':
          description: Prompt analytics
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                  - properties:
                      data:
                        type: object
                        properties:
                          overview:
                            type: object
                            properties:
                              range:
                                $ref: '#/components/schemas/RangeValue'
                              prompt:
                                $ref: '#/components/schemas/Prompt'
                              mention_rate:
                                $ref: '#/components/schemas/RateBlock'
                              citation_rate:
                                $ref: '#/components/schemas/RateBlock'
                              trend_series:
                                type: object
                                properties:
                                  mention:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        date:
                                          type: string
                                          format: date
                                        rate:
                                          type: number
                                  citation:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        date:
                                          type: string
                                          format: date
                                        rate:
                                          type: number
                          platforms:
                            type: array
                            items:
                              type: object
                              properties:
                                platform:
                                  $ref: '#/components/schemas/Platform'
                                total:
                                  type: integer
                                mentioned:
                                  type: object
                                  properties:
                                    count:
                                      type: integer
                                    rate:
                                      type:
                                        - number
                                        - 'null'
                                cited:
                                  type: object
                                  properties:
                                    count:
                                      type: integer
                                    rate:
                                      type:
                                        - number
                                        - 'null'
                          competitors:
                            type: array
                            items:
                              type: object
                              properties:
                                competitor:
                                  type: string
                                  description: Competitor name
                                mentions:
                                  type: integer
                                mention_rate:
                                  type:
                                    - number
                                    - 'null'
                          total_snapshots:
                            type: integer
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    PromptId:
      name: prompt
      in: path
      required: true
      description: A prompt ID from `GET /visibility/prompts`.
      schema:
        type: string
        format: uuid
    Range:
      name: range
      in: query
      description: >-
        The period to report on. The previous period of the same length is
        returned for comparison.
      schema:
        $ref: '#/components/schemas/RangeValue'
  schemas:
    Envelope:
      type: object
      properties:
        code:
          type: integer
          description: AeoNut status code
        messages:
          type: string
        data: {}
    RangeValue:
      type: string
      enum:
        - 7d
        - 30d
        - 90d
      default: 30d
    Prompt:
      type: object
      properties:
        id:
          type: string
          format: uuid
        text:
          type: string
        category_id:
          type:
            - string
            - 'null'
          format: uuid
        category:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
            color:
              type: string
        mention_rate:
          type:
            - number
            - 'null'
        mention_rate_delta:
          type:
            - number
            - 'null'
        citation_rate:
          type:
            - number
            - 'null'
        citation_rate_delta:
          type:
            - number
            - 'null'
        last_collected_at:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - PENDING
            - GENERATING
            - ACTIVE
        created_at:
          type: string
          format: date-time
    RateBlock:
      type: object
      description: >-
        A rate for this period and the previous one, as fractions. A side is
        `null` when there is no data.
      properties:
        current:
          type:
            - number
            - 'null'
        previous:
          type:
            - number
            - 'null'
        delta:
          type:
            - number
            - 'null'
    Platform:
      type: string
      enum:
        - chatgpt
        - google_ai_overview
        - perplexity
        - gemini
        - grok
        - claude
    Scope:
      type: string
      enum:
        - workspace:read
        - visibility:read
        - contentmap:read
        - content:read
        - iq:read
  responses:
    Unauthorized:
      description: Missing (`code` 4021), invalid, revoked or expired (`code` 4022) API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Envelope'
          example:
            code: 4022
            messages: Invalid, revoked or expired API key.
            data: null
    Forbidden:
      description: The key lacks a required scope
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/Envelope'
              - properties:
                  data:
                    type: object
                    properties:
                      required:
                        type: array
                        items:
                          $ref: '#/components/schemas/Scope'
                      missing:
                        type: array
                        items:
                          $ref: '#/components/schemas/Scope'
          example:
            code: 4023
            messages: This API key does not have the scope required for this request.
            data:
              required:
                - visibility:read
              missing:
                - visibility:read
    NotFound:
      description: The resource doesn't exist in this workspace
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key: `Authorization: Bearer API Key Value`'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY

````

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