# Contentsquare

> Get site, page group and zone metrics, export raw session data, read Voice of Customer survey responses and follow Speed Analysis checks in Contentsquare.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/contentsquare

## Actions

### Create event

Mark an event, such as a release or an incident, on Speed Analysis graphs, to see how it changed page speed.

**Inputs**

- Key (`key`, text, required): A key of your own that names the event, such as `release-2026-11-24`. Delete event takes it.
- Text (`text`, text, required): What happened, as shown on the graphs.
- Date (`date`, date and time, required): When it happened.
- Monitorings (`monitorings`, list): The monitorings to show it on.
- Scenarios (`scenarios`, list): The scenarios to show it on.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "key": "example"
    },
    "success": true
  }
}
```

### Create export job

Export raw session or page view data to files you can download: once for up to 7 days, or every day or hour. The files are kept for 7 days.

**Inputs**

- Name (`name`, text, required): The export's name.
- Rows (`level`, text): Whether each row of the export is a session or a page view. Sessions when empty. One of: `sessions` (One row per session), `views` (One row per page view). Default: `sessions`.
- Fields (`fields`, list, required): The columns to export.
- Custom variables (`custom_variables`, list): Custom variables to export as well.
- Format (`format`, text): The files' format. CSV when empty. One of: `CSV`, `JSONL` (JSON Lines). Default: `CSV`.
- Frequency (`frequency`, text): Export once, or every day or hour. A daily export takes the day before and runs at 4:00 UTC. Once when empty. One of: `once`, `daily` (Every day), `hourly` (Every hour). Default: `once`.
- From (`date_from`, date and time): For a one-time export: the start of the data to export.
- To (`date_to`, date and time): For a one-time export: the end of the data to export, at most 7 days after its start.
- Device (`device`, text): Only visits on this kind of device. One of: `all` (All devices), `desktop`, `mobile`, `tablet`. Default: `all`.
- Segment (`segment_id`, number): Only visitors in this segment. Leave empty for every visitor.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "jobId": 1
    },
    "success": true
  }
}
```

### Delete event

Delete an event from Speed Analysis graphs.

**Inputs**

- Event (`key`, text, required): The event's key.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "key": "example"
    },
    "success": true
  }
}
```

### Get export job run

Get a run of an export job, with the links to download its files. The links work until each file's expiration date.

**Inputs**

- Export job (`job_id`, number, required): The export job.
- Run (`run_id`, number, required): The run of the export job.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "completionRate": 1,
      "endDate": "example",
      "files": [
        {
          "expirationDate": "example",
          "fileSize": 1,
          "partId": 1,
          "url": "example"
        }
      ],
      "jobRunId": 1,
      "startDate": "example",
      "state": "example"
    },
    "success": true
  }
}
```

### Get monitoring reports

Get the history of a monitoring's checks, with their averages over the period.

**Inputs**

