---
title: VariantOptionFilter - Storefront API
description: >-
  The input fields for a filter used to view a subset of products in a
  collection matching a specific variant option.
api_version: 2026-07
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/input-objects/VariantOptionFilter
  md: >-
    https://shopify.dev/docs/api/storefront/latest/input-objects/VariantOptionFilter.md
api_name: storefront
api_type: graphql
type: input-object
---

# Variant​Option​Filter

input\_object

The input fields for a filter used to view a subset of products in a collection matching a specific variant option.

## Fields

* name

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  non-null

  The name of the variant option to filter on.

* value

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  non-null

  The value of the variant option to filter on.

***

## Input objects using this input

* [Product​Filter.variantOption](https://shopify.dev/docs/api/storefront/latest/input-objects/ProductFilter#fields-variantOption)

  INPUT OBJECT

  The input fields for a filter used to view a subset of products in a collection. By default, the `available` and `price` filters are enabled. Filters are customized with the Shopify Search & Discovery app. Learn more about [customizing storefront filtering](https://help.shopify.com/manual/online-store/themes/customizing-themes/storefront-filters).

***

## Map

### Input objects using this input

* [Product​Filter.variantOption](https://shopify.dev/docs/api/storefront/latest/input-objects/ProductFilter#fields-variantOption)
