MCPcopy Create free account
hub / github.com/algolia/algoliasearch-client-javascript

github.com/algolia/algoliasearch-client-javascript

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.56.0 ↗ · + Follow · compare 3 versions
912 symbols 2,211 edges 1,318 files 661 documented · 72% updated 5d ago5.56.0 · 2026-07-15★ 1,38521 open issues

Browse by type

Functions 892 Types & classes 20
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Algolia for JavaScript

The perfect starting point to integrate Algolia within your JavaScript project

<a href="https://npmjs.com/package/algoliasearch"><img src="https://img.shields.io/npm/v/algoliasearch.svg?style=flat-square" alt="NPM version"></img></a>
<a href="http://npm-stat.com/charts.html?package=algoliasearch"><img src="https://img.shields.io/npm/dm/algoliasearch.svg?style=flat-square" alt="NPM downloads"></a>
<a href="https://www.jsdelivr.com/package/npm/algoliasearch"><img src="https://data.jsdelivr.com/v1/package/npm/algoliasearch/badge" alt="jsDelivr Downloads"></img></a>
<a href="https://github.com/algolia/algoliasearch-client-javascript/raw/5.56.0/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat-square" alt="License"></a>

DocumentationInstantSearchCommunity ForumStack OverflowReport a bugSupport

✨ Features

  • Thin & minimal low-level HTTP client to interact with Algolia's API
  • Works both on the browser and node.js
  • UMD and ESM compatible, you can use it with any module loader
  • Built with TypeScript

💡 Getting Started

To get started, you first need to install algoliasearch (or any other available API client package). All of our clients comes with type definition, and are available for both browser and node environments.

With a package manager

yarn add algoliasearch@5.56.0
# or
npm install algoliasearch@5.56.0
# or
pnpm add algoliasearch@5.56.0

Without a package manager

Add the following JavaScript snippet to the of your website:

// for the full client
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@5.56.0/dist/algoliasearch.umd.js"></script>

// for the lite client
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@5.56.0/dist/lite/builds/browser.umd.js"></script>

Usage

You can now import the Algolia API client in your project and play with it.

import { algoliasearch } from 'algoliasearch';

const client = algoliasearch('YOUR_APP_ID', 'YOUR_API_KEY');

// or with the lite client
import { liteClient } from 'algoliasearch/lite';

const client = liteClient('YOUR_APP_ID', 'YOUR_API_KEY');

For full documentation, visit the Algolia JavaScript API Client.

❓ Troubleshooting

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

📄 License

The Algolia JavaScript API Client is an open-sourced software licensed under the MIT license.

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 881
Class 20
Method 11

Languages

TypeScript100%

Modules by API surface

packages/client-search/src/searchClient.ts144 symbols
packages/ingestion/src/ingestionClient.ts129 symbols
packages/agent-studio/src/agentStudioClient.ts90 symbols
packages/client-analytics/src/analyticsClient.ts54 symbols
packages/composition/src/compositionClient.ts43 symbols
packages/monitoring/src/monitoringClient.ts32 symbols
packages/client-query-suggestions/src/querySuggestionsClient.ts28 symbols
packages/advanced-personalization/src/advancedPersonalizationClient.ts28 symbols
packages/abtesting/src/abtestingV3Client.ts28 symbols
packages/client-common/src/transporter/errors.ts27 symbols
packages/recommend/src/recommendClient.ts26 symbols
packages/client-abtesting/src/abtestingClient.ts26 symbols

Dependencies from manifests, versioned

@algolia/abtesting1.22.0 · 1×
@algolia/client-abtesting5.56.0 · 1×
@algolia/client-analytics5.56.0 · 1×
@algolia/client-common5.56.0 · 1×
@algolia/client-insights5.56.0 · 1×
@algolia/client-personalization5.56.0 · 1×
@algolia/client-query-suggestions5.56.0 · 1×
@algolia/client-search5.56.0 · 1×
@algolia/ingestion1.56.0 · 1×
@algolia/monitoring1.56.0 · 1×
@algolia/recommend5.56.0 · 1×
@algolia/requester-browser-xhr5.56.0 · 1×

For agents

$ claude mcp add algoliasearch-client-javascript \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page