curl --request POST \
--url https://api.globalwebindex.com/v2/questions/filter \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"include": {
"categories": true,
"datapoints": true,
"datasets": true
},
"questions": [
{
"code": "<string>",
"namespace_code": "<string>"
}
]
}
'{
"questions": [
{
"accessible": true,
"attribute_count": 123,
"categories": [
{
"attribute_count": 123,
"child_categories": "<array>",
"child_questions": "<array>",
"datasets": [
{
"base_namespace_code": "<string>",
"child_categories": "<array>",
"code": "<string>",
"depth": 123,
"description": "<string>",
"is_syndicated": true,
"name": "<string>",
"order": 123
}
],
"descendant_attributes": [
{
"datapoint_code": "<string>",
"datapoint_name": "<string>",
"namespace_code": "<string>",
"question_code": "<string>",
"question_name": "<string>",
"suffix_code": "<string>",
"suffix_name": "<string>"
}
],
"description": "<string>",
"id": "<string>",
"lineage": "<array>",
"name": "<string>",
"order": 123,
"taxonomy_paths": [
{
"categories_lineage": "<array>",
"dataset": {
"base_namespace_code": "<string>",
"child_categories": "<array>",
"code": "<string>",
"depth": 123,
"description": "<string>",
"is_syndicated": true,
"name": "<string>",
"order": 123
}
}
]
}
],
"code": "<string>",
"datapoints": [
{
"accessible": true,
"code": "<string>",
"midpoint": {
"value": 123
},
"name": "<string>",
"order": {
"value": 123
}
}
],
"datasets": [
{
"base_namespace_code": "<string>",
"child_categories": "<array>",
"code": "<string>",
"depth": 123,
"description": "<string>",
"is_syndicated": true,
"name": "<string>",
"order": 123
}
],
"description": "<string>",
"flags": [
"<string>"
],
"knowledge_base": "<string>",
"message": "<string>",
"name": "<string>",
"namespace_code": "<string>",
"notice": "<string>",
"order": 123,
"suffixes": [
{
"code": "<string>",
"midpoint": {
"value": 123
},
"name": "<string>",
"order": {
"value": 123
}
}
],
"taxonomy_paths": [
{
"categories_lineage": "<array>",
"dataset": {
"base_namespace_code": "<string>",
"child_categories": "<array>",
"code": "<string>",
"depth": 123,
"description": "<string>",
"is_syndicated": true,
"name": "<string>",
"order": 123
}
}
],
"unit": "<string>",
"warning": "<string>"
}
]
}Filter Questions
curl --request POST \
--url https://api.globalwebindex.com/v2/questions/filter \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"include": {
"categories": true,
"datapoints": true,
"datasets": true
},
"questions": [
{
"code": "<string>",
"namespace_code": "<string>"
}
]
}
'{
"questions": [
{
"accessible": true,
"attribute_count": 123,
"categories": [
{
"attribute_count": 123,
"child_categories": "<array>",
"child_questions": "<array>",
"datasets": [
{
"base_namespace_code": "<string>",
"child_categories": "<array>",
"code": "<string>",
"depth": 123,
"description": "<string>",
"is_syndicated": true,
"name": "<string>",
"order": 123
}
],
"descendant_attributes": [
{
"datapoint_code": "<string>",
"datapoint_name": "<string>",
"namespace_code": "<string>",
"question_code": "<string>",
"question_name": "<string>",
"suffix_code": "<string>",
"suffix_name": "<string>"
}
],
"description": "<string>",
"id": "<string>",
"lineage": "<array>",
"name": "<string>",
"order": 123,
"taxonomy_paths": [
{
"categories_lineage": "<array>",
"dataset": {
"base_namespace_code": "<string>",
"child_categories": "<array>",
"code": "<string>",
"depth": 123,
"description": "<string>",
"is_syndicated": true,
"name": "<string>",
"order": 123
}
}
]
}
],
"code": "<string>",
"datapoints": [
{
"accessible": true,
"code": "<string>",
"midpoint": {
"value": 123
},
"name": "<string>",
"order": {
"value": 123
}
}
],
"datasets": [
{
"base_namespace_code": "<string>",
"child_categories": "<array>",
"code": "<string>",
"depth": 123,
"description": "<string>",
"is_syndicated": true,
"name": "<string>",
"order": 123
}
],
"description": "<string>",
"flags": [
"<string>"
],
"knowledge_base": "<string>",
"message": "<string>",
"name": "<string>",
"namespace_code": "<string>",
"notice": "<string>",
"order": 123,
"suffixes": [
{
"code": "<string>",
"midpoint": {
"value": 123
},
"name": "<string>",
"order": {
"value": 123
}
}
],
"taxonomy_paths": [
{
"categories_lineage": "<array>",
"dataset": {
"base_namespace_code": "<string>",
"child_categories": "<array>",
"code": "<string>",
"depth": 123,
"description": "<string>",
"is_syndicated": true,
"name": "<string>",
"order": 123
}
}
],
"unit": "<string>",
"warning": "<string>"
}
]
}Questions details request
details about questions
Questions matching the filtering criteria.
Show child attributes
Is question accessible or not, false = show upsell cube.
Number of attributes in question.
Categories where this question is present. Item is present only in some endpoints.
Show child attributes
Number of attributes in category.
Child Categories, used for include=children.
Children Questions, used for include=children.
Included items below. Datasets of category. Used with include datasets.
Show child attributes
Base namespace of dataset (core, gwi-ext, etc...).
List of child categories of the dataset.
Dataset code (ds-core).
Number of ancestors the base namespace of the dataset has in its lineage.
Full description of dataset.
Flag for whether dataset's base namespace is syndicated.
Human readable dataset name.
Order of the dataset in its parent folder (25.5).
DescendantAttributes are all attributes (question+datapoint+suffix) of this question all the way to the leaf of the tree.
Show child attributes
Datapoint code - 1.
Datapoint Name - "Yellow".
Namespace code - core, gwi-ext.
Question code - q4.
Question name - "What color do you like the most?".
Suffix code - 1.
Suffix Name - "Heavily agree".
Category full description.
Labels ID of category (a.k.a. external_id).
Lineage is route to category through taxonomy tree, starting from the root to the category itself.
Human readable name of a category.
Order of category (5.5).
List of taxonomy paths where this question is present with included dataset if any.
Show child attributes
List of categories from root of the taxonomy to the leaf where the question is.
Show child attributes
Base namespace of dataset (core, gwi-ext, etc...).
List of child categories of the dataset.
Dataset code (ds-core).
Number of ancestors the base namespace of the dataset has in its lineage.
Full description of dataset.
Flag for whether dataset's base namespace is syndicated.
Human readable dataset name.
Order of the dataset in its parent folder (25.5).
Question code without namespace prefix (q4).
Question's datapoints. Item is present only in some endpoints.
Show child attributes
Is datapoint accessible or not, false = upsell cube for free plan users.
Datapoint code (2).
Human readable name of datapoint (5 hours).
Question's datasets. Item is present only in some endpoints.
Show child attributes
Base namespace of dataset (core, gwi-ext, etc...).
List of child categories of the dataset.
Dataset code (ds-core).
Number of ancestors the base namespace of the dataset has in its lineage.
Full description of dataset.
Flag for whether dataset's base namespace is syndicated.
Human readable dataset name.
Order of the dataset in its parent folder (25.5).
Full question description.
Flags of the question (like averages enabled, and so on).
Link to knowledge base (https://help.globalwebindex.com/en).
Message to display to client about this question, where was asked, etc. (Q2 2020 Only. This question is asked to all respondents.).
Question name (Time Spent Online on Mobile).
Namespace code (core, gwi-ext).
Question notice (To work out average daily time spent, please).
Order of question within the category folder if applicable (2.75).
Question's suffixes. Item is present only in some endpoints.
Show child attributes
Suffix code (1).
Human readable name of suffix.
List of taxonomy paths where this question is present with included dataset if any.
Show child attributes
List of categories from root of the taxonomy to the leaf where the question is.
Show child attributes
Base namespace of dataset (core, gwi-ext, etc...).
List of child categories of the dataset.
Dataset code (ds-core).
Number of ancestors the base namespace of the dataset has in its lineage.
Full description of dataset.
Flag for whether dataset's base namespace is syndicated.
Human readable dataset name.
Order of the dataset in its parent folder (25.5).
Question average unit from metadata (hours).
Question warning (Time Spent Online on Mobile).
Was this page helpful?