1. Supplier API
  • Supplier API
    • Guides
    • Get Global Definitions
      GET
    • Question Library
      GET
    • Answer Library
      GET
    • Get Available Surveys
      GET
    • Get Survey By Id
      GET
    • Get Survey Transactions Data
      GET
    • Get Survey Stats
      GET
    • Get Recontacts
      GET
  1. Supplier API

Answer Library

GET
https://supplier.opnion.io/api/v1/QuestionLibrary/AllQuestionOptions/{Question Key}
This API allows you to obtain a comprehensive list of answer options for a specific question, based on the provided question key, country, and language parameters.
NOTE: The parameter names for country and language are case-sensitive.
Example URL:https://example.com/api/v1/QuestionLibrary/AllQuestionOptions/STANDARD_RELATIONSHIP?country=IN&language=ENGLISH

Request

Path Params

Query Params

Header Params

Responses

🟢200OK
application/json
Body

Example
{
    "apiStatus": "success",
    "msg": "Answers are successfully fetched",
    "result": [
        {
            "questionKey": "STANDARD_RELATIONSHIP",
            "questionId": 2816,
            "questionText": "What is your relationship status?",
            "questionType": "Single Punch",
            "questionCategory": [
                "Home"
            ],
            "questionOptions": [
                {
                    "OptionText": "Single, never married",
                    "id": 1,
                    "Order": 1
                },
                {
                    "OptionText": "Married",
                    "id": 2,
                    "Order": 2
                },
                {
                    "OptionText": "Separated, divorced or widowed",
                    "id": 3,
                    "Order": 3
                },
                {
                    "OptionText": "Domestic partnership/living with someone",
                    "id": 4,
                    "Order": 4
                },
                {
                    "OptionText": "Prefer not to answer",
                    "id": 5,
                    "Order": 5
                },
                {
                    "OptionText": "Engaged",
                    "id": 6,
                    "Order": 6
                }
            ]
        }
    ]
}
Modified at 2025-03-03 11:21:36
Previous
Question Library
Next
Get Available Surveys
Built with