- Monitoring (`monitoring_id`, number, required): The monitoring: one page Speed Analysis checks on a schedule.
- How many (`limit`, number): How many reports to return. Speed Analysis gives 30 when this is empty; 0 gives every report. At least 0.
- Last days (`last_days`, number): Only reports from this many past days. At least 1.
- From (`date_from`, date and time): Only reports from checks run after this time.
- To (`date_to`, date and time): Only reports from checks run before this time.
- Checks (`outcome`, text): Every check, or only the failed or the successful ones. One of: `all`, `errors` (Only failed checks), `successes` (Only successful checks). Default: `all`.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "monitoringData": [
        {
          "customTimings": [
            {
              "duration": 1,
              "name": "example",
              "startTime": 1,
              "type": "example"
            }
          ],
          "date": 1,
          "errorMessage": "example",
          "id": 1,
          "loadTime": 1,
          "requests": 1,
          "score": 1,
          "scores": {
            "accessibility": 1,
            "bestPractices": 1,
            "performance": 1,
            "seo": 1
          },
          "state": "example",
          "timings": {
            "cumulativeLayoutShift": 1,
            "domComplete": 1,
            "domContentLoadedEventEnd": 1,
            "domContentLoadedEventStart": 1,
            "domInteractive": 1,
            "domLoading": 1,
            "firstByte": 1,
            "firstConsistentlyInteractive": 1,
            "firstContentfulPaint": 1,
            "firstPaint": 1,
            "largestContentfulPaint": 1,
            "lastByte": 1,
            "lastLongTask": 1,
            "loadEvent": 1,
            "loadEventStart": 1,
            "maxPotentialFirstInputDelay": 1,
            "navigationStart": 1,
            "nbLongTasks": 1,
            "speedIndex": 1,
            "startRender": 1,
            "totalBlockingTime": 1,
            "totalLongTasks": 1,
            "visuallyComplete": 1
          },
          "unreachableRequests": 1,
          "weight": 1
        }
      ],
      "statistics": {
        "averageCustomTimings": [
          {
            "duration": 1,
            "name": "example",
            "startTime": 1,
            "type": "example"
          }
        ],
        "averageLoadTime": 1,
        "averageRequests": 1,
        "averageScore": 1,
        "averageScores": {
          "accessibility": 1,
          "bestPractices": 1,
          "performance": 1,
          "seo": 1
        },
        "averageTimings": {
          "cumulativeLayoutShift": 1,
          "domComplete": 1,
          "domContentLoadedEventEnd": 1,
          "domContentLoadedEventStart": 1,
          "domInteractive": 1,
          "domLoading": 1,
          "firstByte": 1,
          "firstConsistentlyInteractive": 1,
          "firstContentfulPaint": 1,
          "firstPaint": 1,
          "largestContentfulPaint": 1,
          "lastByte": 1,
          "lastLongTask": 1,
          "loadEvent": 1,
          "loadEventStart": 1,
          "maxPotentialFirstInputDelay": 1,
          "navigationStart": 1,
          "nbLongTasks": 1,
          "speedIndex": 1,
          "startRender": 1,
          "totalBlockingTime": 1,
          "totalLongTasks": 1,
          "visuallyComplete": 1
        },
        "averageWeight": 1
      }
    },
    "success": true
  }
}
```

### Get monitoring's last report

Get the report of a monitoring's latest check: its scores, load time, timings, advice and any alert it raised.

**Inputs**

- Monitoring (`monitoring_id`, number, required): The monitoring: one page Speed Analysis checks on a schedule.
- Metrics only (`metrics_only`, true/false): Give only the summary and timings, without advice and categories.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "alerts": [
        {
          "threshold": 1,
          "type": "example",
          "value": 1
        }
      ],
      "lastExecution": 1,
      "missing": [
        "example"
      ],
      "report": {
        "categories": [
          {
            "mark": 1,
            "name": "example"
          }
        ],
        "config": {},
        "customTimings": [
          {
            "duration": 1,
            "name": "example",
            "startTime": 1,
            "type": "example"
          }
        ],
        "date": 1,
        "harFileUrl": "example",
        "lang": "example",
        "publicReportUrl": "example",
        "resourceByType": [
          {
            "bodyWeight": 1,
            "headerWeight": 1,
            "requestCount": 1,
            "type": "example"
          }
        ],
        "scores": {
          "accessibility": 1,
          "bestPractices": 1,
          "performance": 1,
          "seo": 1
        },
        "summary": {
          "loadTime": 1,
          "requestsCount": 1,
          "score": 1,
          "weight": 1
        },
        "timings": {
          "cumulativeLayoutShift": 1,
          "domComplete": 1,
          "domContentLoadedEventEnd": 1,
          "domContentLoadedEventStart": 1,
          "domInteractive": 1,
          "domLoading": 1,
          "firstByte": 1,
          "firstConsistentlyInteractive": 1,
          "firstContentfulPaint": 1,
          "firstPaint": 1,
          "largestContentfulPaint": 1,
          "lastByte": 1,
          "lastLongTask": 1,
          "loadEvent": 1,
          "loadEventStart": 1,
          "maxPotentialFirstInputDelay": 1,
          "navigationStart": 1,
          "nbLongTasks": 1,
          "speedIndex": 1,
          "startRender": 1,
          "totalBlockingTime": 1,
          "totalLongTasks": 1,
          "visuallyComplete": 1
        },
        "tips": [
          {
            "advice": "example",
            "category": "example",
            "name": "example",
            "priority": 1,
            "score": 1,
            "value": 1
          }
        ],
        "url": "example"
      }
    },
    "success": true
  }
}
```

### Get page group metrics

Get a page group's views, bounce and exit rates, scroll rate, load time and other metrics over a period.

**Inputs**

- Page group (`page_group_id`, number, required): The page group.
- Metric (`metric`, text): The metric to get, or All for every one. One of: `all`, `views` (Page views), `visits`, `unique-visits` (Unique visits), `views-visits` (Views per visit), `landing-rate` (Landing rate), `bounce-rate` (Bounce rate), `exit-rate` (Exit rate), `conversion-rate` (Conversion rate), `elapsed-time` (Time spent), and 6 more. Default: `all`.
- From (`start_date`, date and time, required): The start of the period to measure.
- To (`end_date`, date and time, required): The end of the period to measure, at most 92 days after its start.
- Device (`device`, text): Only visits on this kind of device. One of: `all` (All devices), `desktop`, `mobile`, `tablet`. Default: `all`.
- Segments (`segment_ids`, list): Only visitors in these segments. With several, only visitors in all of them. Leave empty for every visitor.
- Goal (`goal_id`, number): The goal conversions are counted for. Needed for conversion metrics unless the project is an e-commerce one, which counts purchases.
- Split by day (`daily`, true/false): Give one value for each day of the period instead of one for the whole period. The period must be longer than a day.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "values": [
        {
          "currency": "example",
          "device": "example",
          "endDate": "example",
          "name": "example",
          "startDate": "example",
          "value": 1
        }
      ]
    },
    "success": true
  }
}
```

### Get page group web vitals

Get a page group's Core Web Vitals and other page speed timings from real visits: largest contentful paint, interaction to next paint, layout shift, first contentful paint and time to first byte. Needs Speed Analysis RUM.

**Inputs**

- Page group (`page_group_id`, number, required): The page group.
- From (`start_date`, date and time, required): The start of the period to measure.
- To (`end_date`, date and time, required): The end of the period to measure, at most 92 days after its start.
- Device (`device`, text): Only visits on this kind of device. One of: `all` (All devices), `desktop`, `mobile`, `tablet`. Default: `all`.
- Segments (`segment_ids`, list): Only visitors in these segments. With several, only visitors in all of them. Leave empty for every visitor.
- Statistic (`metric_type`, text): A percentile of the visits' values, or their average. One of: `Quantile` (Percentile), `Average`. Default: `Quantile`.
- Percentile (`quantile`, number): Which percentile, as a fraction: 0.75 for the 75th, which is what Contentsquare gives when this is empty. From 0 to 1.
- Split by day (`daily`, true/false): Give one value for each day of the period instead of one for the whole period. The period must be longer than a day.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "values": [
        {
          "endDate": "example",
          "metricType": "example",
          "name": "example",
          "quantile": 1,
          "startDate": "example",
          "value": 1
        }
      ]
    },
    "success": true
  }
}
```

### Get scenario reports

Get the history of a scenario's runs, with each step's load time, weight and failures.

**Inputs**

