Privacy-focused search engine with instant answers
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| q | string | Yes | Search query | coffee shops near me |
| category | string | No | Search category (currently only 'web' supported) | web |
| time_range | string | No | Time range filter (all, day, week, month, year) | day |
import { SerpexClient } from 'serpex';
// Initialize the client with your API key
const client = new SerpexClient('your-api-key-here');
// Search with DuckDuckGo
const duckduckgoResults = await client.search({
q: 'coffee shops near me',
engine: 'duckduckgo',
category: 'web',
time_range: 'day'
});
console.log(duckduckgoResults.results[0].title);Additional categories (images, videos, news) will be supported soon. Currently, only web search is available.