Example

Searxng enables an Agent to search the web for a query, scrape a website, or crawl a website.

Toolkit Params

ParameterTypeDefaultDescription
hoststr-The host for the connection.
enginesList[str][]A list of search engines to use.
fixed_max_resultsintNoneOptional parameter to specify the fixed maximum number of results.
imagesboolFalseEnables searching for images.
itboolFalseEnables searching for IT-related content.
mapboolFalseEnables searching for maps.
musicboolFalseEnables searching for music.
newsboolFalseEnables searching for news.
scienceboolFalseEnables searching for science-related content.
videosboolFalseEnables searching for videos.

Toolkit Functions

FunctionDescription
searchPerforms a general web search using the specified query. Parameters include query for the search term and max_results for the maximum number of results (default is 5). Returns the search results.
image_searchPerforms an image search using the specified query. Parameters include query for the search term and max_results for the maximum number of results (default is 5). Returns the image search results.
it_searchPerforms a search for IT-related information using the specified query. Parameters include query for the search term and max_results for the maximum number of results (default is 5). Returns the IT-related search results.
map_searchPerforms a search for maps using the specified query. Parameters include query for the search term and max_results for the maximum number of results (default is 5). Returns the map search results.
music_searchPerforms a search for music-related information using the specified query. Parameters include query for the search term and max_results for the maximum number of results (default is 5). Returns the music search results.
news_searchPerforms a search for news using the specified query. Parameters include query for the search term and max_results for the maximum number of results (default is 5). Returns the news search results.
science_searchPerforms a search for science-related information using the specified query. Parameters include query for the search term and max_results for the maximum number of results (default is 5). Returns the science search results.
video_searchPerforms a search for videos using the specified query. Parameters include query for the search term and max_results for the maximum number of results (default is 5). Returns the video search results.
_searchInternal function to handle the search logic for all categories. Parameters include query for the search term, category to specify the type of content, and max_results for the maximum number of results (default is 5). Returns the search results or an error message.