Skip to Content

SearchApi

All URIs are relative to https://business.apis.kesk.app/v1 

MethodHTTP requestDescription
getSearchDataGET /search-dataRetrieve filter options and metadata for search functionality
searchAllGET /searchSearch for products, vendors, or services across the marketplace

getSearchData

SearchDataResponse getSearchData(vendor_type_id)

Retrieve filter options and metadata for search functionality

Returns all available filter data including categories, subcategories, tags, and vendor-specific options to populate search forms and filters. This data helps users refine their search queries and discover available filtering options based on the selected vendor type.

Parameters

NameTypeDescriptionNotes
vendor_type_idLongOptional vendor type ID to get vendor-specific filter options (e.g., restaurant categories vs pharmacy categories)[optional] [default to null]

Return type

SearchDataResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

searchAll

SearchResponse searchAll(keyword, category_id, subcategory_id, vendor_id, vendor_type_id, min_price, max_price, sort, filter, latitude, longitude, tags, type, is_open, merge)

Search for products, vendors, or services across the marketplace

Performs a unified search across all marketplace entities with support for keyword matching, category filtering, price ranges, geolocation-based sorting, and tag-based discovery. Results can be returned separately by type or merged based on the search parameters.

Parameters

NameTypeDescriptionNotes
keywordStringSearch keyword to match against product names, vendor names, or service descriptions[optional] [default to null]
category_idLongFilter results by specific category ID[optional] [default to null]
subcategory_idLongFilter results by specific subcategory ID[optional] [default to null]
vendor_idLongFilter results to show only items from a specific vendor[optional] [default to null]
vendor_type_idLongFilter results by vendor type (e.g., restaurant, grocery, pharmacy)[optional] [default to null]
min_priceDoubleMinimum price filter for products and services[optional] [default to null]
max_priceDoubleMaximum price filter for products and services[optional] [default to null]
sortSortOrderSort order for results[optional] [default to null] [enum: price_asc, price_desc, distance, popularity, asc, desc]
filterStringAdditional filter criteria as JSON string[optional] [default to null]
latitudeDoubleUser’s latitude coordinate for distance-based sorting and availability[optional] [default to null]
longitudeDoubleUser’s longitude coordinate for distance-based sorting and availability[optional] [default to null]
tagsStringTag IDs as JSON array or single ID for filtering by product/service tags[optional] [default to null]
typeSearchTypeSearch type to limit results (product, vendor, or service). Omit to search all types[optional] [default to null] [enum: product, service, vendor]
is_openBooleanFilter vendors/services by current open status (requires latitude/longitude)[optional] [default to null]
mergeBooleanWhen true, merges results into a single array based on search type. When false, returns separate arrays for each type[optional] [default to null]

Return type

SearchResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8