---
title: CategoryFilter - Storefront API
description: >-
  A filter used to view a subset of products in a collection matching a specific
  category value.
api_version: 2026-10
source_url:
  html: 'https://shopify.dev/docs/api/storefront/latest/input-objects/CategoryFilter'
  md: >-
    https://shopify.dev/docs/api/storefront/latest/input-objects/CategoryFilter.md
api_name: storefront
api_type: graphql
type: input-object
---

# Category​Filter

input\_object

A filter used to view a subset of products in a collection matching a specific category value.

## Fields

* id

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

  non-null

  The id of the category to filter on.

***

## Input objects using this input

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

  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.category](https://shopify.dev/docs/api/storefront/latest/input-objects/ProductFilter#fields-category)
