curl --request POST \
--url http://api.globalwebindex.com/v2/saved/crosstabs \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bases": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"columns": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"country_codes": [
"<string>"
],
"name": "<string>",
"rows": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"wave_codes": [
"<string>"
],
"copied_from": "<string>",
"folder_id": "<string>",
"metadata": {
"json": [
123
],
"valid": true
},
"notes": "<string>",
"shared": [
{
"email": "<string>",
"error": {
"code": 123,
"err": "<unknown>",
"message": "<string>",
"meta": {},
"type": "unknown"
},
"org_id": 123,
"user_id": 123
}
],
"sharing_note": "<string>"
}
'{
"bases": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"columns": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"country_codes": [
"<string>"
],
"name": "<string>",
"rows": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"wave_codes": [
"<string>"
],
"copied_from": "<string>",
"folder_id": "<string>",
"metadata": {
"json": [
123
],
"valid": true
},
"notes": "<string>",
"shared": [
{
"email": "<string>",
"error": {
"code": 123,
"err": "<unknown>",
"message": "<string>",
"meta": {},
"type": "unknown"
},
"org_id": 123,
"user_id": 123
}
],
"sharing_note": "<string>"
}Create a crosstab
curl --request POST \
--url http://api.globalwebindex.com/v2/saved/crosstabs \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bases": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"columns": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"country_codes": [
"<string>"
],
"name": "<string>",
"rows": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"wave_codes": [
"<string>"
],
"copied_from": "<string>",
"folder_id": "<string>",
"metadata": {
"json": [
123
],
"valid": true
},
"notes": "<string>",
"shared": [
{
"email": "<string>",
"error": {
"code": 123,
"err": "<unknown>",
"message": "<string>",
"meta": {},
"type": "unknown"
},
"org_id": 123,
"user_id": 123
}
],
"sharing_note": "<string>"
}
'{
"bases": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"columns": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"country_codes": [
"<string>"
],
"name": "<string>",
"rows": [
{
"avg": {
"datapoint": "<string>",
"question": "<string>"
},
"dbu": {
"datapoint": "<string>",
"question": "<string>"
},
"expression": {
"and": "<array>",
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": "<array>",
"question": "<string>",
"suffixes": [
123
]
},
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"subtitle": "<string>"
}
],
"wave_codes": [
"<string>"
],
"copied_from": "<string>",
"folder_id": "<string>",
"metadata": {
"json": [
123
],
"valid": true
},
"notes": "<string>",
"shared": [
{
"email": "<string>",
"error": {
"code": 123,
"err": "<unknown>",
"message": "<string>",
"meta": {},
"type": "unknown"
},
"org_id": 123,
"user_id": 123
}
],
"sharing_note": "<string>"
}Project to create
bases (audiences) for this project
Show child attributes
Saved columns in the project.
Show child attributes
List of saved country codes.
Name of project.
Saved rows in the project.
Show child attributes
List of wave codes.
UUID of project this was copied from, may be empty.
FolderID of this project.
free-text field which user can enter notes in the UI
Project is shared with these users/orgs.
Show child attributes
Show child attributes
HTTP status code to be returned.
Error description (error.Error()).
Message to the user.
Optional application specific data
Error type - invalid_arguments for example.
unknown Note attached to the sharing email and in listing of projects, may be empty. This is different note to the project note.
OK
bases (audiences) for this project
Show child attributes
Saved columns in the project.
Show child attributes
List of saved country codes.
Name of project.
Saved rows in the project.
Show child attributes
List of wave codes.
UUID of project this was copied from, may be empty.
FolderID of this project.
free-text field which user can enter notes in the UI
Project is shared with these users/orgs.
Show child attributes
Show child attributes
HTTP status code to be returned.
Error description (error.Error()).
Message to the user.
Optional application specific data
Error type - invalid_arguments for example.
unknown Note attached to the sharing email and in listing of projects, may be empty. This is different note to the project note.
Was this page helpful?