#Surveys

This part of the API allows you to retrieve all the polls related to the Survey widget, and the associated answers given by users.

#Retrieve all surveys

  • Route: /questions
  • Method: GET
Provides all active surveys on your app.
Parameters
page
Type: Number
Default: 1
Current page
size
Type: Number
Default: 10
Results per page

#Retrieve survey's answerss

  • Route: /questions/:id/answers
  • Method: GET
Lets you get all the answers to a specific survey provided by readers on our Paywall.
Parameters
id
Type: String
Required
Survey ID
from
Type: Date
Default: startOfWeek(new Date())
Starting date of search
to
Type: Date
Default: endOfWeek(new Date())
Ending date of search
page
Type: Number
Default: 1
Current page
size
Type: Number
Default: 10
Results per page