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

# Get views

Get all the [views](https://documentation.bloomreach.com/discovery/docs/discovery-glossary#views) associated with a product or item feed record.


> 📘 Note
>
> The `data` field in the response object differs based on the type on Catalog. For product catalogs, you will only get the `ProductViewsetPreview` or `ProductViewSummary` parts, and for content catalogs, you will only get the `ItemViewsetPreview` or `ItemViewSummary` parts of the response.

# 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": {
      "parameters": [
        {
          "$ref": "#/components/parameters/AccountName"
        },
        {
          "$ref": "#/components/parameters/CatalogName"
        },
        {
          "$ref": "#/components/parameters/EnvironmentName"
        },
        {
          "$ref": "#/components/parameters/RecordId"
        },
        {
          "$ref": "#/components/parameters/PageNumber"
        },
        {
          "$ref": "#/components/parameters/PageLimit"
        },
        {
          "$ref": "#/components/parameters/Mode"
        }
      ],
      "get": {
        "tags": [
          "Manage feed records"
        ],
        "summary": "Get views",
        "description": "Get all the [views](https://documentation.bloomreach.com/discovery/docs/discovery-glossary#views) associated with a product or item 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": {
                            "views": {
                              "type": "object",
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "$ref": "#/components/schemas/ProductView"
                                  },
                                  {
                                    "$ref": "#/components/schemas/ItemView"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "meta": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            }
                          }
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "views": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "$ref": "#/components/schemas/ProductViewsetPreview"
                                  },
                                  {
                                    "$ref": "#/components/schemas/ItemViewsetPreview"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "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": {
                                "oneOf": [
                                  {
                                    "$ref": "#/components/schemas/ProductViewSummary"
                                  },
                                  {
                                    "$ref": "#/components/schemas/ItemViewSummary"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/404Response"
                }
              }
            }
          },
          "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"
      }
    },
    "schemas": {
      "ProductView": {
        "description": "",
        "type": "object",
        "properties": {
          "attributes": {
            "type": "object"
          },
          "variants": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ProductVariantView"
            }
          }
        },
        "required": [
          "attributes",
          "variants"
        ]
      },
      "ProductViewSummary": {
        "description": "",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "attributes": {
            "type": "object"
          },
          "variant_override_record_count": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "attributes",
          "variant_override_record_count"
        ]
      },
      "ProductViewsetPreview": {
        "description": "",
        "type": "object",
        "properties": {
          "view_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "variants": {
            "type": "object"
          },
          "attributes": {
            "type": "object"
          }
        },
        "required": [
          "view_ids",
          "variants",
          "attributes"
        ]
      },
      "ProductVariantView": {
        "description": "",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "attributes": {
            "type": "object"
          },
          "exclude_from_view": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "attributes",
          "exclude_from_view"
        ]
      },
      "ItemView": {
        "description": "",
        "type": "object",
        "properties": {
          "attributes": {
            "type": "object"
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ItemViewSummary": {
        "description": "",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "attributes": {
            "type": "object"
          }
        },
        "required": [
          "id",
          "attributes"
        ]
      },
      "ItemViewsetPreview": {
        "description": "",
        "type": "object",
        "properties": {
          "view_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "attributes": {
            "type": "object"
          }
        },
        "required": [
          "view_ids",
          "attributes"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "class": {
            "type": "string",
            "enum": [
              "error",
              "warning"
            ]
          }
        }
      },
      "404Response": {
        "description": "Not Found",
        "type": "object",
        "properties": {
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "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": []
    }
  ]
}
```