Query categorization

POST /classify-query

This endpoint lets you check the e-commerce category that a search query belongs to. For example, a search for "Nike shoes" would be classified into the category "Clothing, Shoes & Jewelry" and sub-category "Shoes".

Headers

Header
Type
Description

Authorization

string

Bearer token.

Request body

{
  query:"Nike Shoes"
}

Response

{
  status:200,
  categoryClassification: {
        "subcategory_id": "679182011",
        "subcategory": "Shoes",
        "category_id": "7147443011",
        "category": "Clothing, Shoes & Jewelry"
    }
}

Last updated