Privacy-first search engine built on independent index
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| q | string | Yes | Search query | coffee shops near me |
| category | string | No | Search category (currently only 'web' supported) | web |
import { SerpexClient } from 'serpex';
// Initialize the client with your API key
const client = new SerpexClient('your-api-key-here');
// Search with Brave
const braveResults = await client.search({
q: 'coffee shops near me',
engine: 'brave',
category: 'web',
time_range: 'day'
});
console.log(braveResults.results[0].title);Additional categories (images, videos, news) will be supported soon. Currently, only web search is available.