# Brands Dictionary

Get a list of brands that match the search query. Results from this endpoint are only valid for AI Search filters. Just like other dictionary endpoints, this endpoints costs nothing and there are no strict rate limits.

Endpoint: GET /ai/brands
Security: accessToken

## Security:

  - `accessToken` (unknown)
    http bearer token

## Query parameters:

  - `query` (string)
    Fuzzy search based on brand's name

  - `domain` (string)
    Exact match based on brand's domain

  - `platform` (string)
    Platform (specify if you want to filter the results by platform)

  - `userId` (string)
    Exact match based on brand's user ID (Instagram,Tiktok,Youtube) or domain

  - `brandId` (string)
    Exact match based on brand ID (brand identity hash)

## Response 200 fields (application/json):

  - `error` (boolean)
    If there is an error
    Example: false

  - `result` (array, required)
    List of top 5 brands based on the search query

  - `result.brandId` (string, required)
    Brand ID (brand identity hash)

  - `result.name` (string, required)
    Brand name

  - `result.logoUrl` (string, required)
    Brand logo URL

  - `result.accounts` (array, required)
    Social platform accounts related to the brand

  - `result.accounts.platform` (string, required)
    Platform
    Enum: "instagram", "tiktok", "youtube"

  - `result.accounts.userId` (string)
    Brand user ID, not available for Youtube

  - `result.accounts.username` (string)
    Brand username, not available for Youtube

  - `result.accounts.domain` (string, required)
    Brand domain (if we do not have the domain then we return the brand's profile URL instead)

