> ## 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 Sentiment Trend

> Sentiment counts bucketed over time (day or week).

Plan-gated. 403 when sentiment_analysis_enabled is false.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/public/citations/sentiment-trend
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/citations/sentiment-trend:
    get:
      tags:
        - Citations
      summary: Get Sentiment Trend
      description: |-
        Sentiment counts bucketed over time (day or week).

        Plan-gated. 403 when sentiment_analysis_enabled is false.
      operationId: get_sentiment_trend_api_v1_public_citations_sentiment_trend_get
      parameters:
        - name: time_range
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/TimeRange'
              - type: 'null'
            title: Time Range
        - name: platforms[]
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/AiPlatform'
              - type: 'null'
            title: Platforms[]
        - name: localizations[]
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Localizations[]
        - name: topic_ids[]
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: integer
              - type: 'null'
            title: Topic Ids[]
        - name: bucket
          in: query
          required: false
          schema:
            type: string
            pattern: ^(day|week)$
            default: day
            title: Bucket
        - 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/SentimentTrendResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TimeRange:
      type: string
      enum:
        - all_time
        - 1y
        - 1m
        - 1w
        - 1d
      title: TimeRange
    AiPlatform:
      type: string
      enum:
        - ChatGPT
        - Gemini
        - AI Overviews
        - Google AI Mode
        - Perplexity
        - Mistral
        - Claude
        - DeepSeek
        - Grok
        - Copilot
      title: AiPlatform
    SentimentTrendResponse:
      properties:
        bucket:
          type: string
          title: Bucket
        points:
          items:
            $ref: '#/components/schemas/SentimentTrendPoint'
          type: array
          title: Points
      type: object
      required:
        - bucket
        - points
      title: SentimentTrendResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SentimentTrendPoint:
      properties:
        date:
          type: string
          title: Date
        positive_count:
          type: integer
          title: Positive Count
        negative_count:
          type: integer
          title: Negative Count
        neutral_count:
          type: integer
          title: Neutral Count
        mention_count:
          type: integer
          title: Mention Count
        citation_count:
          type: integer
          title: Citation Count
      type: object
      required:
        - date
        - positive_count
        - negative_count
        - neutral_count
        - mention_count
        - citation_count
      title: SentimentTrendPoint
      description: One bucket (day or week) of aggregated sentiment counts.
    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).

````