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).
session_id
string
Session id associated with the request.
config_id
string
Configuration id for search/collection pages.
ab_test_id
string
A/B test id when test is running.
headless
boolean
For headless users sent true, else false.
shop
string
Shopify's myshopify url. (without https://)
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.
state
string
State code.
company_id
string
Shopify B2B company id.
location_id
string
Shopify B2B location id.
publication_app_id
string
Shopify publication app id.
Headers
X-Frenzy-Authorization*
string
API key provided at the time of account creation.
X-Shop
string
Shopify's myshopify url. (without https://)
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.
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.
color_swatches
object
Swatches to be displayed for Filters.
Example Request [Collection Page]
Example Request [Search Page]
Last updated
Was this helpful?