Skip to content
CrawlfolioSourced research on web data for AI
Menu

How to choose

Which LangChain web search tool should your agent use?

I read the docs for a dozen LangChain search tools: package, key, what comes back, cost per 1,000, and which ones are now archived.

A neat flat lay of hand tools with navy handles in three rows, one pair of pliers with vermilion grips
AI-generated image · Made for this page

For a new LangChain agent I would pick langchain-tavily as the web search tool, because it is a maintained package that hands the model clean content. The DuckDuckGo, Brave and Serper tools many agents still import sit in langchain-community, which was archived on June 24, 2026.

LangChain’s own docs never put package, auth variable, return fields and cost in one place, so this guide does. I read 45 docs, registry pages, code files and vendor pages on November 23, 2026, and nothing was installed or run. The search APIs hub links the related guides.

Short on time?

Start with Tavily, add Google results only if you need them

First agent, clean content, maintained package
langchain-tavily (TavilySearch)
1,000 free credits a month and content plus an optional answer returned. Pay as you go is about $8 per 1,000 basic searches, my arithmetic. Medium-high confidence: docs and pricing only.
Lowest list price, maintained package
Parallel or Perplexity Fast
Parallel from $1 per 1,000 and Perplexity Fast at $1 per 1,000. Medium confidence: starting prices, and the tiers differ.
You need Google results
SerpApi, or a custom apiserpent.com tool
SerpApi is the maintained route at $25 for 1,000. apiserpent.com is $0.60 per 1,000 at its Default tier, but you write about 15 lines yourself. Medium confidence.
Already on AWS
AgentCore via langchain-aws
Uses the AWS credentials you already have and takes no separate search key. Medium confidence: price not captured.
Avoid for new builds
Google Programmable Search and archived community tools
Google is closed to new customers; DuckDuckGo, Brave and Serper tools live in an archived package. High confidence on the status, low on whether forks work.

Prices verified . Based on documentation and pricing pages read on November 23, 2026. No tool was run for this guide.

What does LangChain actually list? #

On November 23, 2026 its tool index had a Search table of 34 tools. Lists like this change often, so treat any copy, including this one, as dated.

The table has three columns: tool, free or paid, and what comes back. It has no package-name column, which is why this guide builds one. It also has no row for Serper, Brave or DuckDuckGo, and no row for apiserpent.com.

I read only the one-line rows for Linkup, Bright Data, Oxylabs, Apify and about 20 others, so I do not rank them. The free-allowance column also conflicts with vendors’ own pages in four places, which I flag below.

What does each LangChain search tool return? #

Content tools such as Tavily, Exa, Parallel and You.com return page text or excerpts, while SERP tools such as SerpApi return Google-style links and snippets. Pick by that first, because it decides your token bill and what the model can quote.

Package, auth and return data for the LangChain search tools I readVerified
ToolPackage and classAuth variableWhat comes backFree allowance, as listed
Tavily`langchain-tavily`; `TavilySearch`TAVILY_API_KEYJSON string: title, URL, content snippet, raw content, answer, images, relevance score. Defaults: 5 results, general topic, basic depth1,000 credits a month, no card
Exa`langchain-exa`; `ExaSearchResults`, `ExaFindSimilarResults`, `ExaSearchRetriever`EXA_API_KEYCleaned page content; the index lists URL, author, title, published date$10 credit, resets monthly per Exa docs
SerpApi`serpapi-search-tools[langchain]`; `web_search`, `news_search`, `maps_search`SERPAPI_API_KEYPer the index: URL, title, snippet, answer box, knowledge graph, AI Overview250 a month
SearchApiPackage and class not verifiedNot verifiedPer the index: URL, snippet, title, answer box, knowledge graph100 free requests; period unstated
Google Search`langchain-google-community`; `GoogleSearchAPIWrapper`GOOGLE_API_KEY, GOOGLE_CSE_IDText from `run`; snippet, title, link from `results`100 queries a day per Google; closed to new customers
Parallel`langchain-parallel`; `ParallelSearchTool`PARALLEL_API_KEYsearch_id, session_id, results (URL, title, publish date, excerpts), warnings, usage$5 monthly with a card on file, plus up to $80 at signup
Perplexity`langchain-perplexity`; `PerplexitySearchResults`PPLX_API_KEY or PERPLEXITY_API_KEYJSON array: title, URL, snippet, date, last-updatedIndex says paid with a monthly free tier; its pricing page shows no free credit
You.com`langchain-youdotcom`; `YouSearchTool`, `YouContentsTool`, `YouRetriever`YDC_API_KEYPer the index: URL, title, page content$100 credit appears only on the index; unconfirmed
Firecrawl`langchain-firecrawl`; `FirecrawlSearch`FIRECRAWL_API_KEYPer the index: URL, title, description, date, news, images1,000 credits a month
AgentCore`langchain-aws` with `bedrock-agentcore`; `WebSearchToolkit`AWS credentials, no search keyNumbered text blocks (title, URL, date, extract), or dicts with `return_sources=True`Pay per use on AWS
apiserpent.comNo package documented; custom tool or hosted MCPX-API-Key headerSERP blocks per its docs: organic, ads, People Also Ask, related searches, featured snippets, knowledge panels, local packs; blocks vary by engineOne run a day without signup; a free account adds 10 calls

