---
title: imagesearch
slug: klevucore-reference/imagesearch
docTags: 
createdAt: 2023-11-09T09:45:59.073Z
---

▸ **imageSearch**(`image`, `options?`, `...modifiers`): `Promise`\<[`KlevuFetchFunctionReturnValue`](docId\:T803lqj3C91t_7d1wZito)>

Uploads the image if blob passed or uses url to perform search



Error when image upload fails or when no url/blob is passed

### Parameters

| Name           | Type                                                             | Description                                        |
| -------------- | ---------------------------------------------------------------- | -------------------------------------------------- |
| `image`        | `string` \| `Blob`                                               | Pass a url or the image blob for search            |
| `options?`     | `Partial`\<[`KlevuSearchOptions`](docId\:oPnz3pXXIAZwE9oJVUONX)> | [KlevuSearchOptions](docId\:oPnz3pXXIAZwE9oJVUONX) |
| `...modifiers` | `KlevuFetchModifer`\[]                                           | -                                                  |

### Returns

`Promise`\<[`KlevuFetchFunctionReturnValue`](docId\:T803lqj3C91t_7d1wZito)>

### Defined in

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