Search products
In this example, we demonstrate how to quickly search for products by title using the OneEntry API.
โ
Purpose of the scenario:
- Connect to the OneEntry API
- Search products by title text
- Review the search results
โ
What you need:
- A valid PROJECT_URL and APP_TOKEN for authentication with the OneEntry API.
- Products with titles configured in OneEntry.
๐ Important:
- searchProduct returns a plain array, not `{ items, total }`.
- Search is based on the title field of localizeInfos with language consideration.
- These examples do not include error handling.
- You can manage errors using a try-catch block or by employing a construction like await Promise.catch((error) => error).
๐ See in documentation:
๐ฆ SDK reference:
Loading sandboxโฆ