Source: LangChain tool pages, PyPI, vendor docs and pricing pages, all read November 23, 2026. Free allowances are as each source words them. Scroll sideways for more columns.

A bright, empty concrete hall with rows of identical white columns and pipes running overhead
One interface, many interchangeable parts: the columns are the same, only what sits between them changes. Photo: Claudio Schwarz / Unsplash · Unsplash License

Four free-allowance conflicts matter. Tavily’s LangChain page says 1,000 free searches, but its pricing page says 1,000 credits, and advanced search costs 2.

Exa’s index row says 1,000 free searches, but Exa’s own docs give a $10 credit; at $7 per 1,000 auto searches that buys about 1,428 searches (my arithmetic). SearchApi’s index row says 100 a month while its pricing page offers 100 free requests with no period stated, so I would not count on a monthly reset. Perplexity’s index row says a monthly free tier, but its pricing page shows none.

Tavily is the package I would try first. It has a maintained package (0.2.18 on April 16, 2026), returns content and an answer in one call, and has a free tier with no card. Firecrawl’s June 2026 guide and a dev.to comparison also treat Tavily as the usual default, but both are vendor-written or score-driven, so that is a weak signal. Hacker News has two tutorial-style mentions, not reviews.

What happened to the DuckDuckGo, Brave and Serper tools? #

They live in langchain-community, an archived package, and LangChain’s current index does not list them. PyPI shows version 0.4.2 from May 22, 2026 and says it no longer receives updates; the repository README says it was sunset and points to a GitHub issue I could not open.

I do not say the tools were deleted. The code is still readable on GitHub, but LangChain’s docs pages for the DuckDuckGo, Brave and Serper tools returned 404 on several URLs I opened. Whether the archived tools still run against current LangChain is something I could not check.

A dim, weathered concrete passage with stained walls and a yellow kerb, leading toward a bright window
Archived tools can sit like this: still readable, no longer maintained. Photo: Mate Rozsa / Unsplash · Unsplash License

What the archived code contains, as of November 23, 2026:

  • DuckDuckGo: DuckDuckGoSearchRun returns one string and DuckDuckGoSearchResults has a max_results default of 4. The utility file imports ddgs and needs no API key; the tool file shows a deprecated factory too.
  • Brave: a BraveSearch class reading BRAVE_SEARCH_API_KEY.
  • Serper: GoogleSerperAPIWrapper reading SERPER_API_KEY, defaulting to 10 results, with a code comment saying places and images are not implemented in the parser of run().

The forum gives a flavour of what users hit. In June 2026 one user asked how to migrate off tools like DuckDuckGoSearchRun, and a community member (not identified as LangChain staff) answered that LangChain 1.x ships one provider per package, such as langchain-tavily, each versioned on its own. In a second thread the same member said local forks were the only route for now.

My opinion: for a new build, write a 15-line tool or use a maintained package. I found no maintained Brave, Serper or DuckDuckGo package in the index, but several PyPI pages for candidate names failed to load, so I cannot say none exist.

Is Google Programmable Search still an option? #

Not for a new project. Google’s overview page says the product is closed to new customers and that existing customers have until January 1, 2027 to transition. For full web search it points you to contact Google about a separate solution.

LangChain’s Google tool page states no such limit, and langchain-google-community 5.1.1 shipped on October 5, 2026. The index just labels it paid. The package being current does not mean you can sign up for the service behind it.

