Analytics

Namespace for all routes that are used broadly across vturb, this ultimately delivers the data to the front-end for our clients.

Returns the active platforms for a company

post

Returns a list with the company active platforms.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

timezonestringOptional

The timezone to use for the date filtering

Other propertiesanyOptional
Responses
200

Successful operation

application/json
Responsestring[]Example: ["kiwify","clickfunnels"]
post
/conversions/active_platforms

Returns the totals of conversions for each day in a company and player

post

Returns a list with the company conversions grouped by day in a given period.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

timezonestringOptional

The timezone to use for the date filtering

Other propertiesanyOptional
Responses
200

Successful operation

application/json
post
/conversions/stats_by_day

Returns the conversions grouped by timed for a company and player

post

Returns a list with the company conversions grouped by timed in a given period.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

timezonestringOptional

The timezone to use for the date filtering

Other propertiesanyOptional
Responses
200

Successful operation

application/json
post
/conversions/video_timed

Returns the number of times the events happened as well as the count considering unique device and sessions

post

Returns a list with the companies and events with the number of times the event happened in a given period.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
eventsstring[]Required

Names of the events to filter by. Can be ['started', 'finished', 'viewed']

player_idstringOptional

The ID of the player to filter the results by.

start_datestring · dateOptional

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateOptional

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

Other propertiesanyOptional
Responses
200

Successful operation

application/json
post
/events/total_by_company

Returns the totals of the events for each player in a company

post

Returns a list with the companies grouped by its players and the number of times each event happened for each one in a given period.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
eventsstring[]Required

Names of the events to filter by. Can be ['started', 'finished', 'viewed']

start_datestring · dateOptional

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateOptional

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

Responses
200

Successful operation

application/json
post
/events/total_by_company_players

Returns the totals of the events for each day in a company

post

Returns a list with the companies grouped by day and the number of times each event happened for each day in a given period.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

eventsstring[]Required

Names of the events to filter by. Can be ['started', 'finished', 'viewed']

start_datestring · dateOptional

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateOptional

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

timezonestringOptional

The timezone to use for the date filtering

Responses
200

Successful operation

application/json
post
/events/total_by_company_day

Returns player leaderboards based on video engagement metrics

post

Provides leaderboard rankings of players based on their video engagement metrics (views, plays, pauses, etc...) within specified time periods. Multiple leaderboards with different player limits can be requested in a single call.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
company_idstringRequired

The ID of the company to search for

timezonestringOptional

The timezone to use for date calculations (defaults to 'Etc/UCT' if not provided)

Other propertiesanyOptional
Responses
200

Successful operation

application/json
post
/events/leaderboard

Returns the total of users that reached a certain second of the video entire duration

post

Returns an object containing the overall engagement of the users in a given period for the specified player.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

video_durationintegerRequired

The total duration of the video in seconds

start_datestring · dateOptional

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

end_datestring · dateOptional

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

timezonestringOptional

The timezone to use for the date filtering

Responses
200

Successful operation

application/json
post
/times/user_engagement

Returns an array with the engagement rate per day

post

Returns an array containing the overall engagement of the users in a given period for the specified player per day.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

video_durationintegerRequired

The total duration of the video in seconds

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

timezonestringOptional

The timezone to use for the date filtering

Responses
200

Successful operation

application/json
post
/times/user_engagement_by_day

Returns an array with the engagement grouped by a field

post

Returns an array containing the overall engagement of the users in a given period for the specified player per day.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

fieldstringRequired

The field to group the engagement by, possible values are 'country', 'browser', 'device_type', 'utm_campain', 'utm_source', 'utm_medium', 'utm_content', 'utm_term' If 'no_attribution' is passed, all values that have been set to null or that are empty strings will be returned.

valuesstring[]Required

The values to filter the field by, for example ['Brazil', 'Romenia'] or ['Chrome', 'Firefox']

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

timezonestringOptional

The timezone to use for the date filtering

Responses
200

Successful operation

application/json
post
/times/user_engagement_by_field

Returns an array with the engagement grouped by a field

post

Returns an array containing the overall engagement of the users in a given period for the specified player per day.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

query_keystringRequired

The query param key to group the engagement by, possible values example: 'utm_campain', 'utm_source', 'utm_medium', 'utm_content', 'utm_term'

valuesstring[]Required

The values to filter the query key parameter by, for example ['Facebook', 'Google', 'Campaign 1', 'Campaign 2']

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

timezonestringOptional

The timezone to use for the date filtering

Other propertiesanyOptional
Responses
200

Successful operation

application/json
post
/times/user_engagement_by_traffic_origin

Returns the total of user clicks at a time in seconds related to the video

post

Returns an object containing the all the clicks grouped by the time in seconds it happened related to the video.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

timezonestringOptional

The timezone to use for the date filtering

Other propertiesanyOptional
Responses
200

Successful operation

application/json
post
/clicks/total_by_company_timed

Returns the totals of clicks for each day in a company and player

post

Returns a list with the company clicks grouped by day in a given period.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

timezonestringOptional

The timezone to use for the date filtering

Other propertiesanyOptional
Responses
200

Successful operation

application/json
post
/clicks/total_by_company_day

Statistics used by the headlines dashboard

post

Returns several statistics used by the headlines dashboard. Engagement, views and play rate are among these metrics

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
start_datestring · dateRequired

Start date of the period for event querying.

player_idstringRequired

The player being analysed.

video_durationintegerRequired

The duration of the video

pitch_timeintegerOptional

The time in seconds that the video must be watched to be considered a pitch

Responses
200

Successful operation

