---
updatedAt: 2026-03-30T13:14:26.000Z
agentTools:
  siteIndex: https://documentation.bloomreach.com/llms.txt
  projectIndex: https://documentation.bloomreach.com/discovery/llms.txt
---

# Field Stats

The **`stats.field`** parameter allows you to display the maximum and minimum values of any numeric field in your data set for a user query. With this parameter, you can get all the documents matching a query and display the minimum and maximum values of specific attributes such as price, sale\_price, length, width, reviews, and so on.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/71e51e3-Screenshot_2022-09-02_at_4.26.22_PM.png",
        "Screenshot 2022-09-02 at 4.26.22 PM.png",
        688,
        587,
        "#f7f7f8"
      ],
      "border": true,
      "caption": "Price range element with maximum and minimum values",
      "sizing": "smart"
    }
  ]
}
[/block]

**Note**: This parameter is supported for single-valued numeric attributes only.

\###Example

[block:code]
{
  "codes": [
    {
      "code": "&stats.field=sale_price,price,MARGIN_DOLLAR\n",
      "language": "text",
      "name": "Request"
    },
    {
      "code": "{\n\"response\": ...\n\"facet_counts:\" ...\n\"stats\":{  \n   \"stats.field\":{  \n      \"sale_price\":{  \n         \"max\":2449.99,\n         \"min\":0.69\n      },\n      \"price\":{  \n         \"max\":2449.99,\n         \"min\":0.69\n      },\n      \"MARGIN_VALUE\":{  \n         \"max\":0.91,\n         \"min\":0\n}\n}",
      "language": "text",
      "name": "Response"
    }
  ]
}
[/block]

\##**Use case**

The **`stats.field`** parameter can be used to display the price range (max-min) in the UI as a price slider. When the user performs a search query, the maximum and minimum price of the queried product is displayed with **`stats.field`**. This parameter can also be used for other numeric attributes such as review, length, width, and so on.