Umami Realtime API

The Realtime API from Umami — 1 operation(s) for realtime.

Operations 1

GET /api/realtime/{websiteId} Get real-time website activity #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-website-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-website-pageviews-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-create-website-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-website-page-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-website-stats-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-website-session-page-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-website-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-website-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-pageview-data-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-metric-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-active-visitors-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-session-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-session-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-session-stats-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-user-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-user-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-team-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-team-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-team-member-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-team-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-login-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-login-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-schema/umami-ok-response-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-structure/umami-website-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-structure/umami-website-list-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-structure/umami-website-stats-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-structure/umami-session-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-structure/umami-session-list-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-structure/umami-metric-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-structure/umami-user-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-structure/umami-team-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-structure/umami-team-member-structure.json

Other Resources

🔗
Postman
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/postman/umami-events-api.postman_collection.json
🔗
OpenCollection
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/collections/umami-events-api.opencollection.json
🔗
APIDocumentation
https://docs.umami.is/docs/api
🔗
GitHubOrg
https://github.com/umami-software/umami
🔗
JSONLDContext
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/json-ld/umami-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/examples/umami-website-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/examples/umami-website-stats-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/examples/umami-pageview-data-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/examples/umami-metric-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/examples/umami-session-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/examples/umami-session-stats-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/examples/umami-user-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/examples/umami-team-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/examples/umami-active-visitors-example.json
🔗
Postman
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/postman/umami-sessions-api.postman_collection.json
🔗
OpenCollection
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/collections/umami-sessions-api.opencollection.json
🔗
Postman
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/postman/umami-website-statistics-api.postman_collection.json
🔗
OpenCollection
https://raw.githubusercontent.com/api-evangelist/umami/refs/heads/main/collections/umami-website-statistics-api.opencollection.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/umami:umami-realtime-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

umami-realtime-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Umami Realtime API
  version: 3.3.1
  license:
    identifier: MIT
    name: MIT
  x-refined-note:
  - x-source differs across the merged source definitions and was not carried
  description: 'Operations tagged Realtime across 2 of this provider''s published API definitions: umami-openapi.json, umami-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{instance}
  description: Self-hosted Umami instance (paths begin with /api). Umami Cloud serves the same API at https://api.umami.is/v1 per docs.umami.is/docs/api.
  variables:
    instance:
      default: your-umami-instance.example.com
