This example shows how to filter search results by domains and date ranges:
Copy
const response = await client.get<SearchResponse>({ url: "/api/v1/search", query: { query: "typescript best practices", max_results: 10, provider: "google", // Only return results from these domains include_domains: ["microsoft.com", "typescriptlang.org"], // Only include results published in 2023 published_start_date: "2023-01-01", published_end_date: "2023-12-31", },});