Skip to content

Function: runScrapeSearch()

runScrapeSearch(request, config, signal?): Promise<{ answer: string; citations: object[]; model: string; query: string; }>

Run a scraping search over DuckDuckGo. Returns the same WebSearchResult shape as the native path, with model set to "scrape:duckduckgo" so callers can tell how the result was produced. Citations are filtered through the configured URL allow-list. signal cancels the in-flight request.

string = ...

string = ...

ResolvedWebSearchConfig

AbortSignal

Promise<{ answer: string; citations: object[]; model: string; query: string; }>