tags:
- name: Realtime
paths:
  /api/realtime/{websiteId}:
    get:
      description: Returns recent website activity and visitor data for the real-time view, applying the supplied filters.
      operationId: getRealtime
      parameters:
      - description: ID of the website.
        in: path
        name: websiteId
        required: true
        schema:
          type: string
      - description: IANA time zone used to interpret dates and group results, for example America/New_York.
        in: query
        name: timezone
        required: false
        schema:
          type: string
      - description: 'Time interval used to group results: minute, hour, day, month, or year.'
        in: query
        name: unit
        required: false
        schema:
          type: string
      - description: Filter by page URL path.
        in: query
        name: path
        required: false
        schema:
          type: string
      - description: Filter by referring URL.
        in: query
        name: referrer
        required: false
        schema:
          type: string
      - description: Filter by page title.
        in: query
        name: title
        required: false
        schema:
          type: string
      - description: Filter by page URL query string.
        in: query
        name: query
        required: false
        schema:
          type: string
      - description: Operating system used by the visitor.
        in: query
        name: os
        required: false
        schema:
          type: string
      - description: Browser used by the visitor.
        in: query
        name: browser
        required: false
        schema:
          type: string
      - description: Device category used by the visitor.
        in: query
        name: device
        required: false
        schema:
          type: string
      - description: Country code of the visitor.
        in: query
        name: country
        required: false
        schema:
          type: string
      - description: Region or subdivision of the visitor.
        in: query
        name: region
        required: false
        schema:
          type: string
      - description: City of the visitor.
        in: query
        name: city
        required: false
        schema:
          type: string
      - description: Tag attached to the tracked activity.
        in: query
        name: tag
        required: false
        schema:
          type: string
      - description: Hostname on which the activity occurred.
        in: query
        name: hostname
        required: false
        schema:
          type: string
      - description: Custom identifier assigned to the visitor.
        in: query
        name: distinctId
        required: false
        schema:
          type: string
      - description: Preferred language reported by the visitor browser.
        in: query
        name: language
        required: false
        schema:
          type: string
      - description: Filter by custom event name.
        in: query
        name: event
        required: false
        schema:
          type: string
      - description: UTM campaign source.
        in: query
        name: utmSource
        required: false
        schema:
          type: string
      - description: UTM campaign medium.
        in: query
        name: utmMedium
        required: false
        schema:
          type: string
      - description: UTM campaign name.
        in: query
        name: utmCampaign
        required: false
        schema:
          type: string
      - description: UTM campaign content.
        in: query
        name: utmContent
        required: false
        schema:
          type: string
      - description: UTM campaign search term.
        in: query
        name: utmTerm
        required: false
        schema:
          type: string
      - description: Set a non-empty value to exclude visits with only one pageview.
        in: query
        name: excludeBounce
        required: false
        schema:
          type: string
      - description: ID of a saved segment used to filter results.
        in: query
        name: segment
        required: false
        schema:
          format: uuid
          type: string
      - description: ID of a saved cohort used to filter visitors.
        in: query
        name: cohort
        required: false
        schema:
          format: uuid
          type: string
      - description: 'Event type: 1 for a pageview or 2 for a custom event.'
        in: query
        name: eventType
        required: false
        schema:
          minimum: 1
          type: integer
      - description: Whether records must match all filters or any filter.
        in: query
        name: match
        required: false
        schema:
          enum:
          - all
          - any
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  countries:
                    additionalProperties:
                      type: number
                    properties: {}
                    type: object
                  events:
                    items:
                      properties:
                        __type:
                          anyOf:
                          - const: event
                          - const: session
                          - const: pageview
                        browser:
                          description: Browser used by the visitor.
                          type: string
                        country:
                          description: Country code of the visitor.
                          type: string
                        createdAt:
                          anyOf:
                          - type: string
                          - format: date-time
                            type: string
                          description: Date and time the record was created.
                        device:
                          description: Device category used by the visitor.
                          type: string
                        eventName:
                          description: Name of the custom event.
                          type: string
                        hostname:
                          description: Hostname on which the activity occurred.
                          type: string
                        os:
                          description: Operating system used by the visitor.
                          type: string
                        referrerDomain:
                          description: Domain of the referring page.
                          type: string
                        sessionId:
                          description: ID of the visitor session.
                          type: string
                        urlPath:
                          description: Path portion of the page URL.
                          type: string
                      required:
                      - __type
                      - sessionId
                      - eventName
                      - createdAt
                      - browser
                      - os
                      - device
                      - country
                      - urlPath
                      - referrerDomain
                      - hostname
                      type: object
                    type: array
                  referrers:
                    additionalProperties:
                      type: number
                    properties: {}
                    type: object
                  series:
                    properties:
                      views:
                        description: Pageview counts for the selected period.
                        items:
                          properties:
                            t:
                              type: string
                            x:
                              type: string
                            y:
                              type: number
                          required:
                          - x
                          - t
                          - y
                          type: object
                        type: array
                      visitors:
                        description: Unique visitor counts for the selected period.
                        items:
                          properties:
                            t:
                              type: string
                            x:
                              type: string
                            y:
                              type: number
                          required:
                          - x
                          - t
                          - y
                          type: object
                        type: array
                    required:
                    - views
                    - visitors
                    type: object
                  timestamp:
                    type: number
                  totals:
                    properties:
                      countries:
                        type: number
                      events:
                        type: number
                      views:
                        description: Pageview counts for the selected period.
                        type: number
                      visitors:
                        description: Unique visitor counts for the selected period.
                        type: number
                    required:
                    - views
                    - visitors
                    - events
                    - countries
                    type: object
                  urls:
                    additionalProperties:
                      type: number
                    properties: {}
                    type: object
                required:
                - countries
                - events
                - referrers
                - timestamp
                - series
                - totals
                - urls
                type: object
          description: The operation completed successfully.
        '400':
          content:
            application/json:
              example:
                error:
                  code: bad-request
                  message: Bad request.
                  status: 400
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Bad request.
        '401':
          content:
            application/json:
              example:
                error:
                  code: unauthorized
                  message: Unauthorized.
                  status: 401
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Unauthorized.
      security:
      - bearerAuth: []
      - shareContext: []
        shareToken: []
      summary: Get real-time website activity
      tags:
      - Realtime
      x-umami-audience: public
      x-umami-contract: explicit
      x-umami-source: src/app/api/realtime/[websiteId]/contract.generated.ts
components:
  schemas:
    ApiError:
      additionalProperties: false
      description: Standard Umami API error response.
      properties:
        error:
          additionalProperties: {}
          description: Error details returned when the operation fails.
          properties:
            code:
              type: string
            message:
              description: Human-readable explanation of the result.
              type: string
            status:
              maximum: 9007199254740991
              minimum: -9007199254740991
              type: integer
          required:
          - message
          - code
          - status
          type: object
      required:
      - error
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: Token returned by POST /api/auth/login, or an API key (`umami_…`) created under Settings → API keys (self-hosted only).
      scheme: bearer
      type: http
    shareContext:
      description: Required context header when authenticating with a share token.
      in: header
      name: x-umami-share-context
      type: apiKey
    shareToken:
      description: Signed token returned by a share endpoint.
      in: header
      name: x-umami-share-token
      type: apiKey
externalDocs:
  description: Umami API documentation
  url: https://docs.umami.is/docs/api
x-refined-from:
- umami-openapi.json
- umami-openapi.yml