---
title: searchcategory
slug: klevucore-reference/searchcategory
docTags: 
createdAt: 2023-11-09T09:45:59.074Z
---

▸ **searchCategory**(`term`, `options?`): [`KlevuFetchFunctionReturnValue`](docId\:T803lqj3C91t_7d1wZito)

Search helper function that sets correct settings

### Parameters

| Name       | Type                                                             | Description      |
| ---------- | ---------------------------------------------------------------- | ---------------- |
| `term`     | `string`                                                         | category to find |
| `options?` | `Partial`\<[`KlevuSearchOptions`](docId\:oPnz3pXXIAZwE9oJVUONX)> |                  |

### Returns

[`KlevuFetchFunctionReturnValue`](docId\:T803lqj3C91t_7d1wZito)

### Defined in

[queries/searchCategory/searchCategory.ts:13](https://github.com/klevultd/frontend-sdk/blob/492d3760/packages/klevu-core/src/queries/searchCategory/searchCategory.ts#L13)
