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

# Get Analytics Stats

> Returns platform-wide analytics KPI counts: moments created, airdropped, and collected; active artists; collectors; and artists who both created and collected.

For `day`, `week`, and `month`, each metric includes `value`, `prev`, and `delta_pct`. For `all`, only `value` is set.

**This is a public endpoint and does not require authentication.**



## OpenAPI

````yaml GET /stats/analytics
openapi: 3.1.0
info:
  title: In•Process API
  description: >-
    The In•Process API enables browsing and managing moments from timelines.
    Retrieve moments from a specific artist's timeline, browse the in•process
    collective timeline, or filter by collection. The API supports creating
    moments, managing collections, handling payments, and interacting with the
    In•Process protocol ecosystem.
  version: 1.0.0
servers:
  - url: https://api.inprocess.world/api
    description: Production server
security: []
paths:
  /stats/analytics:
    get:
      summary: Get Analytics Stats
      description: >-
        Returns platform-wide analytics KPI counts: moments created, airdropped,
        and collected; active artists; collectors; and artists who both created
        and collected.


        For `day`, `week`, and `month`, each metric includes `value`, `prev`,
        and `delta_pct`. For `all`, only `value` is set.


        **This is a public endpoint and does not require authentication.**
      operationId: getAnalyticsStats
      parameters:
        - name: period
          in: query
          required: false
          description: Time period to aggregate over. Defaults to `week`.
          schema:
            type: string
            enum:
              - day
              - week
              - month
              - all
            default: week
        - name: artist
          in: query
          required: false
          description: >-
            Optional filter by wallet (`0x` + 40 hex, case-insensitive) or
            username substring.
          schema:
            type: string
            minLength: 1
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsStats'
              example:
                period: week
                moments_created:
                  value: 54
                  prev: 46
                  delta_pct: 17.4
                moments_airdropped:
                  value: 18
                  prev: 17
                  delta_pct: 5.9
                moments_collected:
                  value: 32
                  prev: 30
                  delta_pct: 6.7
                active_artists:
                  value: 17
                  prev: 14
                  delta_pct: 21.4
                collectors:
                  value: 21
                  prev: 23
                  delta_pct: -8.7
                artists_collectors:
                  value: 3
                  prev: 2
                  delta_pct: 50
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - errors
                properties:
                  message:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - field
                        - message
                      properties:
                        field:
                          type: string
                        message:
                          type: string
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    AnalyticsStats:
      type: object
      required:
        - period
        - moments_created
        - moments_airdropped
        - moments_collected
        - active_artists
        - collectors
        - artists_collectors
      properties:
        period:
          type: string
          enum:
            - day
            - week
            - month
            - all
        moments_created:
          $ref: '#/components/schemas/AnalyticsStatMetric'
        moments_airdropped:
          $ref: '#/components/schemas/AnalyticsStatMetric'
        moments_collected:
          $ref: '#/components/schemas/AnalyticsStatMetric'
        active_artists:
          $ref: '#/components/schemas/AnalyticsStatMetric'
        collectors:
          $ref: '#/components/schemas/AnalyticsStatMetric'
        artists_collectors:
          $ref: '#/components/schemas/AnalyticsStatMetric'
    Error:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          description: Error status
        message:
          type: string
          description: Error message
        errors:
          type: array
          description: >-
            Optional array of field-level validation errors. Typically included
            in 400 Bad Request responses for validation errors.
          items:
            type: object
            required:
              - field
              - message
            properties:
              field:
                type: string
                description: The field name that failed validation
              message:
                type: string
                description: The validation error message for this field
    AnalyticsStatMetric:
      type: object
      required:
        - value
        - prev
        - delta_pct
      properties:
        value:
          type: integer
          format: int64
          description: Count for the requested period.
        prev:
          type:
            - integer
            - 'null'
          format: int64
          description: Count for the previous period. `null` when `period` is `all`.
        delta_pct:
          type:
            - number
            - 'null'
          description: Percent change vs `prev`. `null` when `period` is `all`.

````