Skip to main content
Skip table of contents

API example - filter responses by dropdown question type

API example on how to filter the form responses by the dropdown question type values

Question type: Dropdown box

Request:

curl --location 'https://app.form.com/gw/v3/results/list?formId=41659267&limit=100&offset=0' \
--header 'Authorization: Bearer d35e16be-3260-4fdf-9a83-77791bfd1c40' \
--header 'Content-Type: application/json' \
--data '{
   "items":[
      {
         "operator":"IN",
         "sourceItemKey":"Q96343988",
         "operand":{
            "selected":[
               "Q96343988.A314752896"
            ]
         }
      }
   ]
}'

Response:

{
    "results": [
        {
            "respondentId": 1395862180,
            "results": [
                {
                    "questionId": 96342785,
                    "questionType": "SINGLE_LINE",
                    "answers": [
                        {
                            "answerId": 314750704,
                            "answerType": "SINGLE_LINE",
                            "value": "Samanta"
                        },
                        {
                            "answerId": 314750705,
                            "answerType": "SINGLE_LINE",
                            "value": "07/04/1975"
                        },
                        {
                            "answerId": 314750706,
                            "answerType": "SINGLE_LINE",
                            "value": "2018"
                        }
                    ]
                },
                {
                    "questionId": 96344945,
                    "questionType": "PICK_ONE_NO_OTHER",
                    "answers": [
                        {
                            "answerId": 314751796,
                            "answerType": "PICK_ONE"
                        }
                    ]
                },
                {
                    "questionId": 96342791,
                    "questionType": "CHECK_ALL_NO_OTHER",
                    "answers": [
                        {
                            "answerId": 314750727,
                            "answerType": "CHECK_ALL"
                        },
                        {
                            "answerId": 314750728,
                            "answerType": "CHECK_ALL"
                        }
                    ]
                },
                {
                    "questionId": 96343988,
                    "questionType": "DROPDOWN",
                    "answers": [
                        {
                            "answerId": 314752896,
                            "answerType": "DROPDOWN",
                            "value": "500 - 1000 $"
                        }
                    ]
                },
                {
                    "questionId": 96342794,
                    "questionType": "LIST_BOX",
                    "answers": [
                        {
                            "answerId": 314750736,
                            "answerType": "LIST_BOX",
                            "value": "Sunday"
                        }
                    ]
                },
                {
                    "questionId": 96344953,
                    "questionType": "RATE_DIFFERENT",
                    "answers": [
                        {
                            "answerId": 314751826,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145122
                        },
                        {
                            "answerId": 314751827,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145122
                        },
                        {
                            "answerId": 314751828,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145122
                        },
                        {
                            "answerId": 314751829,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145124
                        },
                        {
                            "answerId": 314751830,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145124
                        }
                    ]
                },
                {
                    "questionId": 96345911,
                    "questionType": "MATRIX_3D",
                    "answers": [
                        {
                            "answerId": 314750261,
                            "answerType": "DROPDOWN_COLUMN",
                            "columnId": 3145151,
                            "value": "No"
                        },
                        {
                            "answerId": 314750262,
                            "answerType": "DROPDOWN_COLUMN",
                            "columnId": 3145151,
                            "value": "No"
                        },
                        {
                            "answerId": 314750263,
                            "answerType": "DROPDOWN_COLUMN",
                            "columnId": 3145151,
                            "value": "No"
                        },
                        {
                            "answerId": 314750264,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145148
                        },
                        {
                            "answerId": 314750264,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145149
                        },
                        {
                            "answerId": 314750264,
                            "answerType": "SINGLE_LINE_COLUMN",
                            "columnId": 3145150,
                            "value": "forks, spoons, plates"
                        },
                        {
                            "answerId": 314750264,
                            "answerType": "DROPDOWN_COLUMN",
                            "columnId": 3145151,
                            "value": "Yes"
                        },
                        {
                            "answerId": 314750265,
                            "answerType": "DROPDOWN_COLUMN",
                            "columnId": 3145151,
                            "value": "No"
                        }
                    ]
                },
                {
                    "questionId": 96344957,
                    "questionType": "OBJECT_LOOKUP",
                    "answers": [
                        {
                            "answerId": 314751835,
                            "answerType": "SINGLE_LINE",
                            "value": "1326403718"
                        },
                        {
                            "answerId": 314751836,
                            "answerType": "SINGLE_LINE",
                            "value": "Home goods"
                        },
                        {
                            "answerId": 314751837,
                            "answerType": "SINGLE_LINE",
                            "value": "1326403718"
                        },
                        {
                            "answerId": 314751838,
                            "answerType": "SINGLE_LINE",
                            "value": "Home goods"
                        }
                    ]
                }
            ]
        }
    ]
}

Example in postman

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.