$ npm install @algolia/recommend
Documentation • InstantSearch • Community Forum • Stack Overflow • Report a bug • FAQ • Support
[!TIP] This API client is already a dependency of the algoliasearch client, you don't need to manually install
@algolia/recommend
if you already havealgoliasearch
installed.
To get started, you first need to install @algolia/recommend (or any other available API client package). All of our clients comes with type definition, and are available for both browser and node environments.
yarn add @algolia/recommend@5.13.0
# or
npm install @algolia/recommend@5.13.0
# or
pnpm add @algolia/recommend@5.13.0
Add the following JavaScript snippet to the <head> of your website:
<script src="https://cdn.jsdelivr.net/npm/@algolia/recommend@5.13.0/dist/builds/browser.umd.js"></script>
You can now import the Algolia API client in your project and play with it.
import { recommendClient } from '@algolia/recommend';
const client = recommendClient('YOUR_APP_ID', 'YOUR_API_KEY');
For full documentation, visit the Algolia JavaScript API Client.
Encountering an issue? Before reaching out to support, we recommend heading to our FAQ where you will find answers for the most common issues and gotchas with the client. You can also open a GitHub issue
The Algolia JavaScript API Client is an open-sourced software licensed under the MIT license.
© 2010 - cnpmjs.org x YWFE | Home | YWFE