Skip to content

List events

GET
/public/event
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.

start
required
Start
string format: date-time

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
required
End
string format: date-time

End of the range, exclusive. Must be after start and at most 90 days later.

type
Type
string
default: page_view
Allowed values: page_view material custom

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.

user_id
Any of:
string

Return only this user’s events. Use your own user ID.

sort
Sort
string
default: asc
Allowed values: asc desc

asc for oldest first or desc for newest first. Keep it the same while paginating.

page_size
Page Size
integer
default: 100

Number of events per page. Defaults to 100, up to 1,000.

search_after
Search After
string
""

Cursor from the search_after field of the previous response. Leave it out for the first page.

A page of events.

Media typeapplication/json
PublicEventsPage
object
events
required
Events

Events of the requested page, ordered by sort.

Array<object>
default:
PublicEvent
object
user_id
required
User Id

Your own id of the user who fired the event.

string
name
required
Name

Event name. Page views are named page_view, material events carry the UserGuiding event name, custom events carry the name you tracked.

string
created
required
Created

UTC timestamp of the event.

string format: date-time
full_url
required
Any of:
string
url_path
required
Any of:
string
url_host
required
Any of:
string
metadata
required
Metadata

Event details. Keys depend on the event type, e.g. referrer for page views or guide_id for guide events.

object
search_after
required
Search After

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.

string
""

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.

Media typeapplication/json

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.

Retry-After
integer

Seconds to wait before sending another request.