search discoveryโฑ10 minutes
Get Started with Algolia
UnverifiedQuick Summary
โAI-powered search and discovery platformโ
Best for: Developers building fast, typo-tolerant search for e-commerce, documentation, and content-heavy applications
Time to first integration: 10 minutes
๐Prerequisites
- โNode.js 18+ installed
- โA Algolia account โ sign up here
- โAn existing project (Next.js, React, or Node.js recommended)
Setup Steps
4 steps1
1
Install
Add the Algolia client to your project.
bash
npm install algoliasearch2
2
Add credentials
Initialize the client with your Application ID and Admin API key.
typescript
import algoliasearch from 'algoliasearch'
const client = algoliasearch(appId, adminApiKey)3
3
Index records
Push records to an index.
typescript
await client.saveObjects('products', records)4
4
Search
Query from the client using the Search-only API key.
typescript
const { hits } = await client.search('products', 'query')Related Guides
Setting up a full stack? Check out these complementary guides.