# Get product events

You can return all product events occurrences for a specific product.

GET /products/:id/

Attributes Type Required Description
id integer yes A unique identifier for the product which is given by User.com automatically.

# 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/products/:id/"

# Response

{
    "count": 3,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 386,
            "client": 431,
            "timestamp": "2018-03-02T16:38:39.413023Z",
            "event_type": "order",
            "custom_data": {}
        },
        {
            "id": 385,
            "client": 431,
            "timestamp": "2018-03-02T16:38:34.682300Z",
            "event_type": "liking",
            "custom_data": {}
        },
        {
            "id": 384,
            "client": 431,
            "timestamp": "2018-03-02T16:38:13.177923Z",
            "event_type": "order",
            "custom_data": {
                "custom client": "json data"
            }
        }
    ]
}