Classify Grocery Product

POST {{baseUrl}}/food/products/classify?locale=en_US

This endpoint allows you to match a packaged food to a basic category, e.g. a specific brand of milk to the category milk.

Request Params

KeyDatatypeRequiredDescription
localestringThe display name of the returned category, supported is en_US (for American English) and en_GB (for British English).

Request Body

{"title"=>"Kroger Vitamin A & D Reduced Fat 2% Milk", "upc"=>"", "plu_code"=>""}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"cleanTitle":"Kroger Vitamin A \u0026 D Reduced Fat 2% Milk","image":"https://spoonacular.com/cdn/ingredients_100x100/milk.png","category":"2 percent milk","breadcrumbs":["2 percent milk","milk","drink","ingredient"],"usdaCode":1174}