---
title: "Get recent activity events for real-time activity feed"
method: GET
path: "/analytics/recent-activity"
tags: ["Analytics"]
---

# Get recent activity events for real-time activity feed

`GET /analytics/recent-activity`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/analytics/recent-activity`
- Auth: HTTP bearer

## Query parameters

- `project_id` integer, required
- `environment_id` integer
- `since_id` integer
- `limit` integer

## Response `200`

Successfully retrieved recent activity events

- RecentActivityResponse: Response for recent activity events endpoint
  - `count` integer, required: Total events returned
  - `events` ActivityEvent[], required: Recent events, newest first
    - `browser` string, nullable: Browser
    - `city` string, nullable: Visitor's city (from ip_geolocations)
    - `country` string, nullable: Visitor's country (from ip_geolocations)
    - `country_code` string, nullable: Visitor's country code (from ip_geolocations)
    - `device_type` string, nullable: Device type
    - `event_name` string, nullable: Event name (for custom events)
    - `event_type` string, required: Event type: "page_view", "custom", etc.
    - `id` integer, required: Event ID
    - `is_crawler` boolean, required: Whether this event was from a crawler
    - `latitude` number, double, nullable: Latitude
    - `longitude` number, double, nullable: Longitude
    - `operating_system` string, nullable: Operating system
    - `page_path` string, required: Page path where the event happened
    - `page_title` string, nullable: Page title
    - `referrer` string, nullable: Referrer
    - `timestamp` string, date-time, required: When the event occurred
    - `visitor_id` integer, nullable: Visitor numeric ID

## Other responses

- `400`: Invalid parameters
- `500`: Internal server error

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/analytics/recent-activity/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
