The search query string.
Optional
options: { default=0 - ["general", "news", "videos", "images", "science", "map", "music", "it", "files", "social+media"]
default=0 - ["", "day", "week", "month", "year"]
default=null - Use your custom domain SearXNG
default=3 - Maximum number of retry attempts if the initial search fails.
default=1 - The page number to retrieve.
default=false - Use corsproxy.io to access in frontend JS
An array of search result objects.
const advancedResults = await searchWeb('Node.js', {
category: 2,
recency: 1,
maxRetries: 5
});
ai-research-agent (2024) Heiser, M., Tauber, A., Flament, A., et al. (2014-)
Search Web via SearXNG metasearch of all major search engines. Options are 10 search categories, recency, and how many times to retry other domains if first time fails. SearXNG is a free internet metasearch engine which aggregates results from more than 180+ search sources.
Searxng Installation Guide