# Get user events by event id
You can return all user’s specific events using event id.
GET
/users/:id/events/:event_id/
Attributes | Type | Required | Description |
---|---|---|---|
id | integer | no | A unique identifier for the user which is given by User.com automatically. |
event_id | integer | no | A unique identifier for the event which is given by User.com automatically. |
Lookup | Description | Example usage |
---|---|---|
count_from | A date from when stats should be counted | ?count_from=2021-05-16 |
count_to | A date utill stats should be counted | ?count_from=2022-05-16 |
# Request
- CURL
- JavaScript
- PHP
- Python
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
},
...
]
}