Skip to main content

Get Advanced Business Search Results

API operation: Open the endpoint in Scalar

Use GET /search to retrieve advanced business search results. The operation is Search.search.

This operation does not require authentication. order_type_id and JSON location are required; location must include numeric lat and lng. An optional term must contain at least two characters.

See Advanced business search model.

OpenAPI reference​

Operation: GET /search

Query parameters

NameTypeRequiredDescription
paramsstringNoComma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields.
orderBystringNoField to sort by, with - prefixed for descending order. Multiple fields can be chained with commas.
wherestringNoJSON filter over the fields the model declares as filterable. Valid fields for each resource are exposed in its x-ordering-whereable schema extension.
pageintegerNoPage number, starting at 1. Applies only to lists that return a pagination block.
page_sizeintegerNoNumber of items per page.
order_type_idintegerYes—
locationstringYes—
termstringNo—
tagsarray<integer>No—
max_distancenumberNo—
max_etaintegerNo—
max_delivery_pricenumberNo—
max_product_pricenumberNo—
featured_productsbooleanNo—
in_offer_productsbooleanNo—
level_pricestringNo—
fuzzybooleanNo—
fuzzy_thresholdnumberNo—
business_typesstringNo—
closed_businessesstringNo—
debug_timingbooleanNo—
excludesstringNo—
forceOrderBystringNo—
force_lazy_load_productsbooleanNo—
force_max_distancestringNo—
franchise_idsstringNo—
geo_dz_firstbooleanNo—
limitintegerNo—
price_levelintegerNo—

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized (ProjectAccessErrorResponse)
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference