GET /products/:id_or_alias/similar

GET /products/{id_or_alias}/similar

Returns products similar to the referenced product

Path parameters

Responses

GET /products/{id_or_alias}/similar
curl \
 -X GET https://api.cosmily.com/api/v1/products/{id_or_alias}/similar \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "similar": [
    {
      "product_id": 42,
      "category_id": 42,
      "score": 42,
      "percent_match": 42
    }
  ]
}
Response examples (200)
{
  "similar": [
    {
      "product_id": 42,
      "category_id": 42,
      "score": 42,
      "percent_match": 42
    }
  ]
}