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 or related content for a set of |
Get trending global items |
Retrieve globally trending items. |
Get trending items for facet |
Retrieve trending items for a specific facet. |
Get trending facets |
Retrieve trending facet values for a specific facet attribute. |
Get recommendations |
Retrieve recommendations. |
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?