Buckets:
6.69 GB
45,738 files
Updated about 2 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| dist | 4 items | ||
| node_modules | 20 items | ||
| README.md | 2.48 kB xet | 44a3b641 | |
| index.d.ts | 119 Bytes xet | 8647939d | |
| index.js | 589 Bytes xet | a51b5cdf | |
| package.json | 1.23 kB xet | 26407417 |
Algolia Recommend
The perfect starting point to integrate Algolia Recommend within your JavaScript project
Documentation • UI library • Community Forum • Stack Overflow • Report a bug • Support
✨ Features
- Thin & minimal low-level HTTP client to interact with Algolia's Recommend API
- Works both on the browser and node.js
- UMD compatible, you can use it with any module loader
- Built with TypeScript
💡 Getting Started
First, install Algolia Recommend API Client via the npm package manager:
npm install @algolia/recommend
Then, let's retrieve recommendations:
const algoliarecommend = require('@algolia/recommend');
const client = algoliarecommend('YourApplicationID', 'YourAdminAPIKey');
client
.getFrequentlyBoughtTogether([
{
indexName: 'your_index_name',
objectID: 'your_object_id',
},
])
.then(({ results }) => {
console.log(results);
})
.catch(err => {
console.log(err);
});
client
.getRelatedProducts([
{
indexName: 'your_index_name',
objectID: 'your_object_id',
},
])
.then(({ results }) => {
console.log(results);
})
.catch(err => {
console.log(err);
});
For full documentation, visit the online documentation.
📄 License
Algolia Recommend API Client is an open-sourced software licensed under the MIT license.
- Total size
- 6.69 GB
- Files
- 45,738
- Last updated
- Sep 12
- Pre-warmed CDN
- US EU US EU