Skip to main content
GET/users/:id/events/:event_id/

Get user events by event id

You can return all user’s specific events using event id.

AttributesTypeRequiredDescription
idintegernoA unique identifier for the user which is given by User.com automatically.
event_idintegernoA unique identifier for the event which is given by User.com automatically.
LookupDescriptionExample usage
count_fromA date from when stats should be counted?count_from=2021-05-16
count_toA date utill stats should be counted?count_from=2022-05-16

Request​

curl -X GET -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2"
"https://<your_app_subdomain>.user.com/api/public/users/:id/events/:event_id/"

Response​

{
"count": 6,
"next": null,
"previous": null,
"results": [
{
"id": 600714,
"client": 3577959,
"timestamp": "2016-11-22T12:53:41.020361Z",
"items": [],
"event": "MyNewEvent",
"event_id": 550
},
{
"id": 573847,
"client": 3577959,
"timestamp": "2016-11-18T11:34:27.088702Z",
"items": [],
"event": "MyNewEvent",
"event_id": 550
},
...
]
}