---
title: "Creating an entity page view event"
slug: "creating-an-entity-page-view-event"
abstract: "Describes how to create an entity page view event for the Sitecore Search Events REST API."
---
# Creating an entity page view event

There are many types of events you can send using the Sitecore Search Events API. You might want to track instances of visitors viewing an entity page. You can do this using an `entity page view` event. If viewing an entity counts as a conversion for your business, you can mark this event as a conversion by setting the `action_sub_type` key to *conversion*.

> [!important]
> In addition to the [default attributes that are required for all events](urn:resource:fork:1075490), the `entities` attribute is required for `entity page view` events. The `entities` array must contain an object representing the entity the user has viewed, with at least the `id` and `entity_type` attributes included.

The following is an example of an `entity page view` event:

> [!note]
> For the event object data model, see the [Events API reference](https://doc.sitecore.com/search/en/developers/events-api/index.html).

```JSON
{
  "name": "entity_page",
  "action": "view",
  "uuid": "<uuid>",
  "client_time_ms": 1234,
  "value": {
    "context":  <context object>,
    "entities": [
      {
        "id": "123",
        "entity_type": "product",
        "attributes": {
           "brand": "ABC"
        }
      }
    ],
   }
}
```