If you came here to replace it, my Google Custom Search alternatives guide covers the options.

What does each one cost per 1,000 searches? #

Between $0.60 and $25, and the spread is mostly about what you get back. All figures are list prices seen on November 23, 2026 and re-checked on November 24, usually with a bare dollar sign and no currency code, and the units differ.

Tool List price per 1,000 Unit and working Source
apiserpent.com $0.60 at Default; $0.30, $0.20, $0.15, $0.03 on higher tiers Google SERP calls; a city-targeted call counts as 2 Pricing
Parallel From $1 Requests with 10 results; extra results $1 per 1,000 Pricing
Perplexity $1 Fast Search; $5 Search API Requests Pricing
SearchApi $4 Developer; about $2.86 Production $40 for 10,000 and $100 for 35,000 requests (my arithmetic) Pricing
Exa $4 lite; $7 auto; $12 deep Requests up to 10 results; contents $1 per 1,000 pages Docs
Brave $5, with a $5 monthly credit Requests; no LangChain index row, archived tool only Plans
Google $5, up to 10,000 a day Closed to new customers Overview
Firecrawl About $7.60 on Hobby; about $1.98 on Standard 2 credits per 10 results; $19 for 5,000 credits, $99 for 100,000 (my arithmetic) Pricing
Tavily $8 basic; $16 advanced Pay as you go at $0.008 a credit; basic 1 credit, advanced 2 (my arithmetic) Pricing
SerpApi $25 Starter; $15 Developer; $10 Production $25 for 1,000, $75 for 5,000, $150 for 15,000 (my arithmetic) Pricing

Not captured: Serper’s price, AgentCore’s per-search price and You.com’s. For more depth on single vendors, see Tavily pricing, Exa pricing and SerpApi pricing. For the cross-vendor study, see web search API pricing.

One caution on this table. A $1 request that returns excerpts and a $25 request that returns Google’s page are different products, so the lowest number is not automatically the best fit.

Raw Google results or cleaned content? #

Choose raw results if the model should decide what to open or if you need Google’s own answer box and ranking, and cleaned content if you want the agent to answer from one call. The trade-off is tokens and risk.

SERP-style tools return links, snippets and answer-box style fields: SerpApi lists answer box, knowledge graph and AI Overview, and apiserpent.com’s docs list organic results, ads, People Also Ask and local packs. Tavily, Exa, Parallel and You.com return content or excerpts, so each call can put much more text in the model’s context.

I have no token measurements, so this is reasoning, not a result. More text per call means a bigger bill and more room for hostile text. Treat search output as untrusted; my prompt injection guide covers why.

How do you call apiserpent.com from LangChain? #

With a short custom tool or its hosted MCP server, because I found no LangChain package or integration documented. In the roughly 280,000 characters of its docs, read in three slices, I found no mention of LangChain, an SDK or pip install.

What the docs do show: REST access with an X-API-Key header, code examples in JavaScript, Python and cURL that call REST directly, and a hosted MCP server at https://api.apiserpent.com/mcp. MCP tool calls are billed like the matching REST call, and web connectors that cannot send a header, such as claude.ai and ChatGPT on the web, cannot connect.

The vendor’s November 21, 2026 post builds the same thing as a custom @tool from langchain_core.tools around requests.get. It pins langchain==1.5.2 and langgraph==1.2.24, never claims an official integration, and says the swap is one function. It also says the code runs on those versions as of November 20, which I cannot confirm.

Here is my sketch of that pattern, using the endpoint, header and parameters (q, country, engine, num) that the docs and that post show. It has not been run. The SERPENT_API_KEY variable name comes from the vendor’s post, and you should check the docs for the accepted country values.

import os
import requests
from langchain_core.tools import tool

@tool
def web_search(query: str) -> str:
    """Search Google and return the results as text."""
    response = requests.get(
        "https://apiserpent.com/api/search/quick",
        headers={"X-API-Key": os.environ["SERPENT_API_KEY"]},
        params={"q": query, "country": "us", "engine": "google", "num": 10},
        timeout=15,
    )
    response.raise_for_status()
    return response.text

I would trim response.text to the organic block before it reaches the model. The vendor’s post reads resp.json()["results"]["organic"] and keeps the first five; I did not check that path against the docs, so inspect a real response first. Do not copy imports from the vendor’s April 2026 RAG post, which uses older langchain.schema and langchain.chains paths I did not check against LangChain 1.x.

