curl --request GET \
--url https://api.statista.ai/v1/research-ai/answer \
--header 'x-api-key: <api-key>'
{
"researchToken": "<string>",
"state": {
"status": "requested"
},
"response": {
"answer": "<string>",
"keyFacts": [
{
"title": "<string>",
"type": "<string>",
"unit": "<string>",
"value": "<string>"
}
],
"sources": [
{
"contentId": "<string>",
"contentType": "<string>",
"displayTypeId": 123,
"graphicName": "<string>",
"isCharged": true,
"locale": "german",
"parentId": "<string>",
"releasedAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"statisticType": 123,
"surveyPeriod": "<string>",
"text": "<string>",
"title": "<string>",
"titleShort": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"url": "<string>"
}
]
}
}
curl --request GET \
--url https://api.statista.ai/v1/research-ai/answer \
--header 'x-api-key: <api-key>'
{
"researchToken": "<string>",
"state": {
"status": "requested"
},
"response": {
"answer": "<string>",
"keyFacts": [
{
"title": "<string>",
"type": "<string>",
"unit": "<string>",
"value": "<string>"
}
],
"sources": [
{
"contentId": "<string>",
"contentType": "<string>",
"displayTypeId": 123,
"graphicName": "<string>",
"isCharged": true,
"locale": "german",
"parentId": "<string>",
"releasedAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"statisticType": 123,
"surveyPeriod": "<string>",
"text": "<string>",
"title": "<string>",
"titleShort": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"url": "<string>"
}
]
}
}
The research token to identify the question.
This token is returned by the ask
endpoint.
The request has succeeded.
Was this page helpful?