This is a wrapper for Hotjar APIs to let you login and download survey data and metadata for your account.
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
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
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
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,
)