> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mercurjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Product Attributes

> Retrieve active global product attributes.

Returns a paginated list of active, global product attributes (attributes scoped to a single product are excluded).

## Query parameters

**limit** `number` (default: 50)

Maximum number of attributes to return.

**offset** `number` (default: 0)

Number of attributes to skip before collecting results.

**order** `string`

Field to sort by, prefixed with `-` for descending order.

**fields** `string`

Comma-separated fields and relations to include; prefix with `+`/`-` to add to or remove from the defaults.

**q** `string`

Free-text search term applied to attribute fields.

**id** `string | string[]`

Filter by one or more attribute IDs.

**handle** `string | string[]`

Filter by one or more attribute handles.

**type** `string | string[]`

Filter by attribute type. Values: `single_select`, `multi_select`, `unit`, `toggle`, `text`.

**is\_variant\_axis** `boolean`

Filter attributes that define variant axes.

**is\_filterable** `boolean`

Filter attributes usable as storefront filters.

**created\_at** `object`

Filter by creation date using operators like `$gt`, `$gte`, `$lt`, `$lte`.

**updated\_at** `object`

Filter by update date using operators like `$gt`, `$gte`, `$lt`, `$lte`.

**\$and** `object[]`

Join multiple filter objects with a logical AND.

**\$or** `object[]`

Join multiple filter objects with a logical OR.

## Response

**product\_attributes** `object[]`

**properties**

**id** `string`

The attribute's ID.

**name** `string`

The attribute's display name.

**handle** `string`

URL-safe handle.

**description** `string | null`

The attribute's description.

**type** `string`

One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.

**is\_required** `boolean`

Whether sellers must set a value.

**is\_filterable** `boolean`

Whether the attribute can drive storefront filters.

**is\_variant\_axis** `boolean`

Whether the attribute defines a variant axis.

**product\_id** `null`

Always `null` on the store API (global attributes only).

**rank** `number`

Sort rank.

**values** `object[]`

The attribute's predefined values.

**metadata** `object | null`

Custom key-value data.

**created\_at** `string`

Creation timestamp.

**updated\_at** `string`

Last update timestamp.

**count** `number`

Total number of matching attributes.

**offset** `number`

Number of skipped attributes.

**limit** `number`

Maximum number of returned attributes.

```bash cURL theme={null}
curl 'http://localhost:9000/store/product-attributes?is_filterable=true' \
  -H 'x-publishable-api-key: pk_01JB2K3XYZ'
```

```ts JS Client theme={null}
const { product_attributes, count } = await client.store.productAttributes.query({
  is_filterable: true,
})
```

```json 200 theme={null}
{
  "product_attributes": [
    {
      "id": "attr_01JB2K7A1B",
      "name": "Material",
      "handle": "material",
      "description": null,
      "type": "single_select",
      "is_required": false,
      "is_filterable": true,
      "is_variant_axis": false,
      "product_id": null,
      "rank": 0,
      "values": [
        { "id": "attrval_01JB2K7C2D", "name": "Linen", "rank": 0 },
        { "id": "attrval_01JB2K7E3F", "name": "Cotton", "rank": 1 }
      ],
      "metadata": null,
      "created_at": "2026-05-01T10:00:00.000Z",
      "updated_at": "2026-05-01T10:00:00.000Z"
    }
  ],
  "count": 5,
  "offset": 0,
  "limit": 50
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.