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

# Your realtime numbers

> The last 48 hours by hour and the last 60 minutes by minute, today's plays, views, likes and remixes, your followers and your top projects of the 48 hours. Ask about every 20 seconds while it's on screen; answers are fresh for 15.



## OpenAPI

````yaml /api-reference/openapi.json get /me/analytics/realtime
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /me/analytics/realtime:
    get:
      tags:
        - Analytics
      summary: Your realtime numbers
      description: >-
        The last 48 hours by hour and the last 60 minutes by minute, today's
        plays, views, likes and remixes, your followers and your top projects of
        the 48 hours. Ask about every 20 seconds while it's on screen; answers
        are fresh for 15.
      parameters:
        - schema:
            type: string
            pattern: ^[a-z0-9][a-z0-9_-]*\/[a-z0-9][a-z0-9-]*$/i
            description: Just this project, as owner/slug
            example: mira/lantern-run
          required: false
          description: Just this project, as owner/slug
          name: project
          in: query
        - schema:
            type: string
            maxLength: 64
            description: >-
              Your time zone, IANA's name for it (e.g. `Europe/Berlin`): days
              start at its midnight. UTC when left out, unknown, an offset or an
              abbreviation.
            example: Europe/Berlin
          required: false
          description: >-
            Your time zone, IANA's name for it (e.g. `Europe/Berlin`): days
            start at its midnight. UTC when left out, unknown, an offset or an
            abbreviation.
          name: tz
          in: query
      responses:
        '200':
          description: Your realtime numbers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RealtimeAnalytics'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Not signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    RealtimeAnalytics:
      type: object
      properties:
        at:
          type: string
        hour_start:
          type: string
          description: When the last hour of `hours` started
        minute_start:
          type: string
          description: When the last minute of `minutes` started
        kinds:
          type: object
          properties:
            games:
              type: boolean
            blocks:
              type: boolean
          required:
            - games
            - blocks
        followers:
          type:
            - integer
            - 'null'
          description: Null for one project
        hours:
          type: array
          items:
            type: integer
          description: >-
            The public number (games' plays and blocks' views) in each of the
            last 48 hours, oldest first; the last is still going
        minutes:
          type: array
          items:
            type: integer
          description: The same in each of the last 60 minutes
        today:
          type: object
          properties:
            plays:
              type: integer
            views:
              type: integer
              description: Blocks' views
            likes:
              type: integer
            remixes:
              type: integer
              description: Copies made today
          required:
            - plays
            - views
            - likes
            - remixes
        top:
          type: array
          items:
            type: object
            properties:
              handle:
                type: string
              name:
                type: string
              kind:
                type: string
                enum:
                  - game
                  - block
              cover_url:
                type:
                  - string
                  - 'null'
              cover_levels:
                $ref: '#/components/schemas/MediaLevels'
              'n':
                type: integer
            required:
              - handle
              - name
              - kind
              - cover_url
              - cover_levels
              - 'n'
      required:
        - at
        - hour_start
        - minute_start
        - kinds
        - followers
        - hours
        - minutes
        - today
        - top
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: version_exists
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
    MediaLevels:
      type: array
      items:
        type: object
        properties:
          width:
            type: integer
          url:
            type: string
        required:
          - width
          - url
      description: >-
        Smaller copies of a picture (WebP) or a clip (MP4, H.264, without
        sound), smallest first, each at its own address that never changes. Show
        the smallest that's sharp where it goes. Empty for animated pictures,
        for flat art and short clips with no smaller copy, and for media from
        before Patch made copies until theirs are made: then use the file
        itself.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (pch_...) or the token from pch login.

````

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