Retrieving Query Groups

Listing the Query Groups that you have created.

You can create Query Groups to represent a relationship between related Queries. They are stored within Projects. To see the Query Groups that exist in a Project, then use the following call:

curl -X GET https://api.brandwatch.com/projects/937893762/querygroups

The response will look like the following:

{
  "resultsTotal": -1,
  "resultsPage": -1,
  "resultsPageSize": -1,
  "results": [
    {
      "id": 165923298,
      "name": "Competitors",
      "shared": "public",
      "sharedProjectIds": [
        1494022974
      ],
      "queries": [
        {
          "id": 39037892,
          "name": "Ikea"
        },
        {
          "id": 49482811,
          "name": "DFS"
        }
      ],
      "users": [
        {
          "id": 298473382,
          "username": "example@example.com",
          "firstName": "John",
          "lastName": "Doe",
          "uiRole": "regular"
        }
      ]
    }
  ]
}

You can then use the id of the Query Group to apply a Filter to Mentions data calls, or to create charts with.

Retrieving Query Groups

Listing the Query Groups that you have created.