> ## 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 Search Queries

> Unique search queries variants executed for a specific prompt.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/public/search-queries/by-prompt/{prompt_id}
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/search-queries/by-prompt/{prompt_id}:
    get:
      tags:
        - Search queries
      summary: Get Prompt Search Queries
      description: Unique search queries variants executed for a specific prompt.
      operationId: >-
        get_prompt_search_queries_api_v1_public_search_queries_by_prompt__prompt_id__get
      parameters:
        - name: prompt_id
          in: path
          required: true
          schema:
            type: integer
            title: Prompt Id
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Page Size
        - 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/PaginatedUniqueSearchQueries'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PaginatedUniqueSearchQueries:
      properties:
        items:
          items:
            $ref: '#/components/schemas/UniqueSearchQuery'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - items
        - total
        - page
        - page_size
        - total_pages
      title: PaginatedUniqueSearchQueries
      description: Paginated list of unique (aggregated) search queries.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UniqueSearchQuery:
      properties:
        query:
          type: string
          title: Query
        count:
          type: integer
          title: Count
        platforms:
          items:
            $ref: '#/components/schemas/AiPlatform'
          type: array
          title: Platforms
        prompt:
          anyOf:
            - $ref: '#/components/schemas/PromptInfo'
            - type: 'null'
        first_seen:
          type: string
          format: date-time
          title: First Seen
        last_seen:
          type: string
          format: date-time
          title: Last Seen
      type: object
      required:
        - query
        - count
        - platforms
        - first_seen
        - last_seen
      title: UniqueSearchQuery
      description: Aggregated (deduplicated) search query.
    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
    AiPlatform:
      type: string
      enum:
        - ChatGPT
        - Gemini
        - AI Overviews
        - Google AI Mode
        - Perplexity
        - Mistral
        - Claude
        - DeepSeek
        - Grok
        - Copilot
      title: AiPlatform
    PromptInfo:
      properties:
        id:
          type: integer
          title: Id
        content:
          type: string
          title: Content
      type: object
      required:
        - id
        - content
      title: PromptInfo
      description: Minimal prompt reference.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Personal API key created in the dashboard (Settings > API keys).

````