---
updatedAt: 2026-09-24T11:53:05.000Z
agentTools:
  projectIndex: https://developers.taboola.com/backstage-api/llms.txt
---

# Get Contextual Segments

Get a list of available *Contextual Segments* for the specified *account* - e.g. in order to apply [Contextual Targeting](ref:update-contextual-targeting).

<div class="not-prose mt-4 pt-4 border-t border-gray-100 text-sm text-gray-700"><strong class="font-semibold">Rate limit:</strong> <a href="#rate-limit">Tier 1</a></div>

### Examples

#### No filters applied

```http Request
GET https://backstage.taboola.com/backstage/api/1.0/demo-account/dictionary/contextual_segments/
```
```json Response
{
    "results": [
        {
            "id": 1900037,
            "provider": "Taboola",
            "label": "Contextual > Art and Entertainment > Books and Literature",
            "description": "Target articles on Taboola publisher network that talk about books and literature",
            "taxonomy": "CONTEXTUAL>ALL",
            "allowed_countries": "AU,IN,JP,US",
            "size": 28590
        },
        {
            "id": 1900024,
            "provider": "Taboola",
            "label": "Contextual > Art and Entertainment > Comics and Animation",
            "description": "Target articles on Taboola publisher network that talk about comics and animation",
            "taxonomy": "CONTEXTUAL>ALL",
            "allowed_countries": "BR,DE,AU,IN,JP,MX,GB,CA,US",
            "size": 59105
        }
        // Additional rows omitted
    ],
    "metadata": {
        // Fields omitted
    }
}
```

> 🚧
>
> The payload for this endpoint is typically large.

#### Filter by 1 or more countries

Filter using the `countryCodes` **query** param:

```http Request with filter
GET https://backstage.taboola.com/backstage/api/1.0/demo-account/dictionary/contextual_segments?countryCodes=DE,AU
```
```json Response
{
    "results": [
        {
            "id": 1900037,
            "provider": "Taboola",
            "label": "Contextual > Art and Entertainment > Books and Literature",
            "description": "Target articles on Taboola publisher network that talk about books and literature",
            "taxonomy": "CONTEXTUAL>ALL",
            "allowed_countries": "AU,IN,JP,US",
            "size": 28590
        },
        {
            "id": 1900024,
            "provider": "Taboola",
            "label": "Contextual > Art and Entertainment > Comics and Animation",
            "description": "Target articles on Taboola publisher network that talk about comics and animation",
            "taxonomy": "CONTEXTUAL>ALL",
            "allowed_countries": "BR,DE,AU,IN,JP,MX,GB,CA,US",
            "size": 59105
        }
        // Additional rows omitted  
    ]    
    "metadata": {
        // Fields omitted      
    }
}
```

> 🚧 Invalid account\_id
>
> If you pass an `account_id` *or* `countryCode` that does not exist, the endpoint will return a *successful* response with an *empty* collection.

```json 200 | Invalid account_id
{
    "results": [],
    "metadata": {
        "total": null,
        "count": null,
        "static_fields": [],
        "static_total_fields": []
    }
}
```

## Rate limit

> 🚧 Rate limit
>
> **Tier 1.** Has its own budget, separate from the marketplace and lookalike audience lists.
>
> See [Rate limits](https://developers.taboola.com/backstage-api/reference/rate-limits) for the request allowance each tier carries.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "backstage-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://backstage.taboola.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://backstage.taboola.com/backstage/oauth/token",
            "scopes": {}
          },
          "password": {
            "tokenUrl": "https://backstage.taboola.com/backstage/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "paths": {
    "/backstage/api/1.0/{account_id}/dictionary/contextual_segments/": {
      "get": {
        "summary": "Get Contextual Segments",
        "description": "Get a list of available *Contextual Segments* for the specified *account* - e.g. in order to apply [Contextual Targeting](ref:update-contextual-targeting).\n\n<div class=\"not-prose mt-4 pt-4 border-t border-gray-100 text-sm text-gray-700\"><strong class=\"font-semibold\">Rate limit:</strong> <a href=\"#rate-limit\">Tier 1</a></div>",
        "operationId": "get-contextual-segments",
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "description": "An *alphabetic* ID. See [Get Account Details](ref:get-account-details).",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "deprecated": false
      }
    }
  }
}
```