"Steps to Retrieve Filtered Survey Responses via API
Generate Your API Key
1.Log in to your QuestionPro account.
2. Go to Profile → API (or Integrations → API, depending on your account view).
3. Copy your API key — this will be required to authenticate all your API calls.
4. Identify the Survey ID
5 . Navigate to the survey whose responses you want to retrieve.
6. The Survey ID can be found in the survey’s URL or within the API section of your account.
Set Up the API Request
1. Use the following endpoint format to retrieve responses:
2.https://api.questionpro.com/a/api/v2/surveys/{surveyID}/responses
3. Replace {surveyID} with your actual survey ID.
Add Filter Parameters
1 .You can refine your data retrieval by adding optional parameters such as:
2.fromDate — to specify the start date for responses (format: YYYY-MM-DD).
3.toDate — to specify the end date for responses.
4.pageSize — to define how many responses to retrieve per request.
5.pageNumber — to select which page of results to view.
6.responseStatus — to filter by completed, partial, or terminated responses.
7.lastModified — to fetch only recently updated responses.
Example API call:
https://api.questionpro.com/a/api/v2/surveys/123456/responses?fromDate=2025-09-01&toDate=2025-09-30&pageSize=100&pageNumber=1&responseStatus=Completed
Authenticate the Request
In your API tool (like Postman, cURL, or your own integration script), add your API key in the request header:
Authorization: bearer YOUR_API_KEY
Execute the API Call
Run the request.
The system will return the filtered survey responses in JSON format.
Process and Store the Data
Parse the returned data in your system or integration platform.
Save, analyze, or sync the filtered responses according to your business needs."