Field keys

Get the custom fields attached to a specific custom event - all of their possible keys and the top 100 most used values for each. For example, for a site: searched event you can discover all the field keys like search-text and see the top values for each.

POST
https://api.seline.com/api/v1/event-data
Click anywhere to copy

Parameters

event
stringRequired
Custom event name to analyze. The exact name as it appears in your events list.
period
stringRequired if no range is provided
Predefined time period today, 1h, 24h, 7d, 30d, 6m, 12m, all_time, month_to_date, week_to_date, year_to_date. Either period or range is required.
range
objectRequired if no period is provided
Custom date range object with from and to ISO 8601 datetime strings, e.g. 2025-09-10T00:00:00Z, both required.

Example - { from: "2025-09-10T00:00:00Z", to: "2025-09-11T00:00:00Z" }
Example request
curl -X POST 'https://api.seline.com/api/v1/event-data' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"event": "site: searched",
"range": {
"from": "2025-06-10T00:00:00Z",
"to": "2025-09-10T00:00:00Z"
}
}'
Click anywhere to copy
Response
{
"data": [
{
"field": "search-text",
"params": [
{ "value": "analytics", "count": 188 },
{ "value": "pricing", "count": 76 }
],
"hasMore": false
},
{
"field": "results-count",
"params": [
{ "value": "12", "count": 96 },
{ "value": "0", "count": 14 }
],
"hasMore": false
}
]
}
Click anywhere to copy