List events
const url = 'https://user.userguiding.com/public/event?start=2026-04-15T12%3A00%3A00Z&end=2026-04-15T12%3A00%3A00Z&type=page_view&sort=asc&page_size=100&search_after=';const options = {method: 'GET', headers: {'UG-API-KEY': '<UG-API-KEY>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://user.userguiding.com/public/event?start=2026-04-15T12%3A00%3A00Z&end=2026-04-15T12%3A00%3A00Z&type=page_view&sort=asc&page_size=100&search_after=' \ --header 'UG-API-KEY: <UG-API-KEY>'Returns your users’ events in a time range, page by page and sorted by time. The range can be up to 90 days.
To get the next page, send the search_after value from the response and keep every other parameter the same. You have reached the end when events comes back empty or with fewer items than page_size.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Start of the range, inclusive. An ISO 8601 date and time such as 2026-09-01T00:00:00Z. Times without a timezone are read as UTC.
End of the range, exclusive. Must be after start and at most 90 days later.
Which events to return: page_view for page views, material for events from your UserGuiding content such as guide starts, or custom for events you track.
asc for oldest first or desc for newest first. Keep it the same while paginating.
Number of events per page. Defaults to 100, up to 1,000.
Cursor from the search_after field of the previous response. Leave it out for the first page.
Responses
Section titled “Responses”A page of events.
object
Events of the requested page, ordered by sort.
object
Your own id of the user who fired the event.
Event name. Page views are named page_view, material events carry the UserGuiding event name, custom events carry the name you tracked.
UTC timestamp of the event.
Event details. Keys depend on the event type, e.g. referrer for page views or guide_id for guide events.
object
Cursor to pass as search_after on the next request. Keep every other parameter the same while paginating. The page is the last one when events is empty or holds fewer items than page_size.
Example
{ "events": [ { "created": "2026-09-09T18:27:19.184127Z", "full_url": "https://app.example.com/lighthouse-ai", "metadata": { "referrer": "https://app.example.com/dashboard" }, "name": "page_view", "url_host": "app.example.com", "url_path": "/lighthouse-ai", "user_id": "10931" }, { "created": "2026-09-09T18:27:21.520203Z", "full_url": "https://app.example.com/dashboard", "metadata": { "referrer": "https://app.example.com/lighthouse-ai" }, "name": "page_view", "url_host": "app.example.com", "url_path": "/dashboard", "user_id": "10931" } ], "search_after": "WyJhc2MiLCAxNzg4OTc4NDQxNTIwLCAiMTA5MzEiLCAicGFnZV92aWV3Il0="}Invalid query parameters.
Example
{ "detail": [ { "loc": [], "msg": "Date range can be at most 90 days." }, { "loc": [ "page_size" ], "msg": "Input should be less than or equal to 1000" } ]}Your project used up its rate limit: bursts of up to 2,000 requests, refilled at 20 requests per second.
Headers
Section titled “Headers”Seconds to wait before sending another request.