- Scenario (`scenario_id`, number, required): The scenario: a user journey Speed Analysis runs step by step.
- How many (`limit`, number): How many reports to return. Speed Analysis gives 30 when this is empty; 0 gives every report. At least 0.
- Last days (`last_days`, number): Only reports from this many past days. At least 1.
- From (`date_from`, date and time): Only reports from checks run after this time.
- To (`date_to`, date and time): Only reports from checks run before this time.
- Checks (`outcome`, text): Every check, or only the failed or the successful ones. One of: `all`, `errors` (Only failed checks), `successes` (Only successful checks). Default: `all`.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "scenario": {
        "id": 1,
        "name": "example",
        "reports": [
          {
            "date": 1,
            "resultId": 1,
            "steps": [
              {
                "browserError": 1,
                "customTimings": [
                  {
                    "duration": 1,
                    "name": "example",
                    "startTime": 1,
                    "type": "example"
                  }
                ],
                "description": "example",
                "fail": 1,
                "loadTime": 1,
                "name": "example",
                "requestsCount": 1,
                "stepId": 1,
                "stepResultId": "example",
                "timings": {
                  "cumulativeLayoutShift": 1,
                  "domComplete": 1,
                  "domContentLoadedEventEnd": 1,
                  "domContentLoadedEventStart": 1,
                  "domInteractive": 1,
                  "domLoading": 1,
                  "firstByte": 1,
                  "firstConsistentlyInteractive": 1,
                  "firstContentfulPaint": 1,
                  "firstPaint": 1,
                  "largestContentfulPaint": 1,
                  "lastByte": 1,
                  "lastLongTask": 1,
                  "loadEvent": 1,
                  "loadEventStart": 1,
                  "maxPotentialFirstInputDelay": 1,
                  "navigationStart": 1,
                  "nbLongTasks": 1,
                  "speedIndex": 1,
                  "startRender": 1,
                  "totalBlockingTime": 1,
                  "totalLongTasks": 1,
                  "visuallyComplete": 1
                },
                "unavailableResource": 1,
                "weight": 1
              }
            ],
            "summary": {
              "average": {
                "loadTime": 1,
                "request": 1,
                "weight": 1
              },
              "browserError": 1,
              "fail": 1,
              "sum": {
                "loadTime": 1,
                "request": 1,
                "weight": 1
              },
              "unavailableResource": 1
            },
            "viewOnTheWeb": "example"
          }
        ]
      }
    },
    "success": true
  }
}
```

### Get site metrics

Get the whole site's visits, bounce rate, conversions, revenue and other metrics over a period.

**Inputs**

- Metric (`metric`, text): The metric to get, or All for every one. One of: `all`, `visits`, `bounce-rate` (Bounce rate), `pageview-average` (Page views per visit), `session-time-average` (Average session time), `conversions`, `conversion-rate` (Conversion rate), `revenue`, `cart-average` (Average cart). Default: `all`.
- From (`start_date`, date and time, required): The start of the period to measure.
- To (`end_date`, date and time, required): The end of the period to measure, at most 92 days after its start.
- Device (`device`, text): Only visits on this kind of device. One of: `all` (All devices), `desktop`, `mobile`, `tablet`. Default: `all`.
- Segments (`segment_ids`, list): Only visitors in these segments. With several, only visitors in all of them. Leave empty for every visitor.
- Goal (`goal_id`, number): The goal conversions are counted for. Needed for conversion metrics unless the project is an e-commerce one, which counts purchases.
- Split by day (`daily`, true/false): Give one value for each day of the period instead of one for the whole period. The period must be longer than a day.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "values": [
        {
          "currency": "example",
          "device": "example",
          "endDate": "example",
          "name": "example",
          "startDate": "example",
          "value": 1
        }
      ]
    },
    "success": true
  }
}
```

### Get survey

Get a Voice of Customer survey with its questions.

**Inputs**

