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

# List Insights

> Return aggregated visitor insights for an app over the period.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json get /v1/apps/{app_id}/insights
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/insights:
    get:
      tags:
        - insights
      summary: List Insights
      description: Return aggregated visitor insights for an app over the period.
      operationId: insights_list_insights
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: period
          in: query
          required: false
          schema:
            enum:
              - 24h
              - 7d
              - 30d
            type: string
            default: 7d
            title: Period
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VisitorInsightsResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    VisitorInsightsResponse:
      properties:
        period:
          type: string
          enum:
            - 24h
            - 7d
            - 30d
          title: Period
        unique_visitors:
          type: integer
          title: Unique Visitors
        total_pageviews:
          type: integer
          title: Total Pageviews
        total_custom_events:
          type: integer
          title: Total Custom Events
        time_series:
          items:
            $ref: '#/components/schemas/VisitorTimeSeriesPoint'
          type: array
          title: Time Series
        top_paths:
          items:
            $ref: '#/components/schemas/VisitorPathCount'
          type: array
          title: Top Paths
        top_referrers:
          items:
            $ref: '#/components/schemas/VisitorReferrerCount'
          type: array
          title: Top Referrers
      type: object
      required:
        - period
        - unique_visitors
        - total_pageviews
        - total_custom_events
        - time_series
        - top_paths
        - top_referrers
      title: VisitorInsightsResponse
      description: Aggregated visitor insights for an app over a time window.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    VisitorTimeSeriesPoint:
      properties:
        bucket_start:
          type: string
          format: date-time
          title: Bucket Start
        unique_visitors:
          type: integer
          title: Unique Visitors
        pageviews:
          type: integer
          title: Pageviews
      type: object
      required:
        - bucket_start
        - unique_visitors
        - pageviews
      title: VisitorTimeSeriesPoint
      description: One bucket of the visitor time series chart.
    VisitorPathCount:
      properties:
        path:
          type: string
          title: Path
        count:
          type: integer
          title: Count
      type: object
      required:
        - path
        - count
      title: VisitorPathCount
      description: Aggregated count of events for a single path.
    VisitorReferrerCount:
      properties:
        referrer:
          type: string
          title: Referrer
        count:
          type: integer
          title: Count
      type: object
      required:
        - referrer
        - count
      title: VisitorReferrerCount
      description: Aggregated count of visits from a single referrer.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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