Frenzy AI Personalization
  • Welcome to the Frenzy docs
  • Shopify App
    • Product Feed Sync
    • Install Components
    • Configuring Product Card
      • Custom Data
      • Reviews
      • Wishlist Icons
      • Quick Views
      • Swatches
      • Testing Product Cards
    • Search & Collections
      • Merchandising
        • Sorting
        • Rules
      • Filters
        • Filter Trees
    • Recommendation Widgets
      • Widgets
      • Data Sources
    • Synonyms
    • Global CSS
    • Tutorials
      • Search & Collection Page Merchandising
        • How to Bury Products Globally on all Collection Pages
        • How to Pin Products in Collection Group
        • How to Bury Sale Products Globally on all Collection Pages
        • How to Sort a Collection Page based on Newly Published/Created Products
        • How to Bury Sale Products Globally on all Search Pages
        • How to Hide Products on Search Pages Globally
        • How to boost products (using tags) for a Search Query
        • How to turn on Personalization on Collection Groups
        • How to show Shopify Merchandising on Collection Groups
        • How to bury Out Of Stock Products in Collection Groups
        • How to turn on Personalization on All Search Result Pages
        • How to setup top 10 automated Bestsellers Collections
        • How to Group Products using Tags on Collection Pages
        • How to setup custom products groups on Collection Pages
        • How to Group Products using Tags on Search Pages
        • How to set-up an A/B test on Search and Collection pages
      • Recommendation Carousels
        • How to change the title of the Carousel
        • How to set up an A/B test on a recommendation carousel
        • How to add a collection based homepage carousel
        • How to add 'Selected for You' homepage carousel
        • How to add 'Best Sellers' homepage carousel
        • How to Hide Products in Recommendation Carousels
        • How to create Manual Product Based Carousel
      • Filters
        • How to create filters from Product Tags
        • How to create filters from Product Metafields
        • How to create filters from Color Variants
      • Synonyms
      • Swatches
  • API Functions
    • Search
      • Search API Call
      • Suggest API Call
    • Carousels
      • /recommendation
      • /pair-with
      • /personalized-recommendation
      • /most-clicked-skus
      • /add-cart
    • Sharing Event Data
      • Google Tag Manager
      • API Call
    • product-data
  • Support
Powered by GitBook
On this page
  • recommendation
  • Response Object
  • Example Request
  • Example Request (full_description = true)

Was this helpful?

  1. API Functions
  2. Carousels

/recommendation

This page explains the request and response formats of 'recommendation' endpoint of Frenzy Search. It also provide examples to help you understand better.

Returns similar products for the given product in the request.

recommendation

GET https://xyz.search.frenzy.ai/recommendation

Get top N matching products for a given product-id.

Query Parameters

Name
Type
Description

sku*

string

product-id of the product

full_description

boolean

To get all products with their attributes set it to true. (Default false)

num_matching

integer

Required number of matching products

user_id

string

User Id associated with the request (only required for personalization)

config_id

string

Config ID for A/B text

shop

string

name of the Shopify Store. (required for shopify stores)

Headers

Name
Type
Description

X-Frenzy-Authorization*

string

API key provided at the time of account creation.

{  // list of matching products
  "matching_products": [
    "PSS-001-00001",
    "PSS-002-00002",
    ....
    ...
    ...
    "PSS-010-00015"
  ]
}
{
  "matching_products": [
  
    // description for product 1
    
    {
    'brand' :  " ",
    'category' : " ",
    ...
    ...
    ..
    'sku' : "PSS-001-00001"
    },
    
    // description for product 2 
    {
    'brand' :  " ",
    'category' : " ",
    ...
    ...
    ..
    'sku' : "PSS-002-00002"
    },
    ....
    ...
    ..
    
    // description for product N
    
    {
    'brand' :  " ",
    'category' : " ",
    ...
    ...
    ..
     'sku' : "PSS-010-00015"
    }
  ]
}
{'error': 'server_error'}

NOTE: For Shopify Customers

  1. sku = product_id + '_' + variant_id

  2. num_matching = is set in the portal

Response Object

Key

Type

Value

matching_products

array

request_id

string

Id to track the request

Example Request

By default, the request will return only the list of matching product-ids.

curl --location --request GET 'https://xyz.search.frenzy.ai/recommendation?sku=7104647135405_41289316270253&num_matching=15' \
--header 'X-Frenzy-Authorization: API_KEY'

Example Request (full_description = true)

To get all product attributes along with product-ids, set the full_description parameter to true

curl --location --request GET 'https://xyz.search.frenzy.ai/recommendation?sku=7104647135405_41289316270253&num_matching=15&full_description=true' \
--header 'X-Frenzy-Authorization: API_KEY'
PreviousCarouselsNext/pair-with

Last updated 1 year ago

Was this helpful?

Top N matching products