Skip to main content
Nimble’s Search API provides real-time web search by browsing the live web with headless browsers rather than querying prebuilt indexes. The tool handles JavaScript rendering, dynamic content, and complex navigation flows, making it suitable for agent workflows that need access to current web data including content behind pagination, filters, and client-side rendering.

Overview

Integration details

Tool features

Key Features:
  • Fast mode & Deep mode: Deep mode (default) for full content extraction with JavaScript rendering, or Fast mode for quick SERP-only results
  • AI-generated summaries: Optional concise answers alongside raw search results
  • Domain and date filtering: Filter by specific domains or date ranges for precise results
  • Topic-based routing: Optimized routing for general, news, or location-based queries
  • Flexible output formats: plain_text, markdown (default), or simplified_html
  • Production-ready: Native async support, automatic retries, connection pooling

Setup

The integration lives in the langchain-nimble package.

Credentials

You’ll need a Nimble API key to use this tool. Sign up at Nimble to get your API key and access their free trial.

Instantiation

Now we can instantiate the tool:

Use within an agent

We can use the Nimble search tool with an agent to give it dynamic web search capabilities. Here’s a complete example using LangGraph:

Advanced configuration

The tool supports extensive configuration for different use cases:

Best Practices

Fast mode vs Deep mode

  • Deep mode (deep_search=True, default):
    • Full content extraction from web pages
    • Best for detailed analysis, RAG applications, and comprehensive research
    • Handles JavaScript rendering and dynamic content
  • Fast mode (deep_search=False):
    • Quick SERP-only results with titles and snippets
    • Optimized for high-volume queries where speed is critical
    • Lower cost per query

When to use include_answer

  • Enable include_answer=True when you want a concise, AI-generated summary in addition to the raw search results
  • Useful for quick insights without processing all the raw content yourself

Filtering tips

  • Domain filtering: Use include_domains for academic research or when you need trusted sources. Use exclude_domains to filter out unwanted content types
  • Date filtering: Combine start_date and end_date for time-sensitive queries or recent news
  • Topic routing: Use topic parameter to optimize search for general web content, news articles, or location-based information

Performance optimization

  • Choose the right mode: Use Fast mode (deep_search=False) for high-volume queries where speed matters; Deep mode (default) for comprehensive content extraction
  • Use async operations (ainvoke) when running multiple searches concurrently
  • Tune num_results to the minimum number of results needed to reduce response time
  • Leverage domain filtering to focus on quality sources and reduce noise

API reference

For detailed documentation of all NimbleSearchRetriever features and configurations, visit the Nimble API documentation.