Skip to content

navikt/hotjar-data-wrapper

Repository files navigation

Hotjar Data Wrapper

Code style: black

This is a wrapper for Hotjar APIs to let you login and download survey data and metadata for your account.

Supported APIs and docs

Get survey metadata

Login and download metadata for a specific survey.

import hotjar_data_wrapper.hotjar_api as hot

meta = hot.get_survey_metadata(survey_id=survey_id, site_id=site_id, username=username, password=password)
meta.status_code # 200
meta.content # prints content

Get survey questions

Login and download questions for a specific survey.

questions = hot.get_survey_questions(survey_id=survey_id, site_id=site_id, username=username, password=password)
questions.content 

List all surveys

Login and download list of all surveys for a given site ID.

all_surveys = hot.get_list_all_surveys(site_id=site_id, username=username, password=password)
all_surveys.content

Get all survey metadata

Login and download metadata for a list of surveys with survey IDs.

hot.get_all_surveys_metadata(
    path="data/hotjar surveys",
    surveys_list=ids,
    site_id=site_id,
    username=username,
    password=password,
)

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published