Cost, as of November 24, 2026: $0.60 per 1,000 Google calls at the Default tier, and a city-targeted call counts as 2. The pricing page warns that prices may rise from December 2026, so recheck before you budget. I did not record the deposit sizes behind the cheaper tiers. For city and country targeting see local results from a SERP API.

The MCP route through LangChain’s own adapter is plausible: its docs show pip install "langchain[mcp]", an MCPAdapter, then create_agent(model, tools). But the page I read did not show header syntax, and neither vendor documents the pair, so I give no code for it. See web search MCP servers for the wider picture.

My read: the custom tool is a fair trade when you need Google results at a low per-call price and can maintain a small function. If you want a vendor-maintained package, SerpApi is the documented route.

How do you keep the tool swappable? #

Give the agent one function and change what is inside it. A tool in LangChain is a function with a name, a description and a string or JSON return, and the LangChain and SerpApi examples both pass tools to create_agent(model, tools=[...]).

Defaults differ, so set them yourself:

  • Result cap: Tavily defaults to 5 results, the archived DuckDuckGo tool to 4, the archived Serper wrapper to 10, and the vendor’s apiserpent.com example asks for 10.
  • Timeout: the sketch above sets 15 seconds; pick a number you can live with.
  • Fallback: decide what the agent sees when the call fails, such as a short error string, and whether a second provider is tried.
  • Storage: do not keep results beyond what the vendor’s terms allow; my search API storage rights guide covers the terms.

When an answer goes wrong, you want a log of the query, the result count and the text the model saw; my browser agent observability guide covers that habit.

Which one should you pick? #

Pick by the agent’s job first and the price second. These are my picks from documentation, not a ranking.

Your situation Pick Why
First agent, needs clean content langchain-tavily Maintained, content and answer in one call, free tier
Cheapest maintained package Parallel or Perplexity Fast From $1 per 1,000, but the tiers and returns differ
Needs Google’s actual results, wants a package SerpApi Documented LangChain route, $25 for 1,000
Needs Google’s actual results, low price A custom tool over apiserpent.com $0.60 per 1,000 at Default; you write about 15 lines
Already on AWS AgentCore No separate search key
New build today Not Google Programmable Search, not archived community tools Closed to new customers; package archived

Exa and Firecrawl are not in the table; the docs alone give me no reason to prefer them over Tavily. You.com and SearchApi stay unranked because I could not verify price or package.

So what would I do? #

I would start with langchain-tavily, behind a small wrapper with a result cap and a timeout. If the agent needs real Google results, I would compare SerpApi’s tool against a short custom tool over apiserpent.com’s REST endpoint on cost per 1,000 and the fields I need. I would not start a new project on the archived community tools. For other routes, see the best web search APIs and, for another framework, OpenClaw web search.

FAQ

Is the DuckDuckGo tool in LangChain still maintained?

It sits in langchain-community, which PyPI says is no longer receiving updates and which was archived on June 24, 2026. The archived code still imports the ddgs package and needs no API key, but I found no support promise, and I did not check whether it runs against current LangChain.

Does apiserpent.com have a LangChain integration?

None is documented. Its docs describe REST access and a hosted MCP server, and its own November 21, 2026 blog post wraps its REST endpoint in a custom tool. I did not check PyPI or npm for a package.

What is the difference between a SERP API tool and Tavily?

SERP API tools such as SerpApi return Google-style links, snippets, answer boxes and knowledge graph data. Tavily returns titles, URLs, content snippets, raw content, an optional answer and a relevance score, so it hands the model more text per call.

Are the free allowances searches or credits?

It depends on the vendor. Tavily counts credits (basic search is 1 credit, advanced is 2), Exa gives a $10 credit, Firecrawl counts credits, and SearchApi says 100 free requests with no period on its pricing page. Read each pricing page before comparing.

Can I still use Google Programmable Search in LangChain?

Not as a new customer. Google's page says the product is closed to new customers and existing customers have until January 1, 2027 to transition, even though LangChain's tool page states no such limit.

How do I swap one search provider for another?

Keep one function as the tool your agent sees and change what happens inside it, or swap the package, class and API key. Cap the number of results, set a timeout and decide on a fallback before you rely on it.

Is it safe to feed search results to the model?

Treat them as untrusted text. This guide is a document review with no injection test behind it, and my prompt injection guide covers the risk.

