Search API Call
This page explains the request and the response formats for the search API call
Use - 'collection-search' endpoint for collection pages
Use - 'search' endpoint for search pages
Search API
GET
https://xyz.search.frenzy.ai/{search or collection-search}
Query Parameters
raw_query
string
User entered query.
filters
string
filter selected by the user Format for string filter values- filter_name:filter_value Format for numberial filter values- filter_name<filter_value
sort
String
Possible values- 1. newest, 2. best match, 3. price asc, 4. price desc (Default best match)
results_per_page
integer
Number of results required. For shopify Customers, this values is set in Portal.
page_index
integer
Page index, starts from 0.
user_id
string
User Id associated with the request (only required for personalization)
config_id
string
id for A/B test
headless
boolean
for headless users sent true, else false
shop
string
name of the Shopify Store. (required for shopify stores)
suggestion
string
If the search query comes from Suggestion send true, else false
extra_filters
string
non UI filters to run prior finding the results.
collection_id
string
for collection pages sent the collection id
collection_handle
string
for collection pages sent the collection handle
currency
string
currency code
country
string
country code
Headers
X-Frenzy-Authorization*
string
API key provided at the time of account creation.
Response Object
Key
Type
Value
correct_query
string
Spell corrected user query by SpellCheck
page_count
integer
Total number of possible pages with 'results_per_page' number of products on each page.
results
array
facet_fileds
array
Facet data for filters
filters
object
User-selected filters
products_found
integer
Total number of products found for 'raw_query'
request_id
string
Id for tracking the request
filter_order
array
Mapping for filter display name.
Example Request [Collection Page]
Example Request [Search Page]
Last updated
Was this helpful?