---
title: "v2GetBrands | TypeScript SDK | AEO API"
description: "Find a brand ID before requesting its prompts or reports. Use view categories when you need a category ID for a new brand."
url: "https://aeoapi.dev/docs/sdks/typescript/v2GetBrands"
canonical: "https://aeoapi.dev/docs/sdks/typescript/v2GetBrands"
last_updated: "2026-11-30"
---

# v2GetBrands

Find a brand ID before requesting its prompts or reports. Use view categories when you need a category ID for a new brand.

See the REST reference for [`GET /v2/brands`](https://aeoapi.dev/docs/api-reference#get-v2-brands).

## Signature

```
v2GetBrands(
  options?: {
    signal?: AbortSignal;
    category_id?: string | null;
    country?: string;
    cursor?: string;
    id?: string;
    include_archived?: boolean;
    limit?: number;
    q?: string;
    view?: "brands" | "categories";
  },
): Promise<ApiResponse<unknown>>
```

## Parameters

**`options`**

Pass the named options in the signature. The selected action or view determines which fields are required.

**`options.signal`**

Optional AbortSignal to cancel the HTTP request.

**`options.view`**

"brands" | "categories". Default brands; categories returns the shared approved catalog.

**`options.limit`**

integer. limit

## Return value

Promise\<ApiResponse\<unknown\>\>. The brands view returns data.items and meta.next_cursor. Pass the cursor in the next request to continue the list.

## Errors

- The SDK throws AeoApiError if the API returns an error. Inspect status, code, fieldErrors and requestId.
- AeoTransportError means the request failed to connect or the client could not finish reading a successful response. Invalid JSON in a successful response throws SyntaxError. If you abort the request, the SDK throws the reason from the AbortSignal.
- For HTTP 422, check fieldErrors for the input field and validation message.

## TypeScript example

```
import { AeoClient } from "@aeoapi/aeo-sdk";

const apiKey = process.env.AEO_API_KEY;
if (!apiKey) throw new Error("Set AEO_API_KEY on your server.");
const client = new AeoClient(apiKey, { baseUrl: "https://api.aeoapi.dev" });

const response = await client.v2GetBrands({
  "view": "brands",
  "limit": 25
});
console.log(response.status, response.body);
```

## Requests by feature

### Brands, locations and connections

- [List brands and categories](https://aeoapi.dev/docs/features/brands-locations-and-connections/get-brands-default)

See [TypeScript client setup](https://aeoapi.dev/docs/sdks/typescript) for authentication, timeouts and retry settings.
