Contentsquare
App · 25 actions
Get site, page group and zone metrics, export raw session data, read Voice of Customer survey responses and follow Speed Analysis checks in Contentsquare.
Actions
| Action | What it does |
|---|---|
| Create event | Mark an event, such as a release or an incident, on Speed Analysis graphs, to see how it changed page speed. |
| 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. |
| Delete event | Delete an event from Speed Analysis graphs. |
| Get export job run | Get a run of an export job, with the links to download its files. |
| Get monitoring reports | Get the history of a monitoring's checks, with their averages over the period. |
| 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. |
| Get page group metrics | Get a page group's views, bounce and exit rates, scroll rate, load time and other metrics over a period. |
| 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. |
| Get scenario reports | Get the history of a scenario's runs, with each step's load time, weight and failures. |
| Get site metrics | Get the whole site's visits, bounce rate, conversions, revenue and other metrics over a period. |
| Get survey | Get a Voice of Customer survey with its questions. |
| Get zone metrics | Get a zone's click rate, hover rate, hesitation, revenue and other metrics over a period. |
| List export job runs | List the runs of an export job, with their state and progress. |
| List export jobs | List the project's export jobs, with their state and when they run next. |
| List finished export runs | List every export run that finished, across the project's jobs, with how many files it made. |
| List goals | List the project's goals: the page views and clicks counted as conversions. |
| List mappings | List the project's mappings: the ways its pages are sorted into page groups. |
| List monitorings | List the pages Speed Analysis checks on a schedule, with whether the last check went well. |
| List page groups | List a mapping's page groups, such as Product pages or Checkout. |
| List scenarios | List the user journeys Speed Analysis runs step by step, such as a checkout. |
| List segments | List the project's segments: groups of visitors, such as new visitors or visitors from one country. |
| List survey responses | List a survey's responses: each answer with its comment, tags and sentiment, and the visitor's device, country and page. |
| List surveys | List the project's Voice of Customer surveys. |
| List zones | List a zoning's zones: the areas of a page, such as buttons and banners, that zone metrics are measured for. |
| List zonings | List a page group's zonings: the ways its pages are split into zones. |
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
keytextRequired - A key of your own that names the event, such as `release-2026-11-24`. Delete event takes it.
- Text
texttextRequired - What happened, as shown on the graphs.
- Date
datedate and timeRequired - When it happened.
- Monitorings
monitoringslist - The monitorings to show it on.
- Scenarios
scenarioslist - The scenarios to show it on.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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
nametextRequired - The export's name.
- Rows
leveltext - 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
fieldslistRequired - The columns to export.
- Custom variables
custom_variableslist - Custom variables to export as well.
- Format
formattext - The files' format. CSV when empty.One of:
CSV,JSONL(JSON Lines). Default:CSV. - Frequency
frequencytext - 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_fromdate and time - For a one-time export: the start of the data to export.
- To
date_todate and time - For a one-time export: the end of the data to export, at most 7 days after its start.
- Device
devicetext - Only visits on this kind of device.One of:
all(All devices),desktop,mobile,tablet. Default:all. - Segment
segment_idnumber - Only visitors in this segment. Leave empty for every visitor.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"data": {
"payload": {
"jobId": 1
},
"success": true
}
}Delete event
Delete an event from Speed Analysis graphs.
Inputs
- Event
keytextRequired - The event's key.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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_idnumberRequired - The export job.
- Run
run_idnumberRequired - The run of the export job.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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_idnumberRequired - The monitoring: one page Speed Analysis checks on a schedule.
- How many
limitnumber - How many reports to return. Speed Analysis gives 30 when this is empty; 0 gives every report.At least 0.
- Last days
last_daysnumber - Only reports from this many past days.At least 1.
- From
date_fromdate and time - Only reports from checks run after this time.
- To
date_todate and time - Only reports from checks run before this time.
- Checks
outcometext - Every check, or only the failed or the successful ones.One of:
all,errors(Only failed checks),successes(Only successful checks). Default:all.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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_idnumberRequired - The monitoring: one page Speed Analysis checks on a schedule.
- Metrics only
metrics_onlytrue/false - Give only the summary and timings, without advice and categories.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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_idnumberRequired - The page group.
- Metric
metrictext - 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_datedate and timeRequired - The start of the period to measure.
- To
end_datedate and timeRequired - The end of the period to measure, at most 92 days after its start.
- Device
devicetext - Only visits on this kind of device.One of:
all(All devices),desktop,mobile,tablet. Default:all. - Segments
segment_idslist - Only visitors in these segments. With several, only visitors in all of them. Leave empty for every visitor.
- Goal
goal_idnumber - The goal conversions are counted for. Needed for conversion metrics unless the project is an e-commerce one, which counts purchases.
- Split by day
dailytrue/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
dataobject- The response from Contentsquare.
Example output
{
"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_idnumberRequired - The page group.
- From
start_datedate and timeRequired - The start of the period to measure.
- To
end_datedate and timeRequired - The end of the period to measure, at most 92 days after its start.
- Device
devicetext - Only visits on this kind of device.One of:
all(All devices),desktop,mobile,tablet. Default:all. - Segments
segment_idslist - Only visitors in these segments. With several, only visitors in all of them. Leave empty for every visitor.
- Statistic
metric_typetext - A percentile of the visits' values, or their average.One of:
Quantile(Percentile),Average. Default:Quantile. - Percentile
quantilenumber - 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
dailytrue/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
dataobject- The response from Contentsquare.
Example output
{
"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_idnumberRequired - The scenario: a user journey Speed Analysis runs step by step.
- How many
limitnumber - How many reports to return. Speed Analysis gives 30 when this is empty; 0 gives every report.At least 0.
- Last days
last_daysnumber - Only reports from this many past days.At least 1.
- From
date_fromdate and time - Only reports from checks run after this time.
- To
date_todate and time - Only reports from checks run before this time.
- Checks
outcometext - Every check, or only the failed or the successful ones.One of:
all,errors(Only failed checks),successes(Only successful checks). Default:all.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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
metrictext - 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_datedate and timeRequired - The start of the period to measure.
- To
end_datedate and timeRequired - The end of the period to measure, at most 92 days after its start.
- Device
devicetext - Only visits on this kind of device.One of:
all(All devices),desktop,mobile,tablet. Default:all. - Segments
segment_idslist - Only visitors in these segments. With several, only visitors in all of them. Leave empty for every visitor.
- Goal
goal_idnumber - The goal conversions are counted for. Needed for conversion metrics unless the project is an e-commerce one, which counts purchases.
- Split by day
dailytrue/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
dataobject- The response from Contentsquare.
Example output
{
"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_idtextRequired - The survey.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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_idnumber - The page group the zoning is on. Only narrows the Zoning list.
- Zoning
zoning_idnumber - The zoning the zone is in. Only narrows the Zone list.
- Zone
zone_idnumberRequired - The zone, an area of the page such as a button or a banner.
- Metric
metrictext - 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_datedate and timeRequired - The start of the period to measure.
- To
end_datedate and timeRequired - The end of the period to measure, at most 92 days after its start.
- Device
devicetext - Only visits on this kind of device.One of:
all(All devices),desktop,mobile,tablet. Default:all. - Segments
segment_idslist - Only visitors in these segments. With several, only visitors in all of them. Leave empty for every visitor.
- Goal
goal_idnumber - The goal conversions are counted for. Needed for conversion metrics unless the project is an e-commerce one, which counts purchases.
- Split by day
dailytrue/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
dataobject- The response from Contentsquare.
Example output
{
"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_idnumberRequired - The export job.
- State
statetext - Only runs in this state.One of:
SUCCESS(Succeeded),FAILURE(Failed),RUNNING,RUNNABLE(Ready to start),CREATED. - Page size
limitnumber - How many to return, up to 100. Contentsquare gives 25 when this is empty.From 1 to 100.
- Page
pagenumber - The page of results to read, for going past the first page.At least 0.
- Order
ordertext - Newest or oldest jobs first.One of:
DESC(Newest first),ASC(Oldest first).
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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
statetext - Only jobs in this state.One of:
ACTIVE,COMPUTING(Running),COMPLETED,SUSPENDED,DELETED. - Frequency
frequencytext - Only jobs that run this often.One of:
once,daily(Every day),hourly(Every hour). - Rows
leveltext - Only jobs that export sessions, or page views.One of:
sessions(One row per session),views(One row per page view). - Format
formattext - Only jobs that write this format.One of:
CSV,JSONL(JSON Lines). - Page size
limitnumber - How many to return, up to 100. Contentsquare gives 25 when this is empty.From 1 to 100.
- Page
pagenumber - The page of results to read, for going past the first page.At least 0.
- Order
ordertext - Newest or oldest jobs first.One of:
DESC(Newest first),ASC(Oldest first).
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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
limitnumber - How many to return, up to 100. Contentsquare gives 25 when this is empty.From 1 to 100.
- Page
pagenumber - The page of results to read, for going past the first page.At least 0.
- Order
ordertext - Newest or oldest jobs first.One of:
DESC(Newest first),ASC(Oldest first).
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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
dataobject- The response from Contentsquare.
Example output
{
"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
dataobject- The response from Contentsquare.
Example output
{
"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
nametext - Only monitorings whose name contains this.
- Address contains
urltext - Only monitorings whose page address contains this.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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_idnumberRequired - The mapping.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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
nametext - Only scenarios whose name contains this.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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
dataobject- The response from Contentsquare.
Example output
{
"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_idtextRequired - The survey.
- Page size
limitnumber - How many to return, up to 100. Contentsquare gives 20 when this is empty.From 1 to 100.
- Cursor
cursortext - The next_cursor from the previous page, for reading the next one. Leave empty for the first page.
Outputs
dataobject- The response from Contentsquare.
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",
"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
limitnumber - How many to return, up to 100. Contentsquare gives 20 when this is empty.From 1 to 100.
- Cursor
cursortext - The next_cursor from the previous page, for reading the next one. Leave empty for the first page.
- With questions
with_questionstrue/false - Include each survey's questions.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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_idnumber - The page group the zoning is on. Only narrows the Zoning list.
- Zoning
zoning_idnumberRequired - The zoning.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"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_idnumberRequired - The page group.
Outputs
dataobject- The response from Contentsquare.
Example output
{
"data": {
"payload": [
{
"createdAt": "example",
"id": 1,
"lastUpdatedAt": "example",
"name": "example"
}
],
"success": true
}
}