application/json
post
/headlines/stats_by_player

Returns statistics of all sessions of a player

post

Returns statistics of sessions for a player given a date range

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

video_durationintegerOptional

The total duration of the video in seconds, if not provided we will use the duration of the video based on our database

timezonestringOptional

The timezone to use for the date filtering

pitch_timeintegerOptional

The time in seconds that the video must be watched to be considered a pitch, if not provided we will use the pitch time of the video based on our database

Responses
200

Successful operation

application/json
post
/sessions/stats

Returns statistics of all sessions of a player by day

post

Returns statistics of sessions for a player given a date range by day

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

video_durationintegerOptional

The total duration of the video in seconds, if not provided we will use the duration of the video based on our database

timezonestringOptional

The timezone to use for the date filtering

pitch_timeintegerOptional

The time in seconds that the video must be watched to be considered a pitch, if not provided we will use the pitch time of the video based on our database

Responses
200

Successful operation

application/json
post
/sessions/stats_by_day

Returns statistics grouped by a specified field

post

Returns statistics for sessions grouped by a specified field for a given company and player within a date range.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

fieldstringRequired

The field to group the statistics by

video_durationintegerRequired

The total duration of the video in seconds

timezonestringOptional

The timezone to use for the date filtering

pitch_timeintegerOptional

The time in seconds that the video must be watched to be considered a pitch

Responses
200

Successful operation

application/json
post
/sessions/stats_by_field

Returns statistics grouped by a specified field broke by day

post

Returns statistics for sessions grouped by a specified field for a given company and player within a date range and broke by day.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

fieldstringRequired

The field to group the statistics by

video_durationintegerRequired

The total duration of the video in seconds

timezonestringOptional

The timezone to use for the date filtering

pitch_timeintegerOptional

The time in seconds that the video must be watched to be considered a pitch

Responses
200

Successful operation

application/json
post
/sessions/stats_by_field_by_day

Returns the number of live users for a player

get

Returns the number of live users for a player

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

Query parameters
player_idstring · uuidRequired

The ID of the player to search for

Example: 65fb3c74ab21c70007b3e0dd
minutesintegerOptional

The number of minutes to search for live users, defaults to 60 minutes

Example: 60
Responses
200

Successful operation

application/json
get
/sessions/live_users

Returns statistics grouped by a specified field

post

Returns statistics for traffic origin grouped by a specified query key for a given company and player within a date range.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

query_keystringRequired

The query key to group the statistics by

video_durationintegerRequired

The total duration of the video in seconds

timezonestringOptional

The timezone to use for the date filtering

pitch_timeintegerOptional

The time in seconds that the video must be watched to be considered a pitch

Other propertiesanyOptional
Responses
200

Successful operation

application/json
post
/traffic_origin/stats

Returns statistics grouped by a specified field and day

post

Returns statistics for traffic origin grouped by a specified query key for a given company and player within a date range and grouped by day.

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The ID of the player to search for

start_datestring · dateRequired

Start date of the period for event querying. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

end_datestring · dateRequired

End date of the period for event querying. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC" or "2023-10-26"

query_keysstring[]Optional

The query keys to group the statistics by

video_durationintegerRequired

The total duration of the video in seconds

timezonestringOptional

The timezone to use for the date filtering

pitch_timeintegerOptional

The time in seconds that the video must be watched to be considered a pitch

Other propertiesanyOptional
Responses
200

Successful operation

application/json
post
/traffic_origin/stats_by_day

Counts the utms of the given player

post

Counts the utms of the given player. The values are src, sck, utm_source, utm_medium, utm_campaign, utm_term, utm_content, among any other valid query parameter

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
start_datestring · dateRequired

Start date of the period for event querying.

end_datestring · dateOptional

Start date of the period for event querying.

player_idstringRequired

The player being analysed.

Responses
200

Successful operation

application/json
post
/traffic_origin/valid_utms

Statistics used by the turbo dashboard

post

Returns several statistics used by the turbo dashboard. Speed, engagement, views, pitch and clicks are among these metrics

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
start_datestring · dateRequired

Start date of the period for event querying.

player_idstringRequired

The player being analysed.

video_durationintegerRequired

The duration of the video

pitch_timeintegerRequired

The time in seconds that the video must be watched to be considered a pitch

Responses
200

Successful operation

application/json
post
/turbo/stats_by_player

List all players

get

Returns a list of all players belonging to the authenticated user's company

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

Query parameters
start_datestring · dateOptional

Start date of the period for player filtering. This will be used as >=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

Example: 2023-10-26 00:00:00
end_datestring · dateOptional

End date of the period for player filtering. This will be used as <=. Format examples "2023-10-26T18:24:05.000+00:00" or "2023-10-26 18:24:05 UTC"

Example: 2023-11-26 00:00:00
timezonestringOptional

The timezone to use for the date filtering

Example: America/Sao_Paulo
Responses
200

Successful operation

application/json
get
/players/list

List all custom metrics of a player

post

Returns a list of all custom metrics of a player and the calculated engagement rate for them

Authorizations
X-Api-TokenstringRequired

Access the application and copy your api token, then, just set the header X-Api-Token with it.

X-Api-VersionstringRequired

The API version to use. Currently supported versions are:

  • v1: The current stable version
Body
player_idstringRequired

The player being analysed.

start_datestring · date-timeOptional

Start date of the period for event querying.

end_datestring · date-timeOptional

End date of the period for event querying.

timezonestringOptional

The timezone to use for the date filtering, if not provided UTC will be used

Responses
200

Successful operation

application/json
post
/custom_metrics/list

Last updated