Socket
Book a DemoInstallSign in
Socket

@algolia/recommend

Package Overview
Dependencies
Maintainers
3
Versions
246
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algolia/recommend

The perfect starting point to integrate Algolia Recommend within your JavaScript project.

Source
npmnpm
Version
4.25.3
Version published
Weekly downloads
1.7M
-44.72%
Maintainers
3
Weekly downloads
 
Created
Source

Algolia Recommend

The perfect starting point to integrate Algolia Recommend within your JavaScript project

NPM version License

DocumentationUI libraryCommunity ForumStack OverflowReport a bugSupport

✨ 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.

FAQs

Package last updated on 06 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts