---
updatedAt: 2026-06-15T13:07:40.000Z
agentTools:
  siteIndex: https://documentation.bloomreach.com/llms.txt
  projectIndex: https://documentation.bloomreach.com/discovery/llms.txt
---

# Get view variants

Get all the [variants](https://documentation.bloomreach.com/discovery/docs/discovery-glossary#variant) associated with a different [view](https://documentation.bloomreach.com/discovery/docs/discovery-glossary#views) of any product feed record.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Catalog management API",
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://discovery.bloomreach.com/dataconnect/api/v3"
    }
  ],
  "paths": {
    "/accounts/{account_name}/catalogs/{catalog_name}/environments/{environment_name}/records/{record_id}/views/{view_id}/variants": {
      "parameters": [
        {
          "$ref": "#/components/parameters/AccountName"
        },
        {
          "$ref": "#/components/parameters/CatalogName"
        },
        {
          "$ref": "#/components/parameters/EnvironmentName"
        },
        {
          "$ref": "#/components/parameters/RecordId"
        },
        {
          "$ref": "#/components/parameters/ViewId"
        },
        {
          "$ref": "#/components/parameters/PageNumber"
        },
        {
          "$ref": "#/components/parameters/PageLimit"
        },
        {
          "$ref": "#/components/parameters/Mode"
        }
      ],
      "get": {
        "tags": [
          "Manage feed records"
        ],
        "summary": "Get view variants",
        "description": "Get all the [variants](https://documentation.bloomreach.com/discovery/docs/discovery-glossary#variant) associated with a different [view](https://documentation.bloomreach.com/discovery/docs/discovery-glossary#views) of any product feed record.\n",
        "responses": {
          "200": {
            "description": "OK. Click to see the response structure.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "meta": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            }
                          }
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "variant_views": {
                              "type": "object",
                              "additionalProperties": {
                                "$ref": "#/components/schemas/ProductVariantView"
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "meta": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "previous_page": {
                              "type": "string"
                            },
                            "next_page": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "count"
                          ]
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "views": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/ProductVariantViewSummary"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "details": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ErrorResponse"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not found"
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/429Response"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/500Response"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "AccountName": {
        "description": "Your unique account name.",
        "name": "account_name",
        "in": "path",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "required": true,
        "example": "homeoasis"
      },
      "CatalogName": {
        "description": "\"Catalog name\" is also called domain key. Use the same value as your domain key in your search API requests.",
        "name": "catalog_name",
        "in": "path",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "required": true,
        "example": "homeoasis_fr"
      },
      "EnvironmentName": {
        "description": "The type of environment you want to use for the request (Production/Staging).",
        "name": "environment_name",
        "in": "path",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "enum": [
            "production",
            "staging"
          ]
        },
        "required": true
      },
      "PageNumber": {
        "description": "To navigate through paginated results, use the page number to switch between pages.",
        "name": "page",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1
        },
        "required": false,
        "example": 1
      },
      "PageLimit": {
        "description": "Specify the maximum number of pages to return in the response.",
        "name": "limit",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200,
          "default": 20
        },
        "required": false,
        "example": 10
      },
      "Mode": {
        "description": "* raw - returns only the raw view/variant data of a feed record\n* preview - returns a preview of the complete feed record containing all attributes, views, and variants\n",
        "name": "mode",
        "in": "query",
        "schema": {
          "type": "string",
          "enum": [
            "raw",
            "preview"
          ]
        },
        "required": false
      },
      "RecordId": {
        "description": "The unique ID associated with a product or item feed record.",
        "name": "record_id",
        "in": "path",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "required": true,
        "example": "1111abcd"
      },
      "ViewId": {
        "description": "A unique identifier for a specific view of your product catalog.\nIf you have multiple versions of your site, each with its product catalog characteristics like product titles and prices, then add view_id to your call.\n\nBloomreach uses your view_id parameter value to display the right product information for your customers based on their individual site views. \nYou can enter any string value to identify the specific site catalog view. This string must be consistent in your pixel, API, and product catalog.\n",
        "name": "view_id",
        "in": "path",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "required": true,
        "example": "1324abc"
      }
    },
    "schemas": {
      "ProductVariantView": {
        "description": "",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "attributes": {
            "type": "object"
          },
          "exclude_from_view": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "attributes",
          "exclude_from_view"
        ]
      },
      "ProductVariantViewSummary": {
        "description": "",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "attributes": {
            "type": "object"
          },
          "exclude_from_view": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "attributes",
          "exclude_from_view"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "class": {
            "type": "string",
            "enum": [
              "error",
              "warning"
            ]
          }
        }
      },
      "429Response": {
        "description": "Too Many Requests",
        "type": "object",
        "properties": {
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "500Response": {
        "description": "Internal Server Error",
        "type": "object",
        "properties": {
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```