- Survey (`survey_id`, text, required): The survey.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "created_time": "example",
    "id": "example",
    "is_enabled": true,
    "language": "example",
    "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",
    "url": "example"
  }
}
```

### Get zone metrics

Get a zone's click rate, hover rate, hesitation, revenue and other metrics over a period. Tap and swipe metrics are for app zones.

**Inputs**

- Page group (`page_group_id`, number): The page group the zoning is on. Only narrows the Zoning list.
- Zoning (`zoning_id`, number): The zoning the zone is in. Only narrows the Zone list.
- Zone (`zone_id`, number, required): The zone, an area of the page such as a button or a banner.
- Metric (`metric`, text): The metric to get, or All for every one. One of: `all`, `click-rate` (Click rate), `number-of-clicks` (Number of clicks), `click-recurrence` (Click recurrence), `time-before-first-click` (Time before first click), `hover-rate` (Hover rate), `hover-time` (Hover time), `hesitation` (Hesitation time), `attractiveness-rate` (Attractiveness rate), `engagement-rate` (Engagement rate), and 13 more. Default: `all`.
- From (`start_date`, date and time, required): The start of the period to measure.
- To (`end_date`, date and time, required): The end of the period to measure, at most 92 days after its start.
- Device (`device`, text): Only visits on this kind of device. One of: `all` (All devices), `desktop`, `mobile`, `tablet`. Default: `all`.
- Segments (`segment_ids`, list): Only visitors in these segments. With several, only visitors in all of them. Leave empty for every visitor.
- Goal (`goal_id`, number): The goal conversions are counted for. Needed for conversion metrics unless the project is an e-commerce one, which counts purchases.
- Split by day (`daily`, true/false): Give one value for each day of the period instead of one for the whole period. The period must be longer than a day.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "values": [
        {
          "currency": "example",
          "device": "example",
          "endDate": "example",
          "name": "example",
          "startDate": "example",
          "value": 1
        }
      ]
    },
    "success": true
  }
}
```

### List export job runs

List the runs of an export job, with their state and progress.

**Inputs**

- Export job (`job_id`, number, required): The export job.
- State (`state`, text): Only runs in this state. One of: `SUCCESS` (Succeeded), `FAILURE` (Failed), `RUNNING`, `RUNNABLE` (Ready to start), `CREATED`.
- Page size (`limit`, number): How many to return, up to 100. Contentsquare gives 25 when this is empty. From 1 to 100.
- Page (`page`, number): The page of results to read, for going past the first page. At least 0.
- Order (`order`, text): Newest or oldest jobs first. One of: `DESC` (Newest first), `ASC` (Oldest first).

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": [
      {
        "completionRate": 1,
        "endDate": "example",
        "jobRunId": 1,
        "startDate": "example",
        "state": "example"
      }
    ],
    "success": true
  }
}
```

### List export jobs

List the project's export jobs, with their state and when they run next.

**Inputs**

- State (`state`, text): Only jobs in this state. One of: `ACTIVE`, `COMPUTING` (Running), `COMPLETED`, `SUSPENDED`, `DELETED`.
- Frequency (`frequency`, text): Only jobs that run this often. One of: `once`, `daily` (Every day), `hourly` (Every hour).
- Rows (`level`, text): Only jobs that export sessions, or page views. One of: `sessions` (One row per session), `views` (One row per page view).
- Format (`format`, text): Only jobs that write this format. One of: `CSV`, `JSONL` (JSON Lines).
- Page size (`limit`, number): How many to return, up to 100. Contentsquare gives 25 when this is empty. From 1 to 100.
- Page (`page`, number): The page of results to read, for going past the first page. At least 0.
- Order (`order`, text): Newest or oldest jobs first. One of: `DESC` (Newest first), `ASC` (Oldest first).

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": [
      {
        "accountId": 1,
        "createdAt": "example",
        "fields": [
          {
            "aliasName": "example",
            "fieldName": "example"
          }
        ],
        "filters": {},
        "format": "example",
        "frequency": "example",
        "jobId": 1,
        "lastRunTime": "example",
        "lastUpdatorId": 1,
        "name": "example",
        "nextFrom": "example",
        "nextRunTime": "example",
        "nextTo": "example",
        "ownerId": 1,
        "projectIds": [
          1
        ],
        "scope": "example",
        "state": "example",
        "updatedAt": "example"
      }
    ],
    "success": true
  }
}
```

### List finished export runs

List every export run that finished, across the project's jobs, with how many files it made.

**Inputs**

- Page size (`limit`, number): How many to return, up to 100. Contentsquare gives 25 when this is empty. From 1 to 100.
- Page (`page`, number): The page of results to read, for going past the first page. At least 0.
- Order (`order`, text): Newest or oldest jobs first. One of: `DESC` (Newest first), `ASC` (Oldest first).

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": [
      {
        "completionTime": "example",
        "format": "example",
        "frequency": "example",
        "from": "example",
        "jobId": 1,
        "jobRunId": 1,
        "name": "example",
        "nbOfFiles": 1,
        "projectIds": [
          1
        ],
        "scope": "example",
        "to": "example"
      }
    ],
    "success": true
  }
}
```

### List goals

List the project's goals: the page views and clicks counted as conversions.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": [
      {
        "createdAt": "example",
        "id": 1,
        "name": "example",
        "type": "example",
        "updatedAt": "example"
      }
    ],
    "success": true
  }
}
```

