curl --request GET \
--url https://api.globalwebindex.com/v2/saved/audiences \
--header 'Authorization: <api-key>'{
"meta": null,
"data": [
{
"id": "8f568af7-a225-40fd-992f-839d8f0ed499",
"name": "Male with credit card and short-term load",
"expression": {
"and": [
{
"question": "q2",
"datapoints": [
"q2_1"
]
},
{
"question": "gwi-ext.q1014a",
"datapoints": [
"q1014a",
"q1014b"
],
"suffixes": [
"1"
]
}
]
},
"flags": [
"authored",
"curated",
"isP2"
],
"folder_id": "b140035b-3adc-43bf-a39d-8e8005c8af2a",
"position": 128.1,
"permissions": {
"audience_overall": "accessible"
},
"datasets": [
"ds-core",
"ds-96c906f1"
]
}
]
}Retrieve all audiences for the current user that you have access to in your account.
curl --request GET \
--url https://api.globalwebindex.com/v2/saved/audiences \
--header 'Authorization: <api-key>'{
"meta": null,
"data": [
{
"id": "8f568af7-a225-40fd-992f-839d8f0ed499",
"name": "Male with credit card and short-term load",
"expression": {
"and": [
{
"question": "q2",
"datapoints": [
"q2_1"
]
},
{
"question": "gwi-ext.q1014a",
"datapoints": [
"q1014a",
"q1014b"
],
"suffixes": [
"1"
]
}
]
},
"flags": [
"authored",
"curated",
"isP2"
],
"folder_id": "b140035b-3adc-43bf-a39d-8e8005c8af2a",
"position": 128.1,
"permissions": {
"audience_overall": "accessible"
},
"datasets": [
"ds-core",
"ds-96c906f1"
]
}
]
}List audiences from given folder only
List audiences with a given flag(s) only
Collection of all available audiences.
List of audiences
Show child attributes
Unique ID of saved audience
v1 ID of an audience if applicable or null
Human readable name
Flexible expression of audience scope.
Show child attributes
List of sub-expressions to apply intersection of their scopes.
List of sub-expressions to apply union of their scopes.
To use negation of the expression.
Question code to define datapoint scope.
"q2"
Datapoint codes to limit scopes of interest.
["q2_1", "q2_2"]Suffixes to extend datapoint codes for more detailed responses. Array can be empty.
["1", "2", "3"]Minimal count of positive datapoints in one response.
1
{
"and": [
{
"question": "q2",
"datapoints": ["q2_1", "q2_2"],
"min_count": 1,
"not": false
},
{
"question": "q6",
"datapoints": ["q6_2"],
"min_count": 1,
"suffixes": ["1", "2", "3"],
"not": false
}
]
}when item was created
when item was updated
null/nil uuid or folder uuid
items are sorted by numeric position
Show child attributes
Show child attributes
Strings accessible or containsUnknownData describe overall permission of a user to an audience.
This field is kept for consistency with query-es route permissions response. It is not used in saved-data at all.
Error describes what kind of error occured if there was one. This field explains better errorType field.
Type of the error
{
"meta": { "limit": 5, "offset": 15, "count": 100 },
"data": ["..."]
}dataset codes
additional flags about audience
Flags:
authored, curated, isP2 Was this page helpful?