Use the
/records endpoint to get an answer ID. To see the value,
cross reference the answer ID with the
extraData field in the question concept.
Note: This workflow applies to columns.
Response values appear as answer IDs in a record.
- The values are GUIDs for Community surveys.
- The values are integers for Community power surveys.
To vew the answer values:
1. Get the records in the dataset
URL structure
https://api.{region}.alida.com/v1/applications/{communityApiKeyName}/datasets/{datasetId}/records
Tip: Increase the response limit to avoid multiples pages in
the response.
Note:
Use the appropriate regional endpoint to ensure that you comply with your organization's privacy policy, and applicable laws and regulations. For details about the available regional endpoints, and how to identify your organization's region, see Shared responsibility.
2. Select an answer value in the response
Copy the answer ID in the
value field for the given column (question).
Response structure
...
{
"id": <GUID for record>,
"dataTimestamp": <date and time UTC>,
"values": [
{
"columnId": <GUID for column>,
"value": <answer ID>
}
]
},
...
3. Get the concepts in the dataset
URL structure
https://api.{region}.alida.com/v1/applications/{communityApiKeyName}/datasets/{datasetId}/concepts
Tip: Increase the response limit to avoid multiples pages in
the response.
4. Search for the answer ID in the concepts response
The answer value is contained in the
text field.
Response structure
...
{
"id": <answer ID>,
"state": <Alive|Deleted>,
"answerType": <RegularAnswer|TextAnswer>,
"text": <answer value>
}
...