---
title: "Get a compare item"
method: GET
path: "/compare_items/{id}"
tags: ["CompareItem"]
---

# Get a compare item

`GET /compare_items/{id}`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/compare_items/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/compare_items/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a single compare item owned by the authenticated customer.

## Path parameters

- `id` string, required

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Response `200`

The compare item.

## Other responses

- `404`: Compare item not found or not owned by the caller.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-shop-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-shop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-shop-api/revisions/f619df36bf29?raw)
