# Get product events

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

GET /products-by-id/:custom_id/

Attributes Type Required Description
custom_id integer yes A unique identifier for the product provided by the client.

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X GET -H
"Authorization: Token <your_64_char_api_key>"
"https://<your_app_subdomain>.user.com/api/public/products-by-id/:custom_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"
            }
        }
    ]
}