Overview

The Active Users endpoint provides real-time visibility into who’s currently browsing your website. Track active visitors, see what pages they’re viewing, and monitor live traffic patterns with customizable time windows.

Perfect for real-time dashboards, live visitor widgets, and monitoring traffic spikes as they happen.

Endpoint

GET https://app.usehardal.com/api/websites/{signalId}/active

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Parameters

ParameterTypeRequiredDefaultDescription
signalIdstringYes-Your website signal ID (URL path)
minutesintegerNo5Time window in minutes to look back for active visitors
targetSignalIdstringNosignalIdTarget signal ID for analytics data
isHybridbooleanNofalseWhether this is a hybrid/self-hosted signal

Quick Start

Environment Setup

Finding your signal ID: Go to your Hardal dashboard → select your project → view the signal ID.

Finding your API key: Go to your Hardal dashboard → select your signal → Settings → Security.

Start with a simple request:

Usage Examples

Response Fields

Main Data

  • count: Total number of active unique sessions
  • visitors: Array of individual active visitor objects
  • pages: Top pages currently being viewed
  • referrers: Top referrer domains for active visitors
  • devices: Breakdown of device types
  • countries: Geographic distribution of active visitors

Visitor Object

  • id: Unique visitor identifier (session-based)
  • sessionId: Unique session identifier
  • page: Current page URL path
  • title: Current page title
  • referrer: Original referrer URL
  • browser: Browser name (Chrome, Safari, Firefox)
  • os: Operating system (Windows, macOS, Linux)
  • device: Device type (Desktop, Mobile, Tablet)
  • country: Country name
  • duration: Total time spent on site in seconds
  • lastSeen: Timestamp of last activity