Google's primary search engine with comprehensive web results
| 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 Google
const googleResults = await client.search({
q: 'coffee shops near me',
engine: 'google',
category: 'web',
time_range: 'day'
});
console.log(googleResults.results[0].title);Additional categories (images, videos, news, scholar) will be supported soon. Currently, only web search is available.