---
title: "Get Variant IDs for Catalog Item"
description: "How to call Get Variant IDs for Catalog Item (GET /api/catalog-items/{id}/relationships/variants) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-01-15/reference/get_variant_ids_for_catalog_item"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_variant_ids_for_catalog_item"
operationId: "get_variant_ids_for_catalog_item"
aliases: ["get_catalog_item_relationships_variants"]
method: "GET"
endpoint: "https://a.klaviyo.com/api/catalog-items/{id}/relationships/variants"
authentication: "privateKey"
scopes: ["catalogs:read"]
rateLimits: {"burst":"350/s","steady":"3500/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"sort":["created","-created"],"pagination":{"style":"cursor"}}
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/catalogs/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_catalog_variants.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_catalog_variant.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_catalog_variant.md","https://developers.klaviyo.com/en/v2025-01-15/reference/update_catalog_variant.md","https://developers.klaviyo.com/en/v2025-01-15/reference/delete_catalog_variant.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_create_variants_jobs.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_create_variants_job.md","https://developers.klaviyo.com/en/v2025-01-15/reference/bulk_create_catalog_variants.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_update_variants_jobs.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_update_variants_job.md","https://developers.klaviyo.com/en/v2025-01-15/reference/bulk_update_catalog_variants.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_delete_variants_jobs.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_delete_variants_job.md","https://developers.klaviyo.com/en/v2025-01-15/reference/bulk_delete_catalog_variants.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_variants_for_catalog_item.md"]
---

# Get Variant IDs for Catalog Item

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/reference/get_variant_ids_for_catalog_item

```http
GET https://a.klaviyo.com/api/catalog-items/{id}/relationships/variants
```

Get all variants related to the given item ID.

Variants can be sorted by the following fields, in ascending and descending order:
`created`

Returns a maximum of 100 variants per request.

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `catalogs:read`
- Rate limits: Burst: `350/s`, Steady: `3500/m`

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/catalog-items/%24custom%3A%3A%3A%24default%3A%3A%3ASAMPLE-DATA-ITEM-1/relationships/variants' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2025-01-15'
```

## Path parameters

- `id` (string, required, nullable): The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`. Example: `$custom:::$default:::SAMPLE-DATA-ITEM-1`

## Query parameters

- `filter` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md)\
  Allowed field(s)/operator(s):\
  `ids`: `any`\
  `item.id`: `equals`\
  `sku`: `equals`\
  `title`: `contains`\
  `published`: `equals` Example: `any(ids,['$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM'])`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md)
- `sort` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md) Allowed values: `created`, `-created`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2025-01-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object[], required)
  - `type` (string, required): Allowed values: `catalog-variant`
  - `id` (string, required): The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`. Example: `$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM`

#### Example response body

```json
{
  "data": [
    {
      "type": "catalog-variant",
      "id": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM"
    }
  ]
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