### List mappings

List the project's mappings: the ways its pages are sorted into page groups.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": [
      {
        "createdAt": "example",
        "description": "example",
        "id": 1,
        "name": "example",
        "updatedAt": "example"
      }
    ],
    "success": true
  }
}
```

### List monitorings

List the pages Speed Analysis checks on a schedule, with whether the last check went well.

**Inputs**

- Name contains (`name`, text): Only monitorings whose name contains this.
- Address contains (`url`, text): Only monitorings whose page address contains this.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "monitorings": [
        {
          "config": {},
          "enabled": true,
          "errorMessage": "example",
          "frequency": 1,
          "id": 1,
          "lang": "example",
          "lastExecution": 1,
          "name": "example",
          "state": "example",
          "url": "example"
        }
      ]
    },
    "success": true
  }
}
```

### List page groups

List a mapping's page groups, such as Product pages or Checkout.

**Inputs**

- Mapping (`mapping_id`, number, required): The mapping.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": [
      {
        "category": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "success": true
  }
}
```

### List scenarios

List the user journeys Speed Analysis runs step by step, such as a checkout.

**Inputs**

- Name contains (`name`, text): Only scenarios whose name contains this.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": {
      "scenarios": [
        {
          "id": 1,
          "name": "example"
        }
      ]
    },
    "success": true
  }
}
```

### List segments

List the project's segments: groups of visitors, such as new visitors or visitors from one country.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": [
      {
        "createdAt": "example",
        "id": 1,
        "name": "example",
        "source": "example",
        "updatedAt": "example"
      }
    ],
    "success": true
  }
}
```

### List survey responses

List a survey's responses: each answer with its comment, tags and sentiment, and the visitor's device, country and page.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Page size (`limit`, number): How many to return, up to 100. Contentsquare gives 20 when this is empty. From 1 to 100.
- Cursor (`cursor`, text): The next_cursor from the previous page, for reading the next one. Leave empty for the first page.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "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",
        "id": "example",
        "is_complete": true,
        "os": "example",
        "recording_url": "example",
        "response_origin_url": "example",
        "updated_time": "example",
        "user_attributes": [
          {
            "name": "example",
            "value": "example"
          }
        ],
        "visitor_id": "example",
        "window_size": {
          "height": 1,
          "width": 1
        }
      }
    ]
  }
}
```

### List surveys

List the project's Voice of Customer surveys.

**Inputs**

- Page size (`limit`, number): How many to return, up to 100. Contentsquare gives 20 when this is empty. From 1 to 100.
- Cursor (`cursor`, text): The next_cursor from the previous page, for reading the next one. Leave empty for the first page.
- With questions (`with_questions`, true/false): Include each survey's questions.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "next_cursor": "example",
    "results": [
      {
        "created_time": "example",
        "id": "example",
        "is_enabled": true,
        "language": "example",
        "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",
        "url": "example"
      }
    ]
  }
}
```

### List zones

List a zoning's zones: the areas of a page, such as buttons and banners, that zone metrics are measured for.

**Inputs**

- Page group (`page_group_id`, number): The page group the zoning is on. Only narrows the Zoning list.
- Zoning (`zoning_id`, number, required): The zoning.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "success": true
  }
}
```

### List zonings

List a page group's zonings: the ways its pages are split into zones.

**Inputs**

- Page group (`page_group_id`, number, required): The page group.

**Outputs**

- `data` (object): The response from Contentsquare.

**Example output**

```json
{
  "data": {
    "payload": [
      {
        "createdAt": "example",
        "id": 1,
        "lastUpdatedAt": "example",
        "name": "example"
      }
    ],
    "success": true
  }
}
```
