Mixpanel

Learn how to use Mixpanel with Composio

Overview

Enum

MIXPANEL

Description

Mixpanel is an analytics platform that helps companies measure user engagement and retention.

Authentication Details

username
stringRequired
password
stringRequired
region
stringRequired

Actions

Get the names and funnel ids of your funnels. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer

Action Response

data
array
successful
boolean
error

Get unique, total, or average data for a single event and property over days, weeks, or months. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
event
stringRequired
name
stringRequired
values
array
type
stringRequired
unit
stringRequired
interval
integer
from_date
string
to_date
string
format
stringDefaults to json
limit
integerDefaults to 255

Action Response

data
object
legend_size
integer
successful
boolean
error

Get data for an event, segmented and filtered by properties, with values placed into numeric buckets. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
event
stringRequired
from_date
stringRequired
to_date
stringRequired
on
stringRequired
unit
stringDefaults to day
where
string
type
stringDefaults to day

Action Response

data
object
successful
boolean
error

Get event activity feed for specified users from mixpanel query api. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
distinct_ids
arrayRequired
from_date
stringRequired
to_date
stringRequired

Action Response

data
object
successful
boolean
error

Get the top events for today, with their counts and the normalized percent change from yesterday. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
type
stringRequired
limit
integerDefaults to 100

Action Response

data
object
successful
boolean
error

Get aggregate event counts over time. supports different types of aggregation: general, unique, average, sum.

Action Parameters

project_id
integerRequired
workspace_id
integer
from_date
stringRequired
to_date
stringRequired
unit
stringDefaults to day
event
string
events
array
where
string
type
stringDefaults to general
interval
integer

Action Response

data
object
successful
boolean
error

Get cohort analysis data. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
from_date
stringRequired
to_date
stringRequired
retention_type
stringDefaults to birth
born_event
string
event
string
born_where
string
where
string
interval
integerDefaults to 1
interval_count
integerDefaults to 1
unit
stringDefaults to day
unbounded_retention
boolean
on
string
limit
integer

Action Response

data
object
successful
boolean
error

Get the top property names for an event. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
event
stringRequired
limit
integerDefaults to 10

Action Response

data
object
successful
boolean
error

Get data about how frequently users are performing events. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. example response with unit=“day” and addiction unit=“hour”: { 2012-01-01: [305, 107, 60, 41, ...], # users who did event in 1+ hours, 2+ hours, etc. 2012-01-02: [495, 204, 117, 77, ...], 2012-01-03: [671, 324, 176, 122, ...]_}

Action Parameters

project_id
integerRequired
workspace_id
integer
from_date
stringRequired
to_date
stringRequired
unit
stringRequired
addiction_unit
stringRequired
event
string
where
string
on
string
limit
integer

Action Response

data
object
metadata
object
computed_at
string
successful
boolean
error

Get data for a funnel. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
funnel_id
integerRequired
from_date
stringRequired
to_date
stringRequired
length
integer
length_unit
string
interval
integerDefaults to 1
unit
string
on
string
where
string
limit
integerDefaults to 255

Action Response

data
object
successful
boolean
error

Execute a custom jql (javascript query language) query against mixpanel’s query api. key constraints: - 60 queries/hour, max 5 concurrent queries. - 2-minute execution timeout. - 5 gb data processing limit, 2 gb output limit. - no remote network requests (xmlhttprequest) are allowed inside the jql script.

Action Parameters

project_id
integerRequired
workspace_id
integer
script
stringRequired
params
object

Action Response

data
successful
boolean
error

Query user or group profile data from mixpanel. returns list of profiles that match specified parameters. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
distinct_id
string
distinct_ids
array
data_group_id
string
where
string
output_properties
array
session_id
string
page
integer
behaviors
integer
as_of_timestamp
integer
filter_by_cohort
object
include_all_users
booleanDefaults to True

Action Response

data
object
successful
boolean
error

Get the top values for a property. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
event
stringRequired
name
stringRequired
limit
integerDefaults to 255

Action Response

data
array
successful
boolean
error

Get list of all cohorts in a mixpanel project. returns cohort details including name, id, count, description, creation date, and visibility. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer

Action Response

data
object
successful
boolean
error

Get a list of the most common events over the last 31 days. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
type
stringRequired
limit
integerDefaults to 255

Action Response

data
array
successful
boolean
error

Get data from your insights reports. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
bookmark_id
integerRequired

Action Response

data
object
successful
boolean
error

Get data for an event, segmented and filtered by properties. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

Action Parameters

project_id
integerRequired
workspace_id
integer
event
stringRequired
from_date
stringRequired
to_date
stringRequired
on
string
unit
stringDefaults to day
interval
integer
where
string
limit
integerDefaults to 60
type
stringDefaults to general

Action Response

data
object
successful
boolean
error