For Developers
Get detailed event data with filtering, grouping, and pagination support
cURL
curl --request GET \ --url https://app.usehardal.com/api/websites/{websiteId}/events \ --header 'Authorization: Bearer <token>'
{ "events": [ { "id": "evt_123456789", "website_id": "cm6gihhlq000aue9wkelb4ay3", "session_id": "sess_abc123", "hostname": "example.com", "browser": "Chrome", "os": "Windows", "device": "Desktop", "country": "Turkey", "url": "/products/item-1", "referrer": "https://google.com", "page_title": "Product Details", "event_type": "pageview", "event_name": "page_view", "created_at": "2024-01-15T10:30:00+03:00" }, { "id": "evt_123456790", "website_id": "cm6gihhlq000aue9wkelb4ay3", "session_id": "sess_def456", "hostname": "example.com", "browser": "Safari", "os": "macOS", "device": "Desktop", "country": "United States", "url": "/checkout", "referrer": "/products/item-1", "page_title": "Checkout", "event_type": "custom", "event_name": "purchase", "created_at": "2024-01-15T10:32:00+03:00" } ], "pagination": { "total": 1250, "limit": 10, "offset": 0, "hasMore": true, "totalPages": 125, "currentPage": 1 } }
today
yesterday
last7days
last30days
custom
Asia/Istanbul
event
date
Was this page helpful?