---
title: "Compare"
method: POST
path: "/api/v2/compare"
tags: ["CompareV2"]
---

# Compare

`POST /api/v2/compare`

The compare method is to be called when users willing to compare one or more items.

## Request body

- CompareRequest
  - `ClientGuid` string
  - `Ids` string[] — A list of product's ids
  - `FieldOverride` string[] — An array of field names that Elastic Search will return in a response
  - `IndexName` string — Search a given index

## Response `200`

OK

- object

---

[API](https://skmtc.net/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) · [All operations](https://skmtc.net/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hawksearch/hawksearch-elasticsearch-indexingapi/revisions/24cba7bf3468/schema)
