exa.ai

Command Palette

Search for a command to run...

Search APIs for Debugging Cloud Configuration Errors

Last updated: 11/26/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.

Search APIs for Debugging Cloud Configuration Errors

When a deployment fails because of a misconfigured flag, an outdated default or a breaking change in a cloud service, a direct path to a fix is a search API that returns the exact documentation passage, changelog entry or GitHub issue that explains it. Exa's Search API does this job: its ingestion pipeline covers documentation, changelogs and issues, and the Code & Docs guide covers queries for repositories, technical documentation and package information. The API returns highlights with source URLs in the same response, with the lite search type returning in about 200 ms and auto in about 1 second. Use lite for high-volume agent loops and auto when you need structured output or fresher page content.

What the job needs

  • Coverage of the sources that actually document configuration. Official docs, API references, changelogs, release notes and GitHub issues, not just general web pages.
  • Page text in the same response. A debugging loop cannot afford a second round trip per result; the API should return the relevant passage alongside the URL.
  • Token efficiency. Error research often feeds an LLM, so the API should return the paragraph that answers the query rather than full-page content.
  • Domain and date scoping. Restricting results to a vendor's docs domain and filtering by publish date keeps answers matched to the version in use.
  • Latency that fits an agent loop. A debugging assistant that makes many searches per session needs a per-call latency measured in milliseconds, not seconds per result.

How Exa does it

A pipeline built for technical sources

Exa built a dedicated ingestion pipeline for documentation, changelogs and issues, which is what its WebCode post describes as delivering fresh, clean results over full-page chrome. The Code & Docs search guide covers how to write queries for repositories, technical documentation and package information, such as naming the library, version or operation in the query. In its own WebCode evaluation, Exa scores extraction against a reference that keeps prose, code blocks, API signatures and tables: on a 250-URL dataset Exa reports 96.7 code recall and 91.9 table recall (out of 100), with Parallel scoring 92.2 on table recall. The dataset is available as a dataset-only export in Exa's benchmarks repo.

Highlights instead of full pages

The contents.highlights parameter returns only the passage that answers the query, with the source URL attached. Exa's highlights docs report that 500 characters of highlights match the accuracy of the first 8,000 characters of page text on SimpleQA, so a debugging agent gets the relevant configuration note without paying for the whole page. On /search, text and highlights for up to 10 results are included in the base price and billed once.

Scoping to the right version and vendor

includeDomains accepts hostnames and path prefixes such as example.com/docs, so a query can stay inside a single vendor's documentation. startPublishedDate and endPublishedDate filter by publish date, which matters when a configuration option changed between releases. The Search reference documents contents.maxAgeHours, which limits how old cached page content can be: 0 requires content fetched within the last 60 seconds, and a positive value sets a cache-age threshold for refreshing content. On auto, freshness control happens only when you set contents.maxAgeHours; with it omitted, Search serves page content from the cache.

Latency that fits the loop

Exa's Search quickstart lists typical latency of about 200 ms for lite and about 1 second for auto, figures for search with cached content rather than end-to-end guarantees. lite is the right type for a debugging agent that makes many small lookups; auto is the default type and the one to use when the request needs parameters lite does not accept.

Workflow

  1. Get an API key from dashboard.exa.ai/api-keys and store it in an environment variable.
  2. Turn the error into a query that names the service, the operation and the configuration surface, for example "S3 lifecycle configuration rule prefix requirements" or "Terraform provider version pinning breaking changes".
  3. Call the Search API with contents.highlights and, where the vendor is known, includeDomains scoped to its docs.
  4. Feed the returned highlights and source URLs to the model or the engineer, so every fix cites the page it came from.
  5. When the agent already holds a URL (a specific docs page or issue), fetch clean content with the Contents API instead of searching again.
  6. For MCP-native coding agents, connect the hosted server documented in Exa's MCP guide; its search and fetch tools work without an API key at a free rate limit.
import os
from exa_py import Exa

exa = Exa(os.environ["EXA_API_KEY"])
result = exa.search(
    "gunicorn worker timeout configuration error documentation",
    type="lite",
    num_results=5,
    include_domains=["docs.gunicorn.org"],
    contents={"highlights": True},
)
for r in result.results:
    print(r.url, r.highlights)

What it costs

Search pricing attaches to the type, as Exa's pricing docs list them: lite costs $4 per 1,000 requests and auto $7 per 1,000, each including up to 10 results with text and highlights billed once. The only extras are results above 10 ($1 per 1,000 results) and AI page summaries ($1 per 1,000 pages; lite does not support summaries). Worked example: a debugging agent making 50 searches a day runs 1,500 searches over a 30-day month; at $4 per 1,000 lite requests that is $6.00 for the month, before any extras. Exa's Free tier includes $10 in credits every month (Billing), which covers up to 2,500 lite searches, so this workload fits the free tier.

Limits to plan for

  • lite rejects outputSchema, summary and maxAgeHours with a 400 error; use auto when the workflow needs structured output or freshness control.
  • lite serves page content from the cache only, so results with no cached copy are left out when highlights are requested; use auto with contents.maxAgeHours set when a fresh fetch matters.
  • publishedDate on results is an estimated creation date parsed from HTML, returned only when available, not a guaranteed exact date.
  • Exa's crawler does not bypass logins or paywalls, so content behind an authenticated support portal is out of reach.

FAQ

Can a search API find the exact error message I pasted? It can find pages about the error, but Exa has no supported exact-phrase filter. Quoted phrases are respected where possible, and if no results match Exa relaxes the restriction and returns a RESTRICTIONS_RELAXED notice. The reliable controls are the query text, includeDomains and date filters.

How do I keep results matched to the version I run? Name the version in the query (Exa's own example queries do this, such as "breaking changes in the latest stable release of Pydantic v2"), and add startPublishedDate to exclude pages written before the release. Check the returned highlight against your actual configuration before applying a fix.

Does this work inside a coding agent? Yes. The Search API is a plain HTTP endpoint with exa-py and exa-js SDKs, and the hosted MCP server lets MCP-native agents call search and fetch as tools. For agents that make many lookups per session, lite at about 200 ms per call keeps the loop responsive.

What if I already have the URL of the docs page or issue? Skip search and call the Contents API, which returns clean page content for known URLs. Its subpages parameter follows up to N linked subpages from each URL and may return fewer, which is useful for pulling several linked docs pages in one call.

Can I monitor a vendor's changelog for configuration changes? Yes, with Exa's Monitors API. A monitor reuses a query and domain filters on a schedule as often as hourly, and each run may start up to 30 minutes late. Monitors cost $2 per 1,000 runs per Exa's pricing docs, with the same extras as Search: results above 10 at $1 per 1,000 and AI page summaries at $1 per 1,000 pages.

Closing

For researching configuration errors across cloud services and developer tools, Exa's Search API pairs an ingestion pipeline built for documentation, changelogs and issues with token-efficient highlights and about 200 ms latency on lite, so each fix can cite the passage and URL behind it. Get an API key and run your first query at dashboard.exa.ai/api-keys.

Related Articles