/search-products
Available at https://api.theproductllm.com/search-products
Last updated
Available at https://api.theproductllm.com/search-products
Last updated
Our /search-products endpoint accepts a product description and uses AI to search the web for match candidates. Based on the limited search result text, we can filter out many non-matching results, but to get matching products, the next steps are to visit candidate pages and match using product page data.
Search-products/ is part of a multi-step flow where you bring your own e-commerce page data. The steps are as follows:
Search a product with the /search-products endpoint
Ping an external API to get detailed product descriptions
Score the match with /match-products, using the product data from step 2
To make this easier, our /search-products-with-page-visit endpoint takes care of the full product search flow, including fetching product page data. See . However, visiting ecommerce sites (especially class 1 sites) adds to the cost considerably.
product: dict. Provide a JSON object of your product with key value pairs such as {'title':'value'}. You must define the product title under the 'title' key. You can specify familiar or unfamiliar keys. Familiar keys such as 'code', 'brand', 'description', and 'price' will be added under their own key value pair. All other key value pairs will be added to the 'description' key value pair. See .
site: string. Limit search to a specific domain, such as amazon.com, amazon.ca, amazon.mx, walmart.com, ebay.com, etc.
search_sequence: list of strings. Provide the sequence of searches you would like to run, with each item specifying the search depth. Defaults to ['standard', 'standard']. While there is currently only one search depth option, 'standard', you have the option to control how many of searches to run. To use one search, use ['standard']. However, we strongly recommend 2 standard searches for a good outcome, i.e., ['standard', 'standard']. Each search in the sequence is a separate charge.
See playground for code in other formats.