Sources

45 sources, accessed .

Official pricing, docs, changelogs and status pages 29

  1. LangChain tool integrations index: 34-row Search table docs.langchain.com · accessed
  2. LangChain Tavily Search tool page docs.langchain.com · accessed
  3. PyPI: langchain-tavily (0.2.18, Apr 16, 2026) pypi.org · accessed
  4. Tavily pricing tavily.com · accessed
  5. Tavily API credits docs.tavily.com · accessed
  6. LangChain Exa Search tool page docs.langchain.com · accessed
  7. PyPI: langchain-exa (1.1.0, Mar 26, 2026) pypi.org · accessed
  8. Exa pricing docs docs.exa.ai · accessed
  9. LangChain Google Search tool page docs.langchain.com · accessed
  10. Google Programmable Search JSON API overview developers.google.com · accessed
  11. PyPI: langchain-google-community (5.1.1, Oct 5, 2026) pypi.org · accessed
  12. SerpApi search tools: LangChain example serpapi.github.io · accessed
  13. SerpApi pricing serpapi.com · accessed
  14. SearchApi Google docs searchapi.io · accessed
  15. SearchApi pricing searchapi.io · accessed
  16. Brave Search API plans and pricing brave.com · accessed
  17. PyPI: langchain-community (0.4.2, May 22, 2026; no longer receiving updates) pypi.org · accessed
  18. LangChain Parallel Search tool page docs.langchain.com · accessed
  19. Parallel pricing parallel.ai · accessed
  20. LangChain Perplexity Search tool page docs.langchain.com · accessed
  21. Perplexity API pricing docs.perplexity.ai · accessed
  22. You.com LangChain integration docs you.com · accessed
  23. Firecrawl LangChain integration docs docs.firecrawl.dev · accessed
  24. Firecrawl pricing firecrawl.dev · accessed
  25. LangChain Amazon Bedrock AgentCore web search page docs.langchain.com · accessed
  26. LangChain MCP docs docs.langchain.com · accessed
  27. apiserpent.com API docs: REST access and hosted MCP server apiserpent.com · accessed
  28. apiserpent.com pricing apiserpent.com · accessed
  29. apiserpent.com SERP API page: result blocks apiserpent.com · accessed

GitHub code, issues and releases 5

  1. Archived langchain-community README raw.githubusercontent.com · accessed
  2. Archived BraveSearch tool source raw.githubusercontent.com · accessed
  3. Archived GoogleSerperAPIWrapper source raw.githubusercontent.com · accessed
  4. Archived DuckDuckGo tool source raw.githubusercontent.com · accessed
  5. Archived DuckDuckGo utility source raw.githubusercontent.com · accessed

Community discussions 4

  1. LangChain forum: migration path after the langchain-community sunset (Jun 2026) forum.langchain.com · accessed
  2. LangChain forum: bug fixes via fork only (Jun 2026) forum.langchain.com · accessed
  3. Hacker News search: langchain tavily hn.algolia.com · accessed
  4. Hacker News comment search: langchain web search tool hn.algolia.com · accessed

Other blogs 7

  1. apiserpent.com blog: LangGraph web search agent (Nov 21, 2026; vendor post) apiserpent.com · accessed
  2. apiserpent.com blog: real-time search RAG tutorial (Apr 28, 2026; vendor post) apiserpent.com · accessed
  3. apiserpent.com llms.txt index apiserpent.com · accessed
  4. apiserpent.com blog index apiserpent.com · accessed
  5. Firecrawl: best search tools for AI agents (Jun 2, 2026; vendor post) firecrawl.dev · accessed
  6. Parallel: how to add web search to your LangChain agent (vendor post) parallel.ai · accessed
  7. Rhumb on dev.to: Exa vs Tavily vs Serper vs Brave for AI agents dev.to · accessed

Last updated: 23 November 2026. Researched and drafted with AI tools; human editorial review and publication approval are pending.

What readers say

Used one of the tools in this guide? Tell other readers how it went. I read every review before it goes up, and I never turn one down for being negative. How reviews work.

No reader reviews yet. Yours could be the first.

Write a review
Your rating

What did you use it for, what worked, and what didn't? 30 to 1500 characters. Please don't include links.

Your connection to the company

Your review appears with the name you enter, after I approve it. I don't ask for your email. Privacy.