Skip to main content
GET
/
v1
/
analytics
/
blocks
Get block click analytics
curl --request GET \
  --url https://api.oneofnone.io/v1/analytics/blocks \
  --header 'x-api-key: <api-key>'
{
  "meta": {
    "total_clicks": 123,
    "total_dialog_closes": 123,
    "avg_dialog_duration": 123
  },
  "timeseries": [
    {
      "date": "<string>",
      "total_clicks": 123,
      "unique_users": 123,
      "total_dialog_closes": 123,
      "avg_dialog_duration": 123
    }
  ],
  "top_blocks": [
    {
      "block_id": "<string>",
      "block_type": "<string>",
      "dialog_content_type": "<string>",
      "total_clicks": 123,
      "unique_users": 123,
      "block": {}
    }
  ],
  "avg_block_index": [
    {
      "block_type": "<string>",
      "avg_block_index": 123,
      "total_clicks": 123
    }
  ]
}

Authorizations

x-api-key
string
header
required

Query Parameters

team_id
string
team_slug
string
team_ids
team_slugs
collection_id
string
collection_slug
string
collection_ids
date_from
string
date_to
string
limit
integer
Required range: 1 <= x <= 1000
offset
integer | null
country_code
string
region_code
string
device
enum<string>
Available options:
mobile,
tablet,
desktop,
all
browser
string
os
string
aggregation
enum<string>
Available options:
daily,
weekly,
monthly,
quarterly,
yearly
order
enum<string>
Available options:
asc,
desc
order_by
string
token_id
string
block_id
string
block_type
string
dialog_content_type
string
min_block_index
integer | null
max_block_index
integer | null

Response

200 - application/json

Successful response

meta
object
required
timeseries
object[]
required
top_blocks
object[]
required
avg_block_index
object[]
required