Hotjar

App · 5 actions

Read your Hotjar surveys and their responses, and handle people's requests to see or delete their data.

Actions

ActionWhat it does
Delete user dataFind and permanently delete the data Hotjar holds about a person, for a data deletion request.
Get surveyGet one Hotjar survey with its questions.
List survey responsesList a Hotjar survey's responses, newest first, with the next page's cursor.
List surveysList the surveys on your Hotjar site, with the next page's cursor.
Request user data reportFind the data Hotjar holds about a person, for a data access request.

Delete user data

Find and permanently delete the data Hotjar holds about a person, for a data deletion request. Nobody is emailed, and the deletion can't be undone.

Inputs

Emailemailtext
The email address of the person whose data to find.
User ID on your sitesite_user_idtext
The person's own user ID on your website, if your site sends it to Hotjar through Hotjar's Identify API.

Outputs

dataobject
The response from Hotjar.
Example output
{
  "data": {
    "accepted": true
  }
}

Get survey

Get one Hotjar survey with its questions.

Inputs

Surveysurvey_idtextRequired
The Hotjar survey. Its ID starts with survey_.

Outputs

dataobject
The response from Hotjar.
Example output
{
  "data": {
    "created_time": "example",
    "id": "example",
    "is_enabled": true,
    "name": "example",
    "questions": [
      {
        "choices": [
          {
            "allow_comment": true,
            "text": "example"
          }
        ],
        "id": "example",
        "image_url": "example",
        "is_required": true,
        "labels": {
          "high_label": "example",
          "low_label": "example"
        },
        "text": "example",
        "type": "example"
      }
    ],
    "responses_url": "example",
    "sentiment_analysis_enabled": true,
    "type": "example",
    "updated_time": "example",
    "url": "example"
  }
}

List survey responses

List a Hotjar survey's responses, newest first, with the next page's cursor.

Inputs

Surveysurvey_idtextRequired
The Hotjar survey. Its ID starts with survey_.
Limitlimitnumber
How many responses to return, up to 100.From 1 to 100.
Next page cursorcursortext
To read the next page, the next_cursor value a previous list step returned. Leave empty for the first page.

Outputs

dataobject
The response from Hotjar.
Example output
{
  "data": {
    "next_cursor": "example",
    "results": [
      {
        "answers": [
          {
            "answer": "example",
            "comment": "example",
            "question_id": "example",
            "sentiment": "example",
            "tags": [
              {
                "name": "example"
              }
            ]
          }
        ],
        "browser": "example",
        "country": "example",
        "created_time": "example",
        "device": "example",
        "hotjar_user_id": "example",
        "id": "example",
        "is_complete": true,
        "os": "example",
        "recording_url": "example",
        "response_origin_url": "example",
        "user_attributes": [
          {
            "name": "example",
            "value": "example"
          }
        ],
        "window_size": {
          "height": 1,
          "width": 1
        }
      }
    ]
  }
}

List surveys

List the surveys on your Hotjar site, with the next page's cursor.

Inputs

Limitlimitnumber
How many surveys to return, up to 100.From 1 to 100.
Next page cursorcursortext
To read the next page, the next_cursor value a previous list step returned. Leave empty for the first page.
Include questionswith_questionstrue/false
Also return each survey's questions. Off by default.

Outputs

dataobject
The response from Hotjar.
Example output
{
  "data": {
    "next_cursor": "example",
    "results": [
      {
        "created_time": "example",
        "id": "example",
        "is_enabled": true,
        "name": "example",
        "questions": [
          {
            "choices": [
              {
                "allow_comment": true,
                "text": "example"
              }
            ],
            "id": "example",
            "image_url": "example",
            "is_required": true,
            "labels": {
              "high_label": "example",
              "low_label": "example"
            },
            "text": "example",
            "type": "example"
          }
        ],
        "responses_url": "example",
        "sentiment_analysis_enabled": true,
        "type": "example",
        "updated_time": "example",
        "url": "example"
      }
    ]
  }
}

Request user data report

Find the data Hotjar holds about a person, for a data access request. Hotjar emails a link to the report to the person's email address and to the report recipient set on Hotjar's User Lookup page. Nothing is deleted.

Inputs

Emailemailtext
The email address of the person whose data to find.
User ID on your sitesite_user_idtext
The person's own user ID on your website, if your site sends it to Hotjar through Hotjar's Identify API.

Outputs

dataobject
The response from Hotjar.
Example output
{
  "data": {
    "accepted": true
  }
}

On this page