Requesting Clickstream

Returns a list of latest raw clicks


Information below might be outdated - please visit our recently updated API Reference

The instruction below shows how to request clickstream.

This feature is available starting from Team plan.

  • Click "Create API key".
  • Add a Secret key.

2) Copy an ID of a domain you want to request clickstream.

  • Open domain settings.
  • Copy the domain ID.

3) Install prerequisites for requests.

pip install requests
npm install --save axios

Now everything is ready to run the following snippet. It will return a list of latest clicks.

4) Create a file: .js/ .rb. Use the code snippet below.


Please, replace domainID, exclude parameters with appropriate values.


You can include or exclude such options as countries, browsers, socials, browserVersions, statuses, paths, protos, methods, utmSources, utmMediums, utmCampaigns.

import requests

url = ""

payload = {"limit":30, "include":{"human":True},"exclude":{"browsers":["Chrome"]}}
headers = {
    'accept': "*/*",
    'content-type': "application/json",
    'authorization': "<<apiKey>>"

response = requests.request("POST", url, json=payload, headers=headers)

const axios = require('axios');

const data = {

const options = {
  headers: {
    accept: '*/*',
    'content-type': 'application/json',
    authorization: '<<apiKey>>'
};'', data, options)
.then(function (response) {
.catch(function (response) {
require 'uri'
require 'net/http'
require 'openssl'
require 'json'

url = URI("")

http =, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request =
request["accept"] = '*/*'
request["content-type"] = 'application/json'
request["authorization"] = '<<apiKey>>'
request.body = JSON.generate({"limit":30,"include":{"human":true},"exclude":{"browsers":["Chrome"]}})

response = http.request(request)
puts response.read_body

5) Launch the file.

node filename.js
ruby filename.rb

6) JSON Response.

Once you run the code, you will see the response.

It contains the list from the last 30 clicks. The example of one click.
    host: '',
    path: '/login',
    method: 'GET',
    url: '',
    dt: '2020-05-20T06:19:12.000Z',
    st: 302,
    ip: '',
    proto: 'https',
    ref: '',
    ua: 'Mozilla/5.0 (Linux; Android 10; HD1901) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36',
    human: true,
    browser: 'Chrome Mobile',
    browser_version: '81',
    country: 'India',
    social: '',
    refhost: '',
    os: 'Android',
    utm_source: '',
    utm_medium: 'unknown',
    utm_campaign: '',
    goal_completed: null,
    ab_path: null,
    lcpath: '/login'