API Reference
/
API Methods
/
Recommend
Dec. 07, 2021
Recommend
List of methods
Get frequently bought together |
Retrieve frequently bought together items for a set of |
Get related products |
Retrieve related products for a set of |
Get recommendations |
Retrieve recommendations for a set of |
Install
The Algolia Recommend client is separate from the search client. It’s available on the npm registry.
Copy
1
npm install @algolia/recommend
If you don’t use a package manager, you can use a standalone endpoint.
Copy
1
2
3
4
<script src="https://cdn.jsdelivr.net/npm/@algolia/recommend"></script>
<script>
const algoliarecommend = window['@algolia/recommend'];
</script>
Initialize the client
Copy
1
2
3
use Algolia\AlgoliaSearch\RecommendClient;
$client = RecommendClient::create('YourApplicationID', 'YourAdminAPIKey');
Did you find this page helpful?