Skip to main content
POST
/
v2
/
saved
/
audiences
/
filter
v2 Filter Audiences
curl --request POST \
  --url https://api.globalwebindex.com/v2/saved/audiences/filter \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cursor": "base64_encoded_cursor",
  "flags": [
    "authored",
    "curated"
  ],
  "folder_id": "b140035b-3adc-43bf-a39d-8e8005c8af2a",
  "limit": 10,
  "name": "My Audience",
  "offset": 0,
  "sort_by": "updated_at.desc"
}
'
{
  "data": [
    {
      "created_at": "<string>",
      "datasets": [
        "ds-core",
        "ds-96c906f1"
      ],
      "description": "Male millennials aged 18-24 who use social media daily",
      "expression": {
        "and": "<array>",
        "datapoints": [
          "q2_1"
        ],
        "min_count": 123,
        "not": false,
        "options": [
          "<string>"
        ],
        "or": "<array>",
        "question": "q2",
        "suffixes": [
          1
        ]
      },
      "flags": [
        "authored"
      ],
      "folder_id": "b140035b-3adc-43bf-a39d-8e8005c8af2a",
      "id": "b140035b-3adc-43bf-a39d-8e8005c8af2a",
      "name": "Male with credit card and short-term loan",
      "permissions": {
        "audience_overall": "accessible",
        "meta": {}
      },
      "position": 128,
      "shared": false,
      "sharings": {},
      "updated_at": "<string>",
      "user_id": 12345,
      "v1_id": 12345
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json

Filter request body

cursor
string

Base64 encoded pagination cursor

Example:

"base64_encoded_cursor"

flags
string[]

Filter by audience flags

Example:
["authored", "curated"]
folder_id
string

Filter by folder ID

Example:

"b140035b-3adc-43bf-a39d-8e8005c8af2a"

limit
integer

Maximum number of results to return

Example:

10

name
string

Filter by audience name

Example:

"My Audience"

offset
integer

Number of results to skip

Example:

0

sort_by
string

Sort field and order (format: field.order)

Example:

"updated_at.desc"

Response

OK

data
object[]