GET /analyze/:token/similar_products
Returns products similar to the ingredient list analysis
Path parameters
-
token reference to desired resource
GET /analyze/{token}/similar_products
curl \
-X GET https://api.cosmily.com/api/v1/analyze/{token}/similar_products \
-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
}
]
}