Search for products
Search the web for products matching a natural language query and structure the results. Optionally provide a schema_id or inline columns to control the output shape.
Usage notes
- Send either
schema_idorcolumns, not both. Lasso uses the default Product Schema when you omit both. max_resultsaccepts1through7and defaults to7.- A search costs 5 credits, independent of the number of returned products.
- Without
webhook_url, the request waits for a200response. Withwebhook_url, Lasso returns202and posts the completed result to your URL. modelis a deprecated compatibility field. The service ignores its value and uses the configured Gemini provider.- In synchronous mode, insufficient credits currently produce HTTP
200witherror: "Insufficient credits", an emptyresultsarray, andcredits_used: 0.
query, for example Sony earbuds under $200 with USB-C charging.
Examples
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Natural language search objective
ID of an existing schema. Mutually exclusive with columns.
Inline column definitions. Mutually exclusive with schema_id.
1 <= x <= 7Legacy compatibility field. The service ignores the requested value and uses its configured Gemini provider.
If provided, results are delivered via webhook and 202 is returned immediately.
Response
Search results in synchronous mode. Worker failures such as insufficient credits can currently appear as an error field in this HTTP 200 response.
completed Present when the worker could not complete the search, including insufficient-credit outcomes. The current synchronous handler can still return this payload with HTTP 200.

