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

# Listening analytics

> Retrieve social listening KPIs, sentiment distribution, intents, time-series volume, and platform breakdowns.



## OpenAPI

````yaml openapi.json GET /api/v1/inbox/listening/analytics
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/inbox/listening/analytics:
    get:
      tags:
        - Social Listening
      summary: Get listening analytics
      description: >-
        Retrieve social listening KPIs, sentiment distribution, intents,
        time-series volume, and platform breakdowns.
      parameters:
        - schema:
            type:
              - number
              - 'null'
            default: 30
            description: Lookback period in days (e.g. 7, 14, 30, 90)
            example: 30
          required: false
          description: Lookback period in days (e.g. 7, 14, 30, 90)
          name: days
          in: query
        - schema:
            type: string
            description: Optional ID to scope analytics to a single keyword monitor
            example: kw_123456
          required: false
          description: Optional ID to scope analytics to a single keyword monitor
          name: keywordId
          in: query
        - schema:
            type: string
            enum:
              - TWITTER
              - INSTAGRAM
              - REDDIT
              - ONLYFANS
              - FANSLY
              - FANVUE
              - TIKTOK
              - REDGIFS
              - THREADS
              - SNAPCHAT
              - BLUESKY
              - YOUTUBE
              - LINKEDIN
              - FACEBOOK
              - PINTEREST
              - MESSENGER
              - SLACK
              - TELEGRAM
              - DISCORD
              - GOOGLE_BUSINESS
              - MASTODON
              - HACKERNEWS
              - SUBSTACK
            description: Optional social platform filter
            example: TWITTER
          required: false
          description: Optional social platform filter
          name: platform
          in: query
      responses:
        '200':
          description: Listening analytics data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListeningAnalyticsResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ListeningAnalyticsResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
          example: true
        data:
          type: object
          properties:
            days:
              type: number
              description: Lookback window in days
              example: 30
            overview:
              $ref: '#/components/schemas/ListeningAnalyticsOverview'
            breakdowns:
              $ref: '#/components/schemas/ListeningAnalyticsBreakdowns'
            timeSeries:
              type: array
              items:
                $ref: '#/components/schemas/ListeningAnalyticsTimeSeriesPoint'
              description: Daily mention volume trends
          required:
            - days
            - overview
            - breakdowns
      required:
        - success
        - data
    ListeningAnalyticsOverview:
      type: object
      properties:
        totalMentions:
          type: number
          description: Total mentions detected across all enabled monitors in window
          example: 3250
        mentionsDelta:
          type: number
          description: Percentage change in volume compared to prior period
          example: 16
        positivePercent:
          type: number
          description: Percentage of mentions classified as positive sentiment
          example: 64
        neutralPercent:
          type: number
          description: Percentage of mentions classified as neutral sentiment
          example: 26
        negativePercent:
          type: number
          description: Percentage of mentions classified as negative sentiment
          example: 10
        positiveCount:
          type: number
          description: Total positive mentions count
          example: 2086
        neutralCount:
          type: number
          description: Total neutral mentions count
          example: 829
        negativeCount:
          type: number
          description: Total negative mentions count
          example: 335
        mixedCount:
          type: number
          description: Total mixed sentiment mentions count
          example: 0
        topPlatform:
          type:
            - string
            - 'null'
          description: Platform generating the largest share of mentions
          example: TWITTER
        topIntent:
          type:
            - string
            - 'null'
          description: Most frequent detected conversation intent
          example: Support Request
        activeKeywordsCount:
          type: number
          description: Number of active keyword monitors in workspace
          example: 5
      required:
        - totalMentions
        - mentionsDelta
        - positivePercent
        - neutralPercent
        - negativePercent
        - positiveCount
        - neutralCount
        - negativeCount
        - mixedCount
        - topPlatform
        - topIntent
        - activeKeywordsCount
    ListeningAnalyticsBreakdowns:
      type: object
      properties:
        total:
          type: number
          description: Total mentions analyzed
          example: 3250
        platforms:
          type: array
          items:
            type: object
            properties:
              platform:
                type: string
                description: Platform identifier
                example: TWITTER
              count:
                type: number
                description: Mentions count
                example: 1600
              percentage:
                type: number
                description: Percentage of total volume
                example: 49
            required:
              - platform
              - count
              - percentage
          description: Platform volume distribution
        sentiments:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
                description: Sentiment key
                example: positive
              label:
                type: string
                description: Display label
                example: Positive
              count:
                type: number
                description: Mentions count
                example: 2086
              percentage:
                type: number
                description: Percentage share
                example: 64
            required:
              - key
              - label
              - count
              - percentage
          description: Sentiment breakdown
        intents:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Intent identifier
              name:
                type: string
                description: Intent name
                example: Support Request
              slug:
                type: string
                description: Intent slug
                example: support
              count:
                type: number
                description: Mentions count
                example: 420
              percentage:
                type: number
                description: Percentage share
                example: 13
            required:
              - id
              - name
              - slug
              - count
              - percentage
          description: Detected user intent breakdown
      required:
        - total
        - platforms
        - sentiments
        - intents
    ListeningAnalyticsTimeSeriesPoint:
      type: object
      properties:
        date:
          type: string
          description: ISO date (YYYY-MM-DD)
          example: '2026-09-01'
        label:
          type: string
          description: Formatted date label
          example: Sep 1
        mentions:
          type: number
          description: Mentions count in current period
          example: 45
        priorMentions:
          type: number
          description: Mentions count in preceding period
          example: 38
      required:
        - date
        - label
        - mentions
        - priorMentions
      additionalProperties: {}
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

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