Skip to Content
API ReferenceProducts

Similar products

Read or replace the products recommended on a product page.

Similar products are variants of your other products that a product page recommends. Read the list with GET, and replace it with PUT: send the full ordered list each time, or an empty list to remove them all.

GET
/v2/products/{product}/similar-products

List the variants of other products recommended on this product's page, in the order shown. Deleted products are left out. The list is not paginated. Requires the listing API-key ability and the listing permission in your team role. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

product*integer

The product path parameter.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://sell.app/api/v2/products/30/similar-products' \  -H 'X-STORE: launch-lab'
{  "data": [    {      "variant_id": 31,      "variant_title": "Default",      "product_id": 30,      "product_title": "Design kit"    },    {      "variant_id": 41,      "variant_title": "Printable edition",      "product_id": 40,      "product_title": "Launch planner"    }  ]}
PUT
/v2/products/{product}/similar-products

Replace the variants recommended on this product's page with the list you send, in that order. Send an empty list to remove them all. A variant you add must be one the product editor offers: an in-stock, one-time-priced variant of another PUBLIC normal product in this product's currency. A variant already on the list may stay even if it no longer qualifies. Requires the listing API-key ability and the listing permission in your team role. Safe to repeat: the same list gives the same result. An add-on, a draft that was never published, or a product with a subscription-priced variant returns 422 on product. A variant that does not qualify, is named twice, or is not in your store returns 422 on variant_ids.{i}, where {i} is its position in your list. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

product*integer

The product path parameter.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
variant_ids*array<>

Variant IDs to recommend, first to last. At most 100. Always send it, even as an empty list.

Itemsitems <= 100

Response Body

Successful response.

application/json
  1. response
data*array<>
Example Request
curl -X PUT 'https://sell.app/api/v2/products/30/similar-products' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "variant_ids": [    31,    41  ]}'
{  "data": [    {      "variant_id": 31,      "variant_title": "Default",      "product_id": 30,      "product_title": "Design kit"    },    {      "variant_id": 41,      "variant_title": "Printable edition",      "product_id": 40,      "product_title": "Launch planner"    }  ]}