curl --request POST \
--url http://api.globalwebindex.com/v1/charts/{id}/calculate \
--header 'Authorization: <api-key>'
{
"meta": "<any>",
"stats": [
{
"attributes": [
{
"compatibilities_metadata": {
"has_compatibilities": true,
"has_incompatibilities": true
},
"datapoint_code": "<string>",
"datapoint_label": "<string>",
"generated_text": "<string>",
"namespace_code": "<string>",
"order": 123,
"question_code": "<string>",
"question_description": "<string>",
"question_label": "<string>",
"suffix_code": "<string>",
"suffix_label": "<string>",
"taxonomy_paths": [
{
"dataset": {
"base_namespace_code": "<string>",
"categories": [
{
"attributes_count": "<any>",
"category_children": "<any>",
"description": "<any>",
"id": "<any>",
"name": "<any>",
"order": "<any>",
"question_children": "<any>",
"taxonomy_paths": "<any>"
}
],
"code": "<string>",
"depth": 123,
"description": "<string>",
"name": "<string>",
"order": 123
},
"taxonomy_path": [
{
"attributes_count": 123,
"category_children": [
{
"attributes_count": "<any>",
"category_children": "<any>",
"description": "<any>",
"id": "<any>",
"name": "<any>",
"order": "<any>",
"question_children": "<any>",
"taxonomy_paths": "<any>"
}
],
"description": "<string>",
"height": 123,
"id": "<string>",
"name": "<string>",
"order": 123,
"question_children": [
{
"accessible": "<any>",
"attributes": "<any>",
"average_unit": "<any>",
"flags": "<any>",
"has_suffixes": "<any>",
"knowledge_base": "<any>",
"message": "<any>",
"namespace_code": "<any>",
"notice": "<any>",
"order": "<any>",
"question_code": "<any>",
"question_description": "<any>",
"question_label": "<any>",
"taxonomy_paths": "<any>",
"warning": "<any>"
}
],
"taxonomy_paths": [
{}
]
}
]
}
]
}
],
"code": 123,
"data": [
{
"audience": "<string>",
"metrics": {
"audience_index": 123,
"audience_percentage": 123,
"audience_sample": 123,
"audience_size": 123,
"datapoint_percentage": 123,
"datapoint_sample": 123,
"datapoint_size": 123,
"positive_sample": 123,
"positive_size": 123
},
"segment": "<string>",
"waves": [
"<string>"
]
}
],
"error": "<string>",
"error_type": "<string>",
"group_id": 123,
"meta": "<any>"
}
]
}
Get calculated metrics with the help of extenral calculations service (v2).
curl --request POST \
--url http://api.globalwebindex.com/v1/charts/{id}/calculate \
--header 'Authorization: <api-key>'
{
"meta": "<any>",
"stats": [
{
"attributes": [
{
"compatibilities_metadata": {
"has_compatibilities": true,
"has_incompatibilities": true
},
"datapoint_code": "<string>",
"datapoint_label": "<string>",
"generated_text": "<string>",
"namespace_code": "<string>",
"order": 123,
"question_code": "<string>",
"question_description": "<string>",
"question_label": "<string>",
"suffix_code": "<string>",
"suffix_label": "<string>",
"taxonomy_paths": [
{
"dataset": {
"base_namespace_code": "<string>",
"categories": [
{
"attributes_count": "<any>",
"category_children": "<any>",
"description": "<any>",
"id": "<any>",
"name": "<any>",
"order": "<any>",
"question_children": "<any>",
"taxonomy_paths": "<any>"
}
],
"code": "<string>",
"depth": 123,
"description": "<string>",
"name": "<string>",
"order": 123
},
"taxonomy_path": [
{
"attributes_count": 123,
"category_children": [
{
"attributes_count": "<any>",
"category_children": "<any>",
"description": "<any>",
"id": "<any>",
"name": "<any>",
"order": "<any>",
"question_children": "<any>",
"taxonomy_paths": "<any>"
}
],
"description": "<string>",
"height": 123,
"id": "<string>",
"name": "<string>",
"order": 123,
"question_children": [
{
"accessible": "<any>",
"attributes": "<any>",
"average_unit": "<any>",
"flags": "<any>",
"has_suffixes": "<any>",
"knowledge_base": "<any>",
"message": "<any>",
"namespace_code": "<any>",
"notice": "<any>",
"order": "<any>",
"question_code": "<any>",
"question_description": "<any>",
"question_label": "<any>",
"taxonomy_paths": "<any>",
"warning": "<any>"
}
],
"taxonomy_paths": [
{}
]
}
]
}
]
}
],
"code": 123,
"data": [
{
"audience": "<string>",
"metrics": {
"audience_index": 123,
"audience_percentage": 123,
"audience_sample": 123,
"audience_size": 123,
"datapoint_percentage": 123,
"datapoint_sample": 123,
"datapoint_size": 123,
"positive_sample": 123,
"positive_size": 123
},
"segment": "<string>",
"waves": [
"<string>"
]
}
],
"error": "<string>",
"error_type": "<string>",
"group_id": 123,
"meta": "<any>"
}
]
}
JWT token for authentication
Chart id.
OK
The response is of type object
.
Was this page helpful?