Skip to main content
Web search is one of the most valuable tools an agent can have. It lets the agent work with the live web to find fresh, verifiable, page-level information and ground its answers in real sources instead of relying only on what it already knows. Choosing the right Search API is harder. Providers differ in retrieval quality, freshness, content depth, latency, and how many searches and tokens the agent needs to complete a task. Public benchmarks rarely reflect a real workload. This guide walks through how to test search APIs based on your own real queries. Before starting, review the Search overview to get familiar with Nimble’s capabilities and configuration options.

1. Pick a starting configuration

Start with the configuration closest to the need: Treat this as a starting hypothesis. Run a gold set against two or three plausible configurations before choosing. See the Search API reference for all parameters and supported combinations.

2. Build a fair evaluation

Build a gold set. Start with at least 50 real queries that represent what the agent searches for in production. For each query, record the expected answer, source, or relevance criteria. Include the query types that matter to the product, such as current information or breaking news, stable factual questions, finding a known page or source, and open-ended discovery or research. If search is already in production, sample from real query logs. For a new integration, use real user scenarios or expected inputs rather than generic examples. Fifty queries is enough for an initial signal. If providers score closely, expand the most important query categories before deciding. Keep it apples-to-apples. When comparing providers or configurations, keep the query set, result count, grader, timing, and downstream pipeline fixed. Change only the provider or configuration being evaluated. Run freshness-sensitive queries close together in time and record the exact parameters used for every run.

3. Run it

Paste this prompt into a coding agent (Claude Code, Cursor, or similar) to run the evaluation end to end.
To call the API directly:
Run this against the full gold set and store the results for grading. See the API reference for all parameters and the quickstart for Python, TypeScript, Go, CLI, and cURL examples.

4. Grade the results

Score every provider on the same small set of metrics. Choose the metrics that matter for the use case and define the grading rules before seeing the results. For at least a portion of the gold set, have a human directly review the results rather than relying solely on automated or LLM-judge scoring. Automated grading is fine for scaling up sample size once it’s been validated against a human-reviewed subset. Evaluate both the search API and agent end-to-end performance, for example with the following metrics: Grade time-sensitive queries separately. For anything where the right answer changes over time, such as pricing, availability, breaking news, or inventory, capture what was true at request time and grade against that. A result that was correct when the query ran can look wrong if graded later.

5. Iterate on the configuration

Use the results to choose the next configuration to test. Change one setting at a time and rerun the same gold set.
  • Results are stale: Test search_depth: "lite".
  • The agent finds the right URLs but needs more content: Enable full_content: true so page text is returned with the search results.
  • The answer is in the results but the agent isn’t using it: Change the prompt.

6. Keep evaluating after integrating

A pre-commitment evaluation is a snapshot, not a guarantee. After integrating, log the query, configuration used, latency, and result count for a sample of production traffic, and periodically re-check accuracy against a rotating slice of real queries. Usage patterns and the live web both change in ways a one-time evaluation can’t catch.

Next steps

Quickstart

Make the first Search API request.

Agent skills and MCP setup

Evaluate Nimble from Claude Code, Cursor, Codex, or another coding assistant.

API Reference

Review all parameters and response schemas.

Talk to Sales

Get help building a gold set